Hard disk management method, device and system of data center
By capturing and comparing images and attribute information of hard drives in data center hard drive management, the risk of hard drives being replaced after being removed from service is eliminated, achieving higher management intelligence and security.
Patent Information
- Application Number
- CN202510955608.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-11-21
AI Technical Summary
Data center hard drive management carries the risk of hard drives being replaced after being removed, leading to information leakage. Existing management methods have low security.
By taking images and identifying attribute information when the hard drive arrives, a file is created; upon ejection, the captured images are compared with historical images, and the scanned images and physical attributes are verified to ensure the hard drive is ejected correctly.
It improves the intelligence and security of hard drive management, effectively prevents the hard drive from being maliciously replaced during processing, and reduces the risk of information leakage.
Smart Images

Figure CN120995514A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present specification relate to the technical field of hard disk management, and particularly relate to a hard disk management method, device and system of a data center. BACKGROUND
[0002] Hard disks of a data center account for a large proportion of data center server accessories, and there are many challenges in management, cost control and information leakage. Especially in the process from the hard disk being withdrawn to the final completion of degaussing, it is difficult to avoid the risk of being replaced. Therefore, how to improve the management and intelligent level of the data center hard disk from procurement to use, to withdrawal and degaussing, and the security protection of hard disk information is particularly important. SUMMARY
[0003] Embodiments of the present specification provide a hard disk management method, device and system of a data center, which are used to improve the intelligent level of hard disk management and solve or at least partially solve the problem of security risks of existing hard disk management methods.
[0004] In order to solve the above technical problems, a first aspect of embodiments of the present specification provides a hard disk management method of a data center, the method comprising:
[0005] identifying an image of a hard disk procured and delivered to obtain hard disk attribute information;
[0006] determining an associated server of the hard disk according to the hard disk attribute information, and establishing archive information in the associated server based on the hard disk image and the hard disk attribute information;
[0007] receiving a photographed image when a target hard disk is withdrawn from a server;
[0008] verifying the photographed image according to historical images in target hard disk archive information, and prompting transportation of the target hard disk to a next designated device after verification;
[0009] determining first verification information of the target hard disk according to the historical images, the photographed image and a scanned image of the target hard disk of the next designated device, and determining second verification information according to a physical attribute verification result of the target hard disk of the next designated device;
[0010] determining whether the target hard disk is a hard disk to be processed according to the first verification information and the second verification information.
[0011] Further, the determination of the associated server of the hard disk according to the hard disk attribute information, and the establishment of the archive information in the associated server based on the hard disk image and the hard disk attribute information, comprises:
[0012] determining whether the hard disk image exists in the association server according to the hard disk attribute information;
[0013] when the association server exists, associating the hard disk attribute information and the hard disk image, and automatically filing in the association server;
[0014] when the association server does not exist, establishing a corresponding association server according to the hard disk attribute information, associating the hard disk attribute information and the hard disk image, automatically filing in the corresponding association server, and performing standard image processing and marking on the hard disk image to obtain a reference hard disk image corresponding to the hard disk attribute information.
[0015] Further, the generation process of the historical image of the target hard disk comprises:
[0016] acquiring a historical acquisition image of the target hard disk when the target hard disk is purchased and a reference hard disk image;
[0017] adjusting the historical acquisition image according to preset identification information in the reference hard disk image and a specified position coordinate in the reference hard disk image to obtain the historical image of the target hard disk.
[0018] Further, adjusting the historical acquisition image according to the preset identification information in the reference hard disk image and the specified position coordinate in the reference hard disk image to obtain the historical image of the target hard disk comprises:
[0019] determining a first relative relationship and a second relative relationship according to the coordinate of the preset identification in the reference hard disk image and the specified position coordinate in the reference hard disk image, and the coordinate of the preset identification in the historical acquisition image and the specified position coordinate in the historical acquisition image, respectively;
[0020] adjusting the historical acquisition image by using the first relative relationship and the second relative relationship to obtain the historical image of the target hard disk.
[0021] Further, determining the first relative relationship and the second relative relationship according to the coordinate of the preset identification in the reference hard disk image and the specified position coordinate in the reference hard disk image, and the coordinate of the preset identification in the historical acquisition image and the specified position coordinate in the historical acquisition image, respectively, comprises:
[0022] determining the first relative relationship according to a relative deviation of the coordinates between the plurality of preset identifications in the reference hard disk image, and a relative deviation of the coordinates between the preset identification and the reference hard disk contour in the reference hard disk image;
[0023] determining the second relative relationship according to a relative deviation of the coordinates between the plurality of preset identifications in the historical acquisition image, and a relative deviation of the coordinates between the preset identification and the reference hard disk contour in the historical acquisition image.
[0024] Further, the first verification information of the target hard disk is determined according to the historical image, the photographed image and the scanning image of the target hard disk, comprising:
[0025] The consistency verification result is determined according to the hard disk identification information of the photographed image and the scanning image;
[0026] If the consistency verification is passed, the first calculation weight and the second calculation weight are determined according to the pixel distribution of the historical image and the photographed image and the pixel distribution of the historical image and the scanning image, respectively;
[0027] The first identification score and the second identification score are determined according to the hard disk identification information of the historical image and the photographed image and the hard disk identification information of the historical image and the scanning image, respectively;
[0028] The first verification information of the target hard disk is determined according to the first calculation weight, the second calculation weight, the first identification score and the second identification score.
[0029] Further, the first verification information of the target hard disk is determined according to the first calculation weight, the second calculation weight, the first identification score and the second identification score, comprising:
[0030] The calculation weight with the highest weight value and the identification score corresponding to the calculation weight with the highest weight value are determined from the first calculation weight and the second calculation weight;
[0031] The weighted score of the target hard disk is obtained by performing weighted operation based on the calculation weight with the highest weight value and the corresponding identification score;
[0032] The first verification information of the target hard disk is determined according to the weighted score and a preset score threshold.
[0033] Further, the hard disk management method of the data center further comprises:
[0034] Obtaining the failure statistical information of all hard disks;
[0035] Analyzing each basic attribute of all hard disks according to the failure statistical information, determining the non-associated basic attribute independent of the failure and the associated basic attribute non-independent of the failure;
[0036] Analyzing the associated basic attribute based on the failure statistical information and the non-associated basic attribute, obtaining the influence factor of the associated basic attribute on the hard disk failure;
[0037] Adjusting the management strategy of the hard disk according to the influence factor.
[0038] A second aspect of the embodiments of the present specification provides a hard disk management device of a data center, the device comprising:
[0039] An identification module is configured to identify a hard disk image of a purchased shipment, and obtain hard disk attribute information;
[0040] A filing module is configured to determine an associated server of the hard disk according to the hard disk attribute information, and establish archive information in the associated server based on the hard disk image and the hard disk attribute information;
[0041] A receiving module is configured to receive a photographed image when a target hard disk exits a server;
[0042] A first verification module is configured to verify the photographed image according to historical images in target hard disk archive information, and prompt transportation of the target hard disk to a next designated device after verification;
[0043] A second verification module is configured to determine first verification information of the target hard disk according to the historical images, the photographed image and a scanned image of the target hard disk of the next designated device, and determine second verification information according to a physical attribute verification result of the target hard disk of the next designated device;
[0044] A determination module is configured to determine whether the target hard disk is a to-be-processed hard disk according to the first verification information and the second verification information.
[0045] A third aspect of the embodiments of the present specification provides a hard disk management system of a data center, the system being applied to the hard disk management method of the data center described in the foregoing embodiments, and the hard disk management system comprising a resource management system, a change management system, a processing management system and a processing machine;
[0046] The resource management system is configured to store hard disk information and information of a server where the hard disk is located;
[0047] The change management system is configured to obtain information of a target hard disk and information of a server corresponding to the target hard disk from the resource management system according to a target hard disk list, and send the information of the target hard disk and the information of the server corresponding to the target hard disk to the processing management system;
[0048] The processing management system is configured to verify acquisition information when the target hard disk exits the server according to the information of the target hard disk, and prompt transportation of the target hard disk to the processing management system after verification; the processing management system is further configured to verify according to the information of the target hard disk, the acquisition information and hard disk information scanned by the processing machine, and prompt the processing machine to process the hard disk after verification;
[0049] The processing machine is configured to process the hard disk.
[0050] A fourth aspect of the embodiments of the present specification provides a computer device, comprising a memory, a processor, and a computer program stored on the memory, when the computer program is run by the processor, instructions of the hard disk management method of the data center of any one of the preceding embodiments are executed.
[0051] A fifth aspect of the embodiments of the present specification provides a computer storage medium, having a computer program stored thereon, when the computer program is run by a processor of a computer device, instructions of the hard disk management method of the data center of any one of the preceding embodiments are executed.
[0052] A sixth aspect of the embodiments of the present specification provides a computer program product, comprising a computer program, when the computer program is run by a processor of a computer device, instructions of the hard disk management method of the data center of any one of the preceding embodiments are executed.
[0053] The hard disk management method, device and system of the data center provided by the embodiments of the present specification identify the hard disk attribute information based on the hard disk image after the hard disk arrives, and complete the filing according to the matching associated server based on the hard disk attribute information, thereby improving the intelligent management level of the hard disk procurement and arrival link. When the target hard disk exits from the server, the staff receives the shooting image uploaded by the target hard disk, and verifies the shooting image of the target hard disk at the exit time through the historical image of the target hard disk, thereby increasing the monitoring node and ensuring the correct exit of the target hard disk. After the verification is passed, the target hard disk is verified again according to the historical image of the target hard disk, the shooting image, the scanning image of the next designated device, and the detection result of the physical attribute of the target hard disk by the next designated device, thereby effectively avoiding the malicious replacement of the target hard disk in the processing process, and improving the security of the hard disk management.
[0054] In order to make the above and other objectives, features and advantages of the embodiments of the present specification more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present specification, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0056] Figure 1 The flowchart of the hard disk management method of the data center of the embodiments of the present specification is shown;
[0057] Figure 2 A flow chart of establishing hard disk image archive information by the embodiment of the present specification is shown;
[0058] Figure 3 A first flow chart of the generation process of the historical image of the target hard disk by the embodiment of the present specification is shown;
[0059] Figure 4 A second flow chart of the generation process of the historical image of the target hard disk by the embodiment of the present specification is shown;
[0060] Figure 5 A flow chart of determining the relative relationship by the embodiment of the present specification is shown;
[0061] Figure 6 A first flow chart of determining the first verification information of the target hard disk by the embodiment of the present specification is shown;
[0062] Figure 7 A second flow chart of determining the first verification information of the target hard disk by the embodiment of the present specification is shown;
[0063] Figure 8 A schematic diagram of the hard disk processing process by the embodiment of the present specification is shown;
[0064] Figure 9 A schematic diagram of the shooting of a hard disk by the embodiment of the present specification is shown;
[0065] Figure 10 A structural diagram of the hard disk management device of the data center by the embodiment of the present specification is shown;
[0066] Figure 11 A structural diagram of the hard disk management system of the data center by the embodiment of the present specification is shown;
[0067] Figure 12 A structural diagram of the computer device by the embodiment of the present specification is shown.
[0068] Explanation of the drawing symbols:
[0069] 1010, identification module;
[0070] 1020, archiving module;
[0071] 1030, receiving module;
[0072] 1040, first verification module;
[0073] 1050, second verification module;
[0074] 1060, determination module;
[0075] 1110, resource management system;
[0076] 1120, change management system;
[0077] 1130, process management system;
[0078] 1140, processor;
[0079] 1202, computer device;
[0080] 1204, processor;
[0081] 1206, memory;
[0082] 1208, drive mechanism;
[0083] 1210, input / output module;
[0084] 1212, input device;
[0085] 1214, output device;
[0086] 1216, presentation device;
[0087] 1218, graphical user interface;
[0088] 1220, network interface;
[0089] 1222, communication link;
[0090] 1224, communication bus. DETAILED DESCRIPTION
[0091] The technical solutions in the embodiments of the present specification will be described clearly and completely in combination with the drawings in the embodiments of the present specification. Obviously, the described embodiments are only part of the embodiments of the present specification, rather than all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the embodiments of the present specification.
[0092] It should be noted that the terms "first", "second", etc. in the present specification and claims and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, device, product or equipment including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.
[0093] The method operation steps are provided in the specification as described in the embodiments or flowcharts, but more or fewer operation steps can be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is only one of the many execution orders of the steps, and does not represent the only execution order. In actual system or device product execution, the method order shown in the embodiments or the drawings can be executed in sequence or in parallel.
[0094] It should be noted that the acquisition, storage, use, processing, etc. of data in the technical solutions of the embodiments of the present specification comply with the relevant provisions of national laws and regulations.
[0095] It should be noted that in the embodiments of the present specification, some industry existing solutions of software, components, models, etc. may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the embodiments of the present specification, but does not mean that the applicant has or will necessarily use the solution.
[0096] The hard disks of the data center account for a large proportion of the number of data center server accessories, and the quantity is large. How to manage the data center hard disks from procurement to delivery, production and use, to exit and degauss each link is becoming more and more important. Among them, the hard disk degaussing link as a key link, is prone to replacement risk, and then causes data leakage. In the existing degaussing management, the hard disk is usually pulled out from the original server by the staff and taken to the degaussing room, and the degaussing machine in the degaussing room is used to degauss the exited hard disk. After the degaussing is completed, the hard disk is placed for centralized crushing or recycling; however, during this period, there is a situation that the recorded degaussed hard disk does not match the actual degaussed hard disk (the actual degaussed hard disk is the replacement hard disk prepared in advance), so it is still difficult to avoid the malicious replacement of the hard disk by only scanning the bar code of the hard disk to be degaussed (there is a risk of being counterfeited). At the same time, after the target hard disk exits, there is a lack of monitoring nodes, so even if it is found later that the hard disk has been maliciously replaced, it is also difficult to recover in time, and thus data leakage is caused.
[0097] To solve the above problems, the embodiment of the present specification realizes the front photo of the hard disk in the hard disk procurement, exit, degaussing link, and records the disk information through image processing.a) In the procurement link, the photo of the hard disk is taken, the photo is image-processed, the information such as the brand, model, performance, serial number of the hard disk is automatically recognized, the server to which the hard disk belongs is associated, and the automatic filing of the hard disk information is realized.b) In the exit link (fault replacement, or batch offline at the end of the life cycle, etc.), the hard disk to be exited is found through the associated server, the front photo of the hard disk is taken through the mobile terminal and uploaded, image recognition is performed, and the information of the replaced hard disk and the associated equipment are checked by comparing with the photo information in the procurement link.c) In the degaussing link, the front photo of the hard disk is taken by the degaussing machine, and after image processing, it is compared with the previous two times, and at the same time, the degaussing machine can obtain the weight, appearance size and other attribute data of the hard disk through weighing, scanning the volume profile of the disk and other measures, and compare the attributes with other hard disks of the same type or batch, to ensure that the exited hard disk is degaussed.
[0098] In an embodiment of the present specification, a hard disk management method of a data center is provided to solve the problem of low security of the existing hard disk management method.
[0099] Specifically, as shown in Figure 1 The hard disk management method of the data center comprises:
[0100] Step 110, identifying the image of the procured hard disk to obtain the attribute information of the hard disk;
[0101] Step 120, determining the associated server of the hard disk according to the attribute information of the hard disk, and establishing the filing information in the associated server based on the image of the hard disk and the attribute information of the hard disk;
[0102] Step 130, receiving the photographed image when the target hard disk exits from the server;
[0103] Step 140, verifying the photographed image according to the historical image in the filing information of the target hard disk, and prompting to transport the target hard disk to the next designated equipment after verification;
[0104] Step 150, determining the first verification information of the target hard disk according to the historical image, the photographed image and the scanned image of the target hard disk of the next designated equipment, and determining the second verification information according to the physical attribute verification result of the target hard disk of the next designated equipment;
[0105] Step 160, determining whether the target hard disk is a to-be-processed hard disk according to the first verification information and the second verification information.
[0106] The embodiment identifies the hard disk attribute information based on the hard disk image after the hard disk is delivered, and completes the filing according to the matching of the associated server based on the hard disk attribute information, thereby improving the intelligent management level of the hard disk procurement and delivery link; when the target hard disk is withdrawn from the server, the receiving staff uploads the shooting image of the target hard disk, and verifies the shooting image of the target hard disk at the time of withdrawal through the historical image of the target hard disk, thereby increasing the monitoring node and ensuring the correct withdrawal of the target hard disk; after the verification is passed, the target hard disk is verified again according to the historical image of the target hard disk, the shooting image, the scanning image of the next designated device, and the detection result of the physical attribute of the target hard disk by the next designated device, thereby effectively avoiding the malicious replacement of the target hard disk in the processing process and improving the security of the hard disk management.
[0107] In some embodiments of the present specification, when the staff receives the information of the target hard disk to be degaussed, the staff will go to the target server to perform the hard disk withdrawal operation according to the indication of the information, and take a photo of the target hard disk through a portable terminal device (such as a mobile phone) and upload it in time after the target hard disk is withdrawn, and then verify according to the uploaded shooting image and the historical image of the target hard disk, and instruct the staff to transport the target hard disk to the next designated device (i.e. degaussing processor) after the verification is passed. By verifying at the time of withdrawal of the target hard disk, it can avoid the withdrawal of the wrong hard disk, and at the same time, it can increase the monitoring node, and when the shooting image and the historical image of the target hard disk are inconsistent at this link, it can timely alarm.
[0108] When the staff transports the target hard disk to the next designated device, the next designated device will scan the target hard disk to obtain a scanning image, and based on the historical image of the target hard disk, the previous shooting image and the scanning image, it will perform comprehensive comparison to determine the first verification information of the target hard disk (i.e. whether the target hard disk is verified, which is a hard disk to be degaussed), and at the same time, it will verify the physical attribute of the target hard disk (i.e. the weight, outline, volume and other attributes of the target hard disk) to determine the second verification information of the target hard disk (i.e. whether the target hard disk is verified, which is a hard disk to be degaussed), and only when the first verification information and the second verification information of the hard disk are both verified, which is a hard disk to be degaussed, it is considered that the hard disk is the target hard disk, and then the degaussing of the hard disk is performed. Therefore, through the combination of multi-link, multi-image comparison and physical attribute detection, the difficulty of counterfeiting the target hard disk can be greatly increased, and the risk of replacing the target hard disk can be reduced.
[0109] In an embodiment of the present specification, as shown in Figure 2 determining the associated server of the hard disk according to the hard disk attribute information, and establishing the filing information in the associated server based on the hard disk image and the hard disk attribute information, comprising:
[0110] Step 210, determining whether there is an associated server according to the hard disk attribute information;
[0111] Step 220, when there is an associated server, associating the hard disk attribute information and the hard disk image, and automatically filing in the associated server;
[0112] Step 230, when there is no associated server, establishing a corresponding associated server according to the hard disk attribute information, associating the hard disk attribute information and the hard disk image, automatically filing in the corresponding associated server, and performing standard image processing and marking on the hard disk image to obtain a reference hard disk image corresponding to the hard disk attribute information.
[0113] The embodiment identifies the hard disk image to obtain the hard disk attribute information, and realizes automatic filing of the hard disk when there is an associated server, and reference image determination and filing when there is no associated server based on the hard disk attribute information, thereby improving the intelligent filing level after the hard disk is purchased and delivered.
[0114] In some embodiments of the present specification, the hard disk image can be identified by an image recognition algorithm, such as an algorithm based on Opencv or machine learning, to obtain hard disk attribute information (such as brand, model, performance, serial number, etc.), and based on the hard disk attribute information, it can be determined whether the corresponding hard disk is a new brand and model, if it is an existing brand and model, there is an associated server of the hard disk, the hard disk attribute information is associated with the hard disk image, and the file information is established in the associated server for subsequent calling; if it is a new brand and model, there is no associated server of the hard disk, at this time, the associated server needs to be established, and the hard disk attribute information is associated with the hard disk image, and the file information is established in the newly established associated server for subsequent calling, at the same time, considering that as a new brand and model, there is no standard image (i.e. reference hard disk image) corresponding to it in the server, it is necessary to generate a standard image based on standardized image acquisition, processing and manual marking, for subsequent image correction.
[0115] In some embodiments of the present specification, after identifying the hard disk attribute information, the corrected ordinary hard disk image is compared with the reference hard disk image in coordinates to obtain the image of the coordinate region with the highest similarity and the meaning represented by the region in the image (such as brand, model, serial number, etc.). By performing image text recognition on the specific region and recording under the corresponding attribute (such as brand, model, serial number, etc.) directory, intelligent information filing is realized.
[0116] Considering that the general specific attribute of the hard disk is relative to the fixed format information, such as the serial number is generally an alphanumeric combination, generally has a specific structure, TrOCR (based on Transformer) can be used, the model supports multiple languages, curved, multi-line text, no alignment direct output text, etc. Advantage, strong robustness to complex fonts and low-quality images, high matching degree with the information recognition function requirement of the hard disk surface. In order to improve the recognition accuracy of various attributes of the hard disk, first, the TrOCR model is pre-trained through a standard text library, and then the sample images of different brands and models in the preparation stage are used as the fine-tuning training set. At the same time, in order to enhance the training data, the images of different angles, different light intensities and rotation angles of the hard disk samples are artificially marked with the text information of the fine-tuning sample images.
[0117] At the same time, since there are multiple barcodes and number markers on the hard disk image, but multiple systems generally only use one as the identity code (ID) of the hard disk, which requires that the SN number of the same brand type hard disk must remain consistent, and is also easily disturbed by other codes on the hard disk surface. Therefore, the manufacturer, model, regular expression, rule verification, dictionary matching and other methods can be combined to accurately identify the unique sequence number of the same type of disk as the identity code (ID). For the results of image recognition, error correction and verification, add the picture and the corresponding corrected text to the model fine-tuning training sample to improve the training accuracy of the model.
[0118] In an embodiment of the present specification, as shown in Figure 3 The generation process of the historical image of the target hard disk includes:
[0119] Step 310, obtaining the historical acquisition image of the target hard disk when the target hard disk is purchased and the reference hard disk image;
[0120] Step 320, adjusting the historical acquisition image according to the preset identification information in the reference hard disk image and the specified position coordinates in the reference hard disk image, to obtain the historical image of the target hard disk.
[0121] In the process of generating the historical image of the target hard disk, the historical acquisition image of the target hard disk is adjusted by the reference hard disk image, so that the historical acquisition image can be more regularly displayed and stored for the staff to check and compare.
[0122] As shown in Figure 9A shooting schematic of a hard disk is shown (in the figure, a gray-scale image, the actual shooting image is in color, and some information in the figure, such as serial number, bar code, etc., is blurred, which is only used to show the method of the embodiments of the present specification), and it can be seen that the hard disk has a plurality of marks (such as "hp", "CE", "IC", etc.), which can be used to match the relative positions between hard disks of the same type, so as to correct the image (such as a historical acquisition image) by using the coordinates between the marks, thereby obtaining the historical image of the target hard disk. At the same time, in order to further improve the correction accuracy, the historical acquisition image can also be corrected by combining the coordinates of the specified positions (such as other representative and prominent positions in the hard disk image) in the reference hard disk image.
[0123] As shown in another embodiment of the present specification, Figure 4 The specific process of adjusting the historical acquisition image includes:
[0124] Step 410, respectively according to the coordinates of the preset marks in the reference hard disk image and the coordinates of the specified positions in the reference hard disk image, and the coordinates of the preset marks in the historical acquisition image and the coordinates of the specified positions in the historical acquisition image, determine a first relative relationship and a second relative relationship;
[0125] Step 420, adjust the historical acquisition image by using the first relative relationship and the second relative relationship, to obtain the historical image of the target hard disk.
[0126] The embodiments provide a specific method for adjusting the historical acquisition image, by determining a first relative relationship through the coordinates of the preset marks in the reference hard disk image and the coordinates of the specified positions in the reference hard disk image, and determining a second relative relationship through the coordinates of the preset marks in the historical acquisition image and the coordinates of the specified positions in the historical acquisition image, adjusting the historical acquisition image based on the first relative relationship and the second relative relationship, and then obtaining the historical image of the target hard disk.
[0127] The first relative relationship determines the relative positions of the marks and the specified positions in the reference hard disk image, and the second relative relationship determines the relative positions of the marks and the specified positions in the historical acquisition image. The first relative relationship is a relatively ideal relative relationship (the shooting angle and shooting condition of the reference hard disk image are relatively standard), therefore, according to the deviation between the second relative relationship and the first relative relationship, the historical acquisition image is adjusted, so that the second relative relationship gradually approximates to the first relative relationship, thereby realizing the correction of the historical acquisition image.
[0128] As shown in another embodiment of the present specification, Figure 5 The specific method for determining the relative relationship includes:
[0129] Step 510, determining the first relative relationship according to the relative deviation of the coordinates between the plurality of preset marks in the reference hard disk image and the relative deviation of the coordinates between the preset marks and the reference hard disk contour in the reference hard disk image;
[0130] Step 520, determining the second relative relationship according to the relative deviation of the coordinates between the plurality of preset marks in the historical acquisition image and the relative deviation of the coordinates between the preset marks and the reference hard disk contour in the historical acquisition image.
[0131] The embodiment considers the relative deviation of the coordinates between the plurality of preset marks and the relative deviation of the coordinates between the preset marks and the reference hard disk contour to determine the relative relationship, fully utilizes the relative distribution between specific objects in the same hard disk image, and thus provides a more reasonable relative relationship.
[0132] For the same type of hard disk, the distribution of the contents of the hard disk image has a unified specification (for example Figure 9 The hard disk shown in the figure, even if the barcodes, serial numbers and other information of different hard disks can be different, but the recorded positions are similar, so the relative positions between these marks and the relative positions between the marks and the hard disk contour can be used as a reference for the historical acquisition image to be corrected.
[0133] In another embodiment of the present specification, the historical acquisition image can also be processed in blocks, for example Figure 9 In the image shown in the figure, there are 7 different barcodes, which can be regarded as being distributed in 6 different rows (for example, the numbers 1, 2, 3, 4, 5, and 6 in the figure correspond to different rows), and the 5th row has two barcodes. At the same time, it can also be observed that the barcodes in the 1st and 2nd rows have a relatively large relative distance from the barcodes in the 3rd and 4th rows, and the barcodes in the 3rd and 4th rows have a relatively large relative distance from the barcodes in the 5th and 6th rows, so the 6 rows of barcodes can be divided into 3 blocks, i.e. the barcodes in the 1st and 2nd rows are the first region, the barcodes in the 3rd and 4th rows are the second region, and the barcodes in the 5th and 6th rows are the third region. Then, the relative positions of the first region, the second region and the third region are used to correct the historical acquisition image, which can reduce the calculation cost and improve the correction efficiency, and the relative positions of the first region, the second region and the third region relative to the hard disk contour can be combined to further improve the correction accuracy.
[0134] In some embodiments of the present specification, a transformation matrix that maps the second relative relationship to the first mapping relationship can be obtained according to the first relative relationship and the second relative relationship, and then the historical acquisition image is corrected by using the transformation matrix to obtain the historical image.
[0135] In an embodiment of the present specification, as Figure 6As shown, according to the historical image, the photographed image and the scanning image of the target hard disk, the first verification information of the target hard disk is determined, comprising:
[0136] In step 610, according to the hard disk identification information of the photographed image and the scanning image, a consistency verification result is determined.
[0137] In step 620, if the consistency verification is passed, the first calculation weight and the second calculation weight are determined according to the pixel distribution of the historical image and the photographed image and the pixel distribution of the historical image and the scanning image, respectively.
[0138] In step 630, the first identification score and the second identification score are determined according to the hard disk identification information of the historical image and the photographed image and the hard disk identification information of the historical image and the scanning image, respectively; the first identification score corresponds to the first calculation weight, and the second identification score corresponds to the second calculation weight.
[0139] In step 640, according to the first calculation weight, the second calculation weight, the first identification score and the second identification score, the first verification information of the target hard disk is determined.
[0140] The embodiment verifies the consistency of the photographed image and the scanning image through the hard disk identification information, to ensure that the target hard disk is not replaced during transportation; when the verification is passed, the calculation weight is determined according to the pixel distribution of the photographed image and the scanning image, and then the first verification information of the target hard disk is obtained by using the calculation weight and the identification score, which improves the verification accuracy.
[0141] Due to different conditions such as shooting environment (for example, different light, temperature, humidity, etc.), shooting device, etc., there are certain differences in imaging of the photographed image, the scanning image and the historical image, which can be reflected by the pixel distribution. The closer the pixel distribution of two images is, the closer the external conditions of the imaging of the two images are (which to some extent avoids the difficulty of forging images), and then the pixel distribution is taken into account, which can obtain a more reasonable verification result.
[0142] The difference between the pixel distribution of the photographed image and the historical image can be determined through the pixel distribution of the historical image and the photographed image, and the difference between the pixel distribution of the scanning image and the historical image can be determined through the pixel distribution of the historical image and the scanning image. The pixel difference value can be calculated by averaging the total pixel difference, or other methods can be used, which are not limited in the specification. After obtaining the difference value of the pixel distribution, the difference value can be mapped according to the preset rule to obtain the first calculation weight and the second calculation weight corresponding to the photographed image and the scanning image, respectively, or the difference value can be directly used as the calculation weight. The specific implementation manner is not limited in the specification.
[0143] After the calculation weight is determined, the first identification score and the second identification score can be determined according to the hard disk identification information (for example, different identification, serial number, bar code, special position and the like of the hard disk obtained through image recognition) of the historical image and the photographed image, and the hard disk identification information of the scanned image, the identification score reflecting the closeness of the hard disk information in the photographed image / scanned image and the hard disk information in the historical image, and then combining the calculation weight and the identification score, and comprehensively considering the verification results of the photographed image and the scanned image, the security of the degaussing management can be further improved.
[0144] Further, as shown in the embodiment of the present specification, Figure 7 According to the first calculation weight, the second calculation weight, the first identification score and the second identification score, the first verification information of the target hard disk is determined.
[0145] Step 710, determining the calculation weight with the highest weight value from the first calculation weight and the second calculation weight, and the identification score corresponding to the calculation weight with the highest weight value;
[0146] Step 720, performing weighted operation based on the calculation weight with the highest weight value and the corresponding identification score to obtain the weighted score of the target hard disk;
[0147] Step 730, determining the first verification information of the target hard disk according to the weighted score and the preset score threshold.
[0148] The embodiment selects the calculation weight with the highest weight value from the first calculation weight and the second calculation weight to determine the to-be-verified image (photographed image / scanned image) closest to the historical image, and then performs weighted operation according to the calculation weight with the highest weight value and the corresponding identification score, and compares it with the preset score threshold to obtain more effective first verification information.
[0149] The calculation weight with the highest weight value can be used to determine the image closest to the external conditions of the historical image, and then a more reasonable weighted score is obtained based on the weight value and the identification score of the image. The weighted calculation method can be the product of the weight value and the identification score, or the weight value and the identification score can be assigned a calculation coefficient respectively and then summed, or it can be other weighted methods, which are not limited in the present specification. The preset score threshold can be a reasonable threshold obtained through a large number of experiments, or a threshold set in combination with experience and theory, which are also not limited in the present specification.
[0150] In addition to the preset score threshold for the calculation weight with the highest weight value, a second preset score threshold can also be set for the calculation weight with the lowest weight value. When the weighted score corresponding to the calculation weight with the lowest weight value meets the second preset score threshold, it is considered that the target hard disk passes the verification, further ensuring the security of the hard disk management.
[0151] Based on the same inventive concept, the embodiments of the present specification also provide a hard disk management apparatus of a data center, as described in the following embodiments. Since the hard disk management apparatus of the data center solves the problem by the similar principle as the hard disk management method of the data center, the implementation of the hard disk management apparatus of the data center can be referred to the hard disk management method of the data center, and the repeated parts will not be described herein.
[0152] Specifically, as shown in Figure 10 The hard disk management apparatus of the data center comprises:
[0153] The identification module 1010 is configured to identify the image of the purchased hard disk to obtain the attribute information of the hard disk;
[0154] The filing module 1020 is configured to determine the associated server of the hard disk according to the attribute information of the hard disk, and establish the archive information in the associated server based on the image of the hard disk and the attribute information of the hard disk;
[0155] The receiving module 1030 is configured to receive the photographed image when the target hard disk exits from the server;
[0156] The first verification module 1040 is configured to verify the photographed image according to the historical image of the target hard disk, and prompt the transportation of the target hard disk to the next designated device after the verification is passed;
[0157] The second verification module 1050 is configured to determine the first verification information of the target hard disk according to the historical image, the photographed image and the scanned image of the target hard disk of the next designated device, and determine the second verification information according to the physical attribute verification result of the target hard disk of the next designated device;
[0158] The determination module 1060 is configured to determine whether the target hard disk is the hard disk to be processed according to the first verification information and the second verification information.
[0159] Based on the same inventive concept, the embodiments of the present specification also provide a hard disk management system of a data center, as shown in Figure 11 The hard disk management system comprises a resource management system 1110, a change management system 1120, a processing management system 1130 and a processing machine 1140;
[0160] The resource management system 1110 is configured to store the information of the hard disk and the information of the server where the hard disk is located;
[0161] The change management system 1120 is configured to obtain the information of the target hard disk and the information of the server corresponding to the target hard disk from the resource management system according to the target hard disk list, and send the information of the target hard disk and the information of the server corresponding to the target hard disk to the processing management system;
[0162] The processing management system 1130 is configured to verify the collection information of the target hard disk when the target hard disk is removed from the server according to the information of the target hard disk, and prompt the transportation of the target hard disk to the processing management system after the verification is passed; the processing management system is also configured to verify according to the information of the target hard disk, the collection information and the hard disk information scanned by the processing machine, and prompt the processing machine to process the hard disk after the verification is passed.
[0163] The processing machine 1140 is configured to process the hard disk.
[0164] Figure 8 The application schematic diagram is for the hard disk management system, the faulty hard disk (i.e. the target hard disk to be processed) is located in the server of the data center machine room, when the management personnel submits the target hard disk list, the change management system 1120 obtains the information of the target hard disk and the information of the server corresponding to the target hard disk from the resource management system 1110 according to the target hard disk list, and then pushes the obtained information to the processing management system 1130 (i.e. the degaussing management system server), and prompts the staff to go to the server to replace the faulty target hard disk.
[0165] After the target hard disk is removed from the server, the staff uses a handheld terminal to take a picture of the target hard disk, and uploads the picture to the processing management system 1130, and after receiving the instruction information of the processing management system after the verification is passed, the staff transports the target hard disk to the degaussing room of the data center, the processing machine 1140 (i.e. the intelligent degaussing all-in-one machine) generates a scanning image based on the target hard disk, and detects the physical properties such as weight, outline and volume of the target hard disk, the processing management system 1130 determines the target hard disk as a hard disk to be degaussed based on the historical image, the photographed image and the scanning image of the target hard disk, and the physical property detection result of the target hard disk, and then the processing machine 1140 degausses the hard disk to be degaussed.
[0166] In the hard disk management system, the handheld terminal is a networkable and photographable mobile phone device or a special terminal, the processor 1140 includes a touch screen, authentication, scanning, identification, a hard disk to be demagnetized and a delivery port, demagnetization, crushing, storage, all-in-one machine control, communication and other modules, the resource management system 1110 can record the basic information of the hard disk and the server, such as a unique number, a serial number, a brand, a model, a purchase and production date, an exit and demagnetization date, and the like, the change management system 1120 is responsible for the initiation, evaluation, approval, implementation, monitoring and rollback of changes, to ensure that changes are made within a controllable range, to reduce the impact on business, and to improve the stability and reliability of the IT system, the processing management system 1130 controls and records the whole process of the hard disk demagnetization from initiation, hard disk exit, and hard disk demagnetization implementation; in addition, the hard disk management system also includes a server monitoring system 1150 for recording server running status and fault information, and a data analysis platform 1160 for extracting relevant management system data, performing data analysis, and outputting an analysis report.
[0167] The hard disk management method, device and system of the data center provided by the embodiment of the present specification receive the shooting image uploaded by the staff for the target hard disk when the target hard disk is exited from the server, and verify the shooting image at the time of the target hard disk exit through the historical image of the target hard disk, increase the monitoring node, and ensure the correct exit of the target hard disk; after the verification is passed, the target hard disk is verified again according to the historical image of the target hard disk, the shooting image, the scanning image of the next specified device, and the detection result of the physical property of the target hard disk by the next specified device, effectively avoid the target hard disk being maliciously replaced in the processing process, and improve the security of the hard disk management.
[0168] In an embodiment of the present specification, a computer device is also provided for implementing the method described in any of the above embodiments, such as Figure 12The diagram illustrates the structure of a computer device according to an embodiment of this specification. The computer device 1202 may include one or more processors 1204, such as one or more central processing units (CPUs), each of which can implement one or more hardware threads. The computer device 1202 may also include any memory 1206 for storing information of any kind, such as code, settings, data, etc. Without limitation, for example, the memory 1206 may include any type of RAM, any type of ROM, flash memory, hard disk, optical disk, etc. More generally, any memory can use any technology to store information. Furthermore, any memory can provide volatile or non-volatile retention of information. Furthermore, any memory can represent a fixed or removable component of the computer device 1202. In one case, when the processor 1204 executes associated instructions stored in any memory or combination of memories, the computer device 1202 can perform any operation of the associated instructions. The computer device 1202 also includes one or more drive mechanisms 1208 for interacting with any memory, such as hard disk drive mechanisms, optical disk drive mechanisms, etc.
[0169] Computer device 1202 may also include an input / output module 1210 (I / O) for receiving various inputs (via input device 1212) and providing various outputs (via output device 1214). A specific output mechanism may include a presentation device 1216 and an associated graphical user interface (GUI) 1218. In other embodiments, the input / output module 1210 (I / O), input device 1212, and output device 1214 may be omitted, and the device may function solely as a computer device within a network. Computer device 1202 may also include one or more network interfaces 1220 for exchanging data with other devices via one or more communication links 1222. One or more communication buses 1224 couple the components described above together.
[0170] Communication link 1222 can be implemented in any way, such as via a local area network, a wide area network (e.g., the Internet), a point-to-point connection, or any combination thereof. Communication link 1222 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
[0171] Corresponding to Figures 1 to 7 In addition to the methods described above, embodiments of this specification also provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the methods described above.
[0172] The embodiments of the present specification also provide a computer readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the method as shown in Figures 1 to 7
[0173] It should be understood that the size of the sequence number of each process described above in various embodiments of the present specification does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present specification.
[0174] It should also be understood that in the embodiments of the present specification, the term "and / or" is only to describe the association relationship of the associated objects, which means that there can be three relationships. For example, A and / or B can represent three cases of A alone, A and B together, and B alone. In addition, the character " / " in the present specification generally represents an "or" relationship between the front and rear associated objects.
[0175] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present specification can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present specification.
[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0177] In several embodiments provided in the present specification, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, and the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed mutual objects can be indirect coupling or communication connection through some interfaces, devices or units, and can also be electrical, mechanical or other forms of connection.
[0178] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present specification.
[0179] In addition, each functional unit in each embodiment of the present specification can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0180] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present specification essentially or say the part of the prior art that contributes, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present specification. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0181] The principles and implementation manners of the present specification are described in the specific embodiments in the present specification, and the above embodiment description is only used to help understand the method and core idea of the embodiments of the present specification; at the same time, for those skilled in the art, according to the idea of the embodiments of the present specification, the specific implementation manner and application range will be changed, and the above, the content of the present specification should not be understood as a limitation of the embodiments of the present specification.
Claims
1. A hard disk management method for a data center, characterized in that, The method includes: Identify the images of the purchased hard drives upon arrival to obtain their attribute information; The associated server of the hard drive is determined based on the hard drive attribute information, and file information is established in the associated server based on the hard drive image and the hard drive attribute information; Receive images captured when the target hard drive is ejected from the server; The captured image is verified based on the historical images in the target hard drive file information, and after successful verification, the target hard drive is prompted to be transported to the next designated device; Based on the historical images, the captured images, and the scan images of the target hard drive by the next designated device, the first verification information of the target hard drive is determined, and based on the physical attribute verification results of the target hard drive by the next designated device, the second verification information is determined. Based on the first verification information and the second verification information, determine whether the target hard drive is the hard drive to be processed.
2. The method as described in claim 1, characterized in that, The associated server of the hard drive is determined based on the hard drive attribute information, and file information is established in the associated server based on the hard drive image and the hard drive attribute information, including: Determine whether the hard drive image is associated with a server based on the hard drive attribute information; When an associated server exists, the hard disk attribute information and the hard disk image are associated, and automatic archiving is performed on the associated server; When no associated server exists, a corresponding associated server is established based on the hard disk attribute information, and the hard disk attribute information and the hard disk image are associated. Automatic archiving is performed on the corresponding associated server, and the hard disk image is standardized and labeled to obtain a reference hard disk image corresponding to the hard disk attribute information.
3. The method as described in claim 1, characterized in that, The process of generating historical images on the target hard drive includes: Acquire historical images of the target hard drive upon its delivery, as well as images of a reference hard drive. Based on the preset identification information and specified position coordinates in the reference hard disk image, the historical acquisition image is adjusted to obtain the historical image of the target hard disk.
4. The method as described in claim 3, characterized in that, Based on preset identification information and specified position coordinates in the reference hard disk image, the historically acquired image is adjusted to obtain a historical image of the target hard disk, including: The first relative relationship and the second relative relationship are determined based on the coordinates of the preset marker in the reference hard disk image and the coordinates of the specified position in the reference hard disk image, and the coordinates of the preset marker in the historical acquisition image and the coordinates of the specified position in the historical acquisition image, respectively. The historical images are adjusted using the first and second relative relationships to obtain the historical images of the target hard drive.
5. The method as described in claim 4, characterized in that, Determine a first relative relationship and a second relative relationship based on the coordinates of a preset marker in the reference hard disk image and the coordinates of a specified position in the reference hard disk image, and the coordinates of a preset marker in the historical acquired image and the coordinates of a specified position in the historical acquired image, respectively, including: A first relative relationship is determined based on the relative deviation of the coordinates between multiple preset markers in the reference hard disk image, and the relative deviation of the coordinates between the preset markers and the outline of the reference hard disk in the reference hard disk image; The second relative relationship is determined based on the relative deviation of the coordinates between multiple preset markers in the historical acquired images, and the relative deviation of the coordinates between the preset markers and the outline of the reference hard disk in the historical acquired images.
6. The method as described in claim 1, characterized in that, Based on the historical images, the captured images, and the scan images of the target hard drive by the next designated device, the first verification information of the target hard drive is determined, including: Based on the hard drive identification information of the captured image and the scanned image, the consistency verification result is determined; If the consistency verification is passed, the first calculation weight and the second calculation weight are determined based on the pixel distribution of the historical image and the captured image, and the pixel distribution of the historical image and the scanned image, respectively. A first recognition score and a second recognition score are determined based on the hard drive identification information of the historical image and the captured image, and the hard drive identification information of the historical image and the scanned image, respectively; the first recognition score corresponds to the first calculation weight, and the second recognition score corresponds to the second calculation weight. The first verification information of the target hard drive is determined based on the first calculated weight, the second calculated weight, the first recognition score, and the second recognition score.
7. The method as described in claim 6, characterized in that, Based on the first calculated weight, the second calculated weight, the first recognition score, and the second recognition score, the first verification information of the target hard drive is determined, including: The highest calculated weight and the corresponding recognition score are determined from the first calculated weight and the second calculated weight. The weighted score of the target hard drive is obtained by performing a weighted calculation based on the highest weight value and the corresponding recognition score. The first verification information of the target hard drive is determined based on the weighted score and the preset score threshold.
8. A hard disk management device for a data center, characterized in that, The device includes: The identification module is used to identify images of purchased hard drives and obtain hard drive attribute information; The filing module is used to determine the associated server of the hard disk based on the hard disk attribute information, and to establish file information in the associated server based on the hard disk image and the hard disk attribute information; The receiving module is used to receive images captured when the target hard drive is ejected from the server; The first verification module is used to verify the captured image based on the historical images in the target hard disk file information, and prompts the target hard disk to be transported to the next designated device after the verification is passed; The second verification module is used to determine the first verification information of the target hard drive based on the historical image, the captured image and the scan image of the target hard drive by the next designated device, and to determine the second verification information based on the physical attribute verification result of the target hard drive by the next designated device. The determination module is used to determine whether the target hard disk is the hard disk to be processed based on the first verification information and the second verification information.
9. A hard disk management system for a data center, characterized in that, Applied to any one of the methods described in claims 1 to 7, the hard disk management system includes: a resource management system, a change management system, a processing management system, and a processor; The resource management system is used to store hard disk information and information about the server where the hard disk is located. The change management system is used to obtain information about the target hard drives and the corresponding servers from the resource management system based on the target hard drive list, and then send the target hard drive information and the corresponding server information to the processing management system. The processing and management system is used to verify the information collected when the target hard drive leaves the server based on the information of the target hard drive, and prompts the target hard drive to be transported to the processing and management system after the verification is successful; the processing and management system is also used to verify the information of the target hard drive, the collected information and the hard drive information obtained by the processor scanning, and prompts the processor to process the hard drive after the verification is successful. The processor is used to process the hard disk.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 7.