CN113297019A - Hard disk positioning method and device, readable storage medium and electronic equipment - Google Patents

Hard disk positioning method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN113297019A
CN113297019A CN202110537771.4A CN202110537771A CN113297019A CN 113297019 A CN113297019 A CN 113297019A CN 202110537771 A CN202110537771 A CN 202110537771A CN 113297019 A CN113297019 A CN 113297019A
Authority
CN
China
Prior art keywords
hard disk
fault
disk
tested
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110537771.4A
Other languages
Chinese (zh)
Other versions
CN113297019B (en
Inventor
孙成思
孙日欣
李家敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Baiwei Storage Technology Co ltd
Original Assignee
Chengdu Baiwei Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Baiwei Storage Technology Co ltd filed Critical Chengdu Baiwei Storage Technology Co ltd
Priority to CN202110537771.4A priority Critical patent/CN113297019B/en
Publication of CN113297019A publication Critical patent/CN113297019A/en
Application granted granted Critical
Publication of CN113297019B publication Critical patent/CN113297019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a method and a device for positioning a hard disk, a readable storage medium and electronic equipment, wherein disk information corresponding to the hard disk to be tested is stored according to a received test request of the hard disk to be tested; receiving a positioning request of a fault hard disk in the hard disk to be detected; according to the positioning request, the position information corresponding to the fault hard disk is inquired from the disk information, the fault hard disk is positioned based on the position information, the problem that a physical disk corresponding to a fault logical disk cannot be quickly positioned when a plurality of hard disks are tested in the same environment at the same time is solved, the problems that in the prior art, the software and hardware cost and the development period are increased due to the fact that the hard disks are positioned by a method of additionally arranging LED indicating lamps are avoided, the fault hard disk is positioned through the stored disk information, and the fault hard disk can be conveniently and quickly positioned.

Description

Hard disk positioning method and device, readable storage medium and electronic equipment
Technical Field
The invention relates to the technical field of solid state disks, in particular to a method and a device for positioning a hard disk, a readable storage medium and electronic equipment.
Background
In the testing process of a Solid State Drive (SSD) disk, a tool is usually used in an operating system to operate the disk, and at this time, a large number of hard disks are often tested together, when one disk or a plurality of disks have problems, the system only displays a certain disk symbol error, such as an E disk or an F disk error under Windows, but does not know which actual physical disk corresponds to specifically, so that the positioning is not clear enough, the problem disk cannot be found out at the first time, and the testing efficiency is greatly influenced; in the prior art, a common method is to add an LED indicator lamp on a hard disk and turn on the indicator lamp of a problem disk by sending a management command, but this method will increase the cost of software and hardware and has a long development period.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method and the device for positioning the hard disk, the readable storage medium and the electronic equipment are provided, and the failed hard disk can be conveniently and quickly positioned.
In order to solve the technical problems, the invention adopts a technical scheme that:
a method for positioning a hard disk comprises the following steps:
storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
receiving a positioning request of a fault hard disk in the hard disk to be detected;
and inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request, and positioning the fault hard disk based on the position information.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
an apparatus for hard disk location, comprising:
the data storage module is used for storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
the positioning request receiving module is used for receiving a positioning request of a fault hard disk in the hard disk to be detected;
and the hard disk positioning module is used for inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request and positioning the fault hard disk based on the position information.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method of hard disk positioning as described above.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of a method of hard disk location as described above when executing the computer program.
The invention has the beneficial effects that:
the method comprises the steps of storing disk information corresponding to a hard disk to be tested, inquiring position information corresponding to a fault hard disk according to the stored disk information, and positioning the fault hard disk based on the position information, so that the problem that a physical disk corresponding to a fault logical disk cannot be quickly positioned when a plurality of hard disks are tested in the same environment at the same time is solved, the method for positioning by adding an LED indicator lamp on the hard disks is not used as in the prior art, the software and hardware cost and the development period are increased, the fault hard disk is positioned through the stored disk information, and the fault hard disk can be conveniently and quickly positioned.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for positioning a hard disk according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a hard disk positioning apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for locating a hard disk according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a failure serial number and a non-failure serial number in the hard disk location method according to the embodiment of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for positioning a hard disk, including:
storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
receiving a positioning request of a fault hard disk in the hard disk to be detected;
and inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request, and positioning the fault hard disk based on the position information.
From the above description, the beneficial effects of the present invention are: the method comprises the steps of storing disk information corresponding to a hard disk to be tested, inquiring position information corresponding to a fault hard disk according to the stored disk information, and positioning the fault hard disk based on the position information, so that the problem that a physical disk corresponding to a fault logical disk cannot be quickly positioned when a plurality of hard disks are tested in the same environment at the same time is solved, the method for positioning by adding an LED indicator lamp on the hard disks is not used as in the prior art, the software and hardware cost and the development period are increased, the fault hard disk is positioned through the stored disk information, and the fault hard disk can be conveniently and quickly positioned.
Further, before storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested, the method comprises the following steps:
receiving access completion information of the hard disk to be tested, scanning the hard disk to be tested according to the access completion information, and generating a serial number corresponding to the hard disk to be tested;
the storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested comprises the following steps:
reading a serial number and a logical drive sign corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested, and generating and storing disk information corresponding to the hard disk to be tested according to the serial number and the logical drive sign corresponding to the hard disk to be tested.
According to the description, the hard disks to be detected are uniformly scanned according to the access completion information, the serial numbers corresponding to the hard disks to be detected are generated, the generated serial numbers are unique, each hard disk to be detected can be identified, the fast positioning is convenient, the disk information corresponding to the hard disks to be detected is stored, the logical disk identifier corresponding to each hard disk and the serial numbers are stored, and the actual physical disks can be conveniently positioned through the logical disk identifiers based on the stored disk information.
Further, when the hard disk to be tested is scanned, a test program corresponding to the hard disk to be tested is generated;
after the disk information corresponding to the hard disk to be tested is generated and stored according to the serial number and the logical disk identifier corresponding to the hard disk to be tested, the method also comprises the following steps before the positioning request of the fault hard disk in the hard disk to be tested is received:
calling the test program to test the hard disk to be tested according to the test request to obtain a test result, wherein the test result comprises a logic disk character of a fault hard disk in the hard disk to be tested;
and acquiring a fault serial number corresponding to the fault hard disk from the disk information according to the logical disk identifier of the fault hard disk, and outputting and displaying the fault serial number corresponding to the fault hard disk.
According to the description, the fault serial number corresponding to the logical disk identifier of the fault hard disk is obtained from the disk information according to the test result and displayed, so that a tester can be prompted to specifically indicate which hard disk has a problem, and the effectiveness of hard disk test is improved.
Further, the positioning request of the fault hard disk in the hard disk to be tested comprises a fault serial number corresponding to the fault hard disk;
the disk information also comprises a mechanical arm number and a hard disk frame slot number corresponding to the hard disk to be tested;
the querying, according to the location request, the location information corresponding to the failed hard disk from the disk information includes:
inquiring the fault mechanical arm number and the fault hard disk frame slot number corresponding to the fault hard disk from the disk information according to the fault serial number;
the locating the failed hard disk based on the location information comprises:
and generating a fault hard disk pulling-out instruction according to the fault mechanical arm number and the fault hard disk frame slot number, and sending the fault hard disk pulling-out instruction to a mechanical arm corresponding to the fault mechanical arm number, wherein the fault hard disk pulling-out instruction indicates that the mechanical arm pulls out the fault hard disk.
According to the description, the fault mechanical arm number and the fault hard disk frame slot number corresponding to the fault hard disk can be determined through the disk information, the specific position information of the fault hard disk can be found, the fault hard disk pulling-out instruction is generated and sent to the mechanical arm corresponding to the fault mechanical arm number, the mechanical arm is instructed to pull out the fault hard disk through the fault hard disk pulling-out instruction, the automatic test is achieved, and the hard disk test efficiency is improved.
Further, the method also comprises the following steps:
and receiving a serial number printing instruction of the hard disk to be tested, and printing the serial number in the disk information according to the serial number printing instruction of the hard disk to be tested.
According to the above description, the mechanical arm can extract all fault hard disks after one round of test is finished, the serial numbers of the hard disks to be tested are printed and are pasted on the hard disks to be tested, if the problem hard disks more than 2 exist, the hard disks are provided with the corresponding serial numbers in appearance so as to be convenient to distinguish, and therefore the fault hard disks are known and the problems are solved, and the test effectiveness is improved.
Further, the method also comprises the following steps:
receiving pull-out completion information of the hard disk to be tested, wherein the pull-out completion information comprises a fault serial number of the pulled-out fault hard disk;
and deleting the disk information corresponding to the fault hard disk from the disk information according to the fault serial number.
According to the description, the disk information corresponding to the pulled hard disk to be tested is deleted according to the received pulling-out completion information, the disk information can be updated in time, the occupied space is reduced, meanwhile, preparation is made for the next round of testing, and the automatic testing is realized.
Further, the disc information is stored in the form of a data table.
As can be seen from the above description, the disk information is stored in the form of a data table, so that the extensibility and flexibility are higher, and there is no limitation on the amount of data in the disk information.
Referring to fig. 2, another embodiment of the present invention provides a hard disk positioning apparatus, including:
the data storage module is used for storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
the positioning request receiving module is used for receiving a positioning request of a fault hard disk in the hard disk to be detected;
and the hard disk positioning module is used for inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request and positioning the fault hard disk based on the position information.
Another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the above-mentioned method for positioning a hard disk.
Referring to fig. 3, another embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor executes the computer program to implement the steps of the above-mentioned method for positioning a hard disk.
The method, the apparatus, the readable storage medium, and the electronic device for positioning a hard disk according to the present invention can be applied to positioning of any type of Solid State Drive (SSD), such as a flash Memory-based SSD and a DRAM (Dynamic Random Access Memory) -based SSD, and the following description is provided by specific embodiments:
example one
Referring to fig. 1, 4-5, a method for positioning a hard disk according to the present embodiment includes the steps of:
s0, receiving access completion information of a hard disk to be tested, scanning the hard disk to be tested according to the access completion information, and generating a serial number and a test program corresponding to the hard disk to be tested;
specifically, the hard disk access instruction to be tested is sent to the mechanical arm, the hard disk access instruction to be tested instructs the mechanical arm to insert the hard disks to be tested into the slots of the hard disk frame one by one, the automatic testing tool scans the hard disks to be tested which are currently inserted into the hard disk frame, and after all the hard disks are inserted, all the hard disks to be tested are scanned again; receiving access completion information of the hard disk to be tested, scanning the hard disk to be tested according to the access completion information, and generating a serial number and a test program corresponding to the hard disk to be tested, as shown in fig. 4;
the hard disk frame is connected with an operating system and comprises a plurality of slots, each slot is provided with a corresponding number, the operating system comprises a Windows operating system and a Linux operating system, a plurality of mechanical arms are provided, each mechanical arm is provided with a corresponding number, each mechanical arm can correspond to a plurality of hard disk frame slots, and the serial number is unique and is used as a unique identifier of each disk;
s1, storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
wherein, the disc information is stored in a form of a data table;
specifically, a serial number and a logical drive letter corresponding to a hard disk to be tested are read according to a received test request of the hard disk to be tested, and disk information corresponding to the hard disk to be tested is generated and stored according to the serial number and the logical drive letter corresponding to the hard disk to be tested, wherein the disk information further comprises a mechanical arm number and a hard disk frame slot number corresponding to the hard disk to be tested;
as shown in fig. 4, an identification command may be sent to the hard disk to be tested, and a format file system operation is performed on the hard disk to be tested, so as to read the disk information corresponding to the hard disk to be tested, where the disk information under different operating systems is shown in tables 1 and 2;
TABLE 1 Windows query table
Figure BDA0003070478010000071
TABLE 2 Linux query table
Figure BDA0003070478010000072
In the table, Disk Number represents a hard Disk frame slot Number under the Windows operating system, SCSI id represents a hard Disk frame slot Number under the Linux operating system, Logic Disk letter represents a logical Disk symbol under the Windows operating system, device name represents a logical Disk symbol under the Linux operating system, and Serial Number represents a Serial Number;
receiving a serial number printing instruction of the hard disk to be tested, and printing a serial number in the disk information according to the serial number printing instruction of the hard disk to be tested;
as shown in fig. 4, after the serial number in the disk information is printed, the serial number is pasted to the corresponding hard disk to be tested, and after one round of test is finished, the mechanical arm will take out all the failed hard disks, and if there are more than 2 failed hard disks, the corresponding serial number is pasted on the hard disk appearance for easy resolution;
s2, calling the test program to test the hard disk to be tested according to the test request to obtain a test result, wherein the test result comprises a logic disk symbol of a fault hard disk in the hard disk to be tested;
when the automatic test tool is used for testing, the logic disk character process is used for testing, and when a fault hard disk exists, tool prompt information can directly feed back the name of the logic disk character;
acquiring a fault serial number corresponding to the fault hard disk from the disk information according to the logical disk identifier of the fault hard disk, and outputting and displaying the fault serial number corresponding to the fault hard disk, as shown in fig. 4;
as shown in fig. 5, in addition to outputting and displaying the fault serial number corresponding to the faulty hard disk, the non-faulty serial number corresponding to the non-faulty hard disk is also output and displayed, and the fault serial number and the non-faulty serial number are output and displayed in different areas, so that a tester can clearly know which are faulty hard disks and which are non-faulty hard disks in the test process;
s3, receiving a positioning request of a fault hard disk in the hard disk to be tested;
s4, inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request, and positioning the fault hard disk based on the position information.
Example two
Referring to fig. 4, the embodiment further defines how to locate and pull out the failed hard disk based on the first embodiment, and specifically includes:
in S3, the location request of the failed hard disk in the hard disk to be tested includes a failure serial number corresponding to the failed hard disk;
s41, inquiring the fault mechanical arm number and the fault hard disk frame slot number corresponding to the fault hard disk from the disk information according to the fault serial number, as shown in FIG. 4;
s42, generating a fault hard disk pulling-out instruction according to the fault mechanical arm number and the fault hard disk frame slot number, and sending the fault hard disk pulling-out instruction to a mechanical arm corresponding to the fault mechanical arm number, wherein the fault hard disk pulling-out instruction indicates the mechanical arm to pull out the fault hard disk, as shown in FIG. 4;
s5, receiving pull-out completion information of the hard disk to be tested, wherein the pull-out completion information comprises a fault serial number of the pulled-out fault hard disk;
deleting the disk information corresponding to the fault hard disk from the disk information according to the fault serial number;
the unplugging completion information can also comprise a non-fault serial number of the unplugged non-fault hard disk, and disk information corresponding to the non-fault hard disk is deleted from the disk information according to the non-fault serial number;
after one round of test is finished, after all the test hard disks are pulled out, the corresponding disk information is automatically deleted, so that the next round of test of a new hard disk to be tested is facilitated, the automatic test is realized, and the test efficiency is improved.
EXAMPLE III
Referring to fig. 2, an apparatus for positioning a hard disk includes:
the data storage module is used for storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
the positioning request receiving module is used for receiving a positioning request of a fault hard disk in the hard disk to be detected;
and the hard disk positioning module is used for inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request and positioning the fault hard disk based on the position information.
Example four
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, is adapted to carry out the steps of the method for hard disk location of the first embodiment or the second embodiment.
EXAMPLE five
Referring to fig. 3, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the steps of the method for positioning a hard disk according to the first embodiment or the second embodiment.
In summary, according to the method, the apparatus, the readable storage medium and the electronic device for positioning a hard disk provided by the present invention, the hard disk to be tested is scanned according to the received access completion information, and a serial number and a test program corresponding to the serial number are generated, where the serial number is unique, and can identify each hard disk to be tested, thereby facilitating subsequent quick positioning; the method comprises the steps that disk information corresponding to a hard disk to be tested is stored according to a received test request of the hard disk to be tested, the disk information comprises a serial number, a logical disk symbol, a mechanical arm number and a hard disk frame slot number corresponding to the hard disk to be tested, the serial number in the disk information is printed according to a received serial number printing instruction and is pasted to the hard disk to be tested, a plurality of fault hard disks taken out can be distinguished conveniently in a follow-up mode, and therefore specific fault hard disks and problems can be known, and test effectiveness is improved; calling a test program to test a hard disk to be tested according to a test request to obtain a test result, acquiring a corresponding fault serial number from disk information according to a logic disk symbol of a fault hard disk in the test result, outputting and displaying the fault serial number to prompt a tester of which hard disk has a problem, receiving a positioning request of the fault hard disk, inquiring a fault mechanical arm number and a fault hard disk frame slot number corresponding to the fault hard disk from the disk information according to the positioning request, generating a fault hard disk pulling-out instruction according to the fault hard disk pulling-out instruction, sending the fault hard disk pulling-out instruction to a mechanical arm corresponding to the fault mechanical arm number, and instructing the mechanical arm to pull out the fault hard disk through the instruction, so that the automatic test is realized, the efficiency of hard disk test is improved, the fault hard disk is positioned through stored disk information, and when a plurality of disks execute test tasks in the same set of environment simultaneously, the problem that the physical hard disk corresponding to the logical disk identifier cannot be distinguished quickly can be solved, and the fault hard disk can be positioned conveniently and quickly.
In the above embodiments provided in the present application, it should be understood that the disclosed method, apparatus, computer-readable storage medium, and electronic device may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of components or modules may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or components or modules, and may be in an electrical, mechanical or other form.
The components described as separate parts may or may not be physically separate, and parts displayed as components may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the components can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each component may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for positioning a hard disk, comprising the steps of:
storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
receiving a positioning request of a fault hard disk in the hard disk to be detected;
and inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request, and positioning the fault hard disk based on the position information.
2. The method according to claim 1, wherein before storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested, the method comprises the steps of:
receiving access completion information of the hard disk to be tested, scanning the hard disk to be tested according to the access completion information, and generating a serial number corresponding to the hard disk to be tested;
the storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested comprises the following steps:
reading a serial number and a logical drive sign corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested, and generating and storing disk information corresponding to the hard disk to be tested according to the serial number and the logical drive sign corresponding to the hard disk to be tested.
3. The method according to claim 2, wherein when the hard disk to be tested is scanned, a test program corresponding to the hard disk to be tested is generated;
after the disk information corresponding to the hard disk to be tested is generated and stored according to the serial number and the logical disk identifier corresponding to the hard disk to be tested, the method also comprises the following steps before the positioning request of the fault hard disk in the hard disk to be tested is received:
calling the test program to test the hard disk to be tested according to the test request to obtain a test result, wherein the test result comprises a logic disk character of a fault hard disk in the hard disk to be tested;
and acquiring a fault serial number corresponding to the fault hard disk from the disk information according to the logical disk identifier of the fault hard disk, and outputting and displaying the fault serial number corresponding to the fault hard disk.
4. The method according to claim 2, wherein the request for locating the failed hard disk in the hard disk to be tested includes a serial number of the failed hard disk;
the disk information also comprises a mechanical arm number and a hard disk frame slot number corresponding to the hard disk to be tested;
the querying, according to the location request, the location information corresponding to the failed hard disk from the disk information includes:
inquiring the fault mechanical arm number and the fault hard disk frame slot number corresponding to the fault hard disk from the disk information according to the fault serial number;
the locating the failed hard disk based on the location information comprises:
and generating a fault hard disk pulling-out instruction according to the fault mechanical arm number and the fault hard disk frame slot number, and sending the fault hard disk pulling-out instruction to a mechanical arm corresponding to the fault mechanical arm number, wherein the fault hard disk pulling-out instruction indicates that the mechanical arm pulls out the fault hard disk.
5. The method of any of claims 2 to 4, further comprising the steps of:
and receiving a serial number printing instruction of the hard disk to be tested, and printing the serial number in the disk information according to the serial number printing instruction of the hard disk to be tested.
6. The method of claim 4, further comprising the steps of:
receiving pull-out completion information of the hard disk to be tested, wherein the pull-out completion information comprises a fault serial number of the pulled-out fault hard disk;
and deleting the disk information corresponding to the fault hard disk from the disk information according to the fault serial number.
7. The method of any of claims 1 to 4 and 6, wherein the disc information is stored in the form of a data table.
8. An apparatus for positioning a hard disk, comprising:
the data storage module is used for storing the disk information corresponding to the hard disk to be tested according to the received test request of the hard disk to be tested;
the positioning request receiving module is used for receiving a positioning request of a fault hard disk in the hard disk to be detected;
and the hard disk positioning module is used for inquiring the position information corresponding to the fault hard disk from the disk information according to the positioning request and positioning the fault hard disk based on the position information.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for hard disk positioning according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of a method of hard disk location according to any of claims 1 to 7 when executing the computer program.
CN202110537771.4A 2021-05-18 2021-05-18 Method and device for positioning hard disk, readable storage medium and electronic equipment Active CN113297019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110537771.4A CN113297019B (en) 2021-05-18 2021-05-18 Method and device for positioning hard disk, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110537771.4A CN113297019B (en) 2021-05-18 2021-05-18 Method and device for positioning hard disk, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113297019A true CN113297019A (en) 2021-08-24
CN113297019B CN113297019B (en) 2023-05-23

Family

ID=77322555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110537771.4A Active CN113297019B (en) 2021-05-18 2021-05-18 Method and device for positioning hard disk, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113297019B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495622A (en) * 2002-07-03 2004-05-12 �ֵܹ�ҵ��ʽ���� Information output system
CN103617102A (en) * 2013-11-08 2014-03-05 华为技术有限公司 Fault disk isolation method and device and storage system
US20170171306A1 (en) * 2015-12-15 2017-06-15 Microsoft Technology Licensing, Llc Automatic System Response To External Field-Replaceable Unit (FRU) Process
CN108021465A (en) * 2017-12-01 2018-05-11 深圳市今天国际智能机器人有限公司 Server automatic maintenance method
CN109710474A (en) * 2018-12-19 2019-05-03 郑州云海信息技术有限公司 A kind of hard disk fault detection method, device, terminal and readable storage medium storing program for executing
CN111813588A (en) * 2020-06-01 2020-10-23 北京百卓网络技术有限公司 Computer hard disk fault positioning method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495622A (en) * 2002-07-03 2004-05-12 �ֵܹ�ҵ��ʽ���� Information output system
CN103617102A (en) * 2013-11-08 2014-03-05 华为技术有限公司 Fault disk isolation method and device and storage system
US20170171306A1 (en) * 2015-12-15 2017-06-15 Microsoft Technology Licensing, Llc Automatic System Response To External Field-Replaceable Unit (FRU) Process
CN108021465A (en) * 2017-12-01 2018-05-11 深圳市今天国际智能机器人有限公司 Server automatic maintenance method
CN109710474A (en) * 2018-12-19 2019-05-03 郑州云海信息技术有限公司 A kind of hard disk fault detection method, device, terminal and readable storage medium storing program for executing
CN111813588A (en) * 2020-06-01 2020-10-23 北京百卓网络技术有限公司 Computer hard disk fault positioning method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113297019B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN107391333B (en) OSD disk fault testing method and system
US8683451B1 (en) System and method for translating software code
CN104317694A (en) Whole machine testing method and device
CN109542708B (en) Method and assembly for recording corresponding relation between physical slot position of backboard and system drive letter
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN108733525A (en) A kind of memory module tests and verifies the method and system of correctness automatically
CN111026591A (en) Fault positioning method, system and related device of back-end SAS
CN110069366A (en) A kind of reloading method, apparatus and server
US10768852B2 (en) Batch automatic test method for solid state disks and batch automatic test device for solid state disks
CN113297019A (en) Hard disk positioning method and device, readable storage medium and electronic equipment
TW200809222A (en) Method and apparatus for automatically formatting data based on a best match test result type
US11829616B2 (en) Method for determining a hard disk connection slot connected to a hard disk and terminal device
US20230091897A1 (en) Network device data erasure
CN102541705A (en) Testing method for computer and tooling plate
CN113220510A (en) Device detection method, detection device, and computer-readable storage medium
CN113419162A (en) PCB testing method and device based on android system
CN114942623B (en) Method and device for testing controller, vehicle and computer readable storage medium
EP0793183A1 (en) Programmable options for volume mount on a computing system
CN111124889B (en) ICOS system-based host Numa test method, system and equipment
CN113704091B (en) Logic code debugging method, device, equipment and storage medium
CN114595105B (en) PSN uniqueness design method and device, readable storage medium and electronic equipment
CN116185734A (en) Method and device for positioning invalid memory bank, electronic equipment and storage medium
US20240104085A1 (en) Computer system and method for evaluating integrity and parsing of a file system and parsing implementation
CN115357530A (en) Hard disk information control reporting method and device, storage medium and computer equipment
CN113971126A (en) Test case generation method and system based on automobile instrument test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant