CN112000532A - Method, device, equipment and system for detecting disk disorder - Google Patents

Method, device, equipment and system for detecting disk disorder Download PDF

Info

Publication number
CN112000532A
CN112000532A CN202010751180.2A CN202010751180A CN112000532A CN 112000532 A CN112000532 A CN 112000532A CN 202010751180 A CN202010751180 A CN 202010751180A CN 112000532 A CN112000532 A CN 112000532A
Authority
CN
China
Prior art keywords
sequence
lighting
disk
hard disk
result
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
CN202010751180.2A
Other languages
Chinese (zh)
Other versions
CN112000532B (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010751180.2A priority Critical patent/CN112000532B/en
Publication of CN112000532A publication Critical patent/CN112000532A/en
Application granted granted Critical
Publication of CN112000532B publication Critical patent/CN112000532B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, equipment and a system for detecting disk disorder, wherein the method comprises the following steps: acquiring hard disk identification information capable of identifying a hard disk in equipment to be tested; according to the hard disk identification information, lighting up the identifiable hard disks according to a preset lighting up sequence, and obtaining a lighting up result sequence; comparing the lighting result sequence with a standard result sequence corresponding to a preset lighting sequence to obtain a disk disorder detection result; the method comprises the steps of performing lighting operation on the identifiable hard disks according to a preset lighting sequence, obtaining a lighting result sequence, and determining the current detection magnetic disk sequence of the equipment to be detected; the lighting result sequence is compared with the standard result sequence corresponding to the preset lighting sequence to obtain the disk disorder detection result, and whether the current detected disk sequence of the equipment to be detected is correct can be determined, so that whether disk disorder occurs to the hard disk of the equipment to be detected is determined, the disk disorder problem is rapidly and conveniently automatically detected, the detection time is shortened, and the labor cost is reduced.

Description

Method, device, equipment and system for detecting disk disorder
Technical Field
The invention relates to the technical field of servers, in particular to a method, a device, equipment and a system for detecting disk disorder.
Background
In the field of servers, the problem of disk character disorder (i.e. disk disorder) of hard disks is a very common problem and a particularly serious problem, which may directly cause data loss and damage of servers in the actual production and use process, and how to quickly and accurately verify the problem is a great important factor in helping to solve the problem. However, due to the difference of OS (Operating System) versions, the presence or absence of RAID (disk array) cards, the difference of the types of the RIAD cards, and other different conditions all cause disk disorder, and if there are a few servers, there are more than a dozen and hundreds of disks, which greatly increases the workload of disk disorder verification. At present, people do not deeply research on the problem of disk disorder, and the problem of disk disorder on a server is difficult to detect quickly and conveniently.
Therefore, how to rapidly and conveniently detect the disk disorder, shorten the detection time and reduce the labor cost is a problem which needs to be solved urgently nowadays.
Disclosure of Invention
The invention aims to provide a disk disorder detection method, device, equipment and system, which are used for quickly and conveniently detecting the disk disorder problem, shortening the detection time and reducing the labor cost.
In order to solve the above technical problem, the present invention provides a method for detecting disk disorder, comprising:
acquiring hard disk identification information capable of identifying a hard disk in equipment to be tested;
according to the hard disk identification information, lighting up the identifiable hard disk according to a preset lighting up sequence to obtain a lighting up result sequence;
and comparing the lighting result sequence with a standard result sequence corresponding to the preset lighting sequence to obtain a disk disorder detection result.
Optionally, the lighting operation on the identifiable hard disk according to the hard disk identification information and a preset lighting sequence to obtain a lighting result sequence includes:
lighting the identifiable hard disk according to the preset lighting sequence by using a storcli64 command to obtain a first lighting result sequence;
and utilizing dd commands to carry out lighting operation on the identifiable hard disk according to the preset lighting sequence, and acquiring a second lighting result sequence.
Optionally, the comparing the lighting result sequence with the standard result sequence corresponding to the preset lighting sequence to obtain the disk out-of-order detection result includes:
judging whether the first lighting result sequence and the second lighting result sequence both accord with the standard result sequence;
if so, determining that the disk disorder detection result is that disk disorder does not exist;
if not, determining that the disk disorder detection result is that disk disorder exists.
Optionally, the preset lighting sequence is a hard disk position sequence, and the standard result sequence is a hard disk identification information sequence.
Optionally, when the hard disk identification information is a serial number, the method further includes:
and acquiring the standard result sequence according to the hard disk identification information acquired by the received code scanning gun in sequence.
Optionally, before obtaining the hard disk identification information of the identifiable hard disk in the device under test, the method further includes:
and in the starting process of the equipment to be tested, sending a preset diskless starting file to the equipment to be tested through a PXE network, and installing an operating system for the equipment to be tested.
The invention also provides a disk disorder detection device, which comprises:
the acquisition module is used for acquiring hard disk identification information of an identifiable hard disk in the equipment to be tested;
the lighting module is used for lighting the identifiable hard disk according to the hard disk identification information and a preset lighting sequence to obtain a lighting result sequence;
and the comparison module is used for comparing the lighting result sequence with a standard result sequence corresponding to the preset lighting sequence to obtain a disk disorder detection result.
The invention also provides a disk out-of-order detection device, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the disk out-of-order detection method when the computer program is executed.
The invention also provides a disk disorder detection system, which comprises:
the disk out-of-order detection device as described above;
the equipment to be detected is connected with the detection equipment; and the recognizable hard disk is inserted into the equipment to be tested.
Optionally, the detection device is specifically a PXE server, and is configured to send a preset diskless boot file to the device to be tested through a PXE network in a boot process of the device to be tested, so as to install an operating system for the device to be tested.
The invention provides a disk disorder detection method, which comprises the following steps: acquiring hard disk identification information capable of identifying a hard disk in equipment to be tested; according to the hard disk identification information, lighting up the identifiable hard disks according to a preset lighting up sequence, and obtaining a lighting up result sequence; comparing the lighting result sequence with a standard result sequence corresponding to a preset lighting sequence to obtain a disk disorder detection result;
the method comprises the steps of performing lighting operation on the identifiable hard disks according to a preset lighting sequence, obtaining a lighting result sequence, and determining the current detection magnetic disk sequence of the equipment to be detected; the lighting result sequence is compared with the standard result sequence corresponding to the preset lighting sequence to obtain the disk disorder detection result, and whether the current detected disk sequence of the equipment to be detected is the correct disk sequence or not can be determined, so that whether the disk disorder condition occurs to the hard disk of the equipment to be detected or not is determined, the disk disorder problem is automatically detected quickly and conveniently, the detection time is shortened, and the labor cost is reduced. In addition, the invention also provides a device, equipment and a system for detecting disk disorder, and the beneficial effects are also achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for detecting disk out-of-order according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a disk out-of-order detection system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a device for detecting disk out-of-order according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a disk out-of-order detection apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting disk out-of-order according to an embodiment of the present invention. The method can comprise the following steps:
step 101: and acquiring hard disk identification information of the identifiable hard disk in the equipment to be tested.
The device to be tested in this step may be a device that needs disk out-of-order detection, such as a server; the recognizable hard disk in the step can be a hard disk which can be recognized by the equipment to be tested; the hard disk identification information in this step may be unique identification information of the hard disk, such as an SN code (i.e., a serial number).
It can be understood that the purpose of this step may be to determine the condition of the hard disk that can be identified in the device to be detected by obtaining the hard disk identification information of the identifiable hard disk in the device to be detected by the processor in the detection device that performs disk out-of-order detection on the device to be detected or the processor in the device to be detected.
Specifically, the embodiment does not limit the specific manner in which the processor obtains the hard disk identification information of the identifiable hard disk in the device under test, and the processor can be set by a designer according to a practical scene and a user requirement, for example, the processor in the detection device can read the SN code of the identifiable hard disk in the device under test by executing a test script (such as a shell script) of the following code:
# # # # # ## # when the hard disk is directly connected under the equipment to be tested:
#ls/dev/sd*|grep–v[0-9]$|sed‘s/\/dev\///’>sdX.txt
for i in sdX.txt;do
smartctl–i/dev/sd$i|grep–i SN>>SN_driect.txt
done
and # # # # # # # # when the hard disk is directly connected to the RAID card, reading the SN code of the hard disk:
#/opt/MegaRAID/storcli/storcli64/c0/eall/sall show all|grep–i SN|awk
‘{print$3}'>SN_strocli.txt
step 102: and according to the hard disk identification information, carrying out lighting operation on the identifiable hard disks according to a preset lighting sequence to obtain a lighting result sequence.
The preset lighting sequence in the step can be a preset sequence for controlling the turn-on and flashing of the indicating lamps capable of identifying the hard disk; the lighting result sequence in this step may be a real lighting sequence of hard disk indicator lamps that can identify the hard disk after the identifiable hard disk is lighted according to the preset lighting sequence acquired by the processor. For example, when the preset lighting sequence is a sequence (that is, a sequence of hard disk positions) in which the arrangement positions of the hard disks can be identified, the lighting result sequence may be a sequence of hard disk identification information in which the hard disks can be identified and the indicator lamps are sequentially turned on.
Correspondingly, specific contents of the preset lighting sequence and the lighting result sequence in the step can be set by a designer according to practical scenes and user requirements, the preset lighting sequence can be a hard disk position sequence, and the corresponding lighting result sequence can be a sequence of hard disk identification information of identifiable hard disks of indicator lamps which are sequentially lighted according to the preset lighting sequence; the preset lighting sequence may be a sequence of hard disk identification information, and the corresponding lighting result sequence may be a sequence of recognizable insertion positions of the hard disks in which the indicator lamps are sequentially lit according to the preset lighting sequence. This embodiment does not set any limit to this.
Specifically, the present embodiment does not limit the specific manner in which the processor performs the lighting operation on the identifiable hard disk according to the preset lighting sequence, and if the preset lighting sequence can be the hard disk position sequence, the processor may perform the lighting operation on the identifiable hard disk according to the preset lighting sequence by executing the following storcli64 command:
#/opt/MegaRAID/storcli/storcli64/c0/e255/s$i
the processor can carry out lighting operation on the recognizable hard disk according to the preset lighting sequence by executing the following dd commands:
for iin{a..g};do
dd if=/dev/sd$i of=/dev/zero
done
that is, the present embodiment can obtain the lighting result sequence of two lighting operations (i.e., the first lighting result sequence and the second lighting result sequence) by the storcli64 command and the dd command, thereby improving the accuracy of disk disorder detection. That is, this step may include performing lighting operation on the identifiable hard disk according to the preset lighting sequence by using the storcli64 command, and obtaining a first lighting result sequence; and utilizing dd commands to carry out lighting operation on the identifiable hard disk according to the preset lighting sequence, and acquiring a second lighting result sequence.
Correspondingly, the processor can also perform lighting operation on the identifiable hard disk according to the preset lighting sequence by using only the storcli64 command or the dd command, and obtain the corresponding lighting result sequence. This embodiment does not set any limit to this.
It should be noted that, the step may further include a step of determining whether the obtained sequence of the hard disk identification information is equal to the preset lighting sequence or the number of the hard disk identification information in the preset lighting sequence; if yes, lighting up the identifiable hard disk according to a preset lighting up sequence; if not, the number of the hard disks recognizable by the equipment to be tested is determined to be wrong, and the process is directly finished.
Step 103: and comparing the lighting result sequence with a standard result sequence corresponding to a preset lighting sequence to obtain a disk disorder detection result.
The standard result sequence in the step can be a preset lighting result sequence obtained by lighting the hard disk inserted into the equipment to be tested according to a preset lighting sequence when the disk disorder condition does not occur; if the preset lighting sequence is the hard disk position sequence, the standard result sequence can be the hard disk identification information sequence corresponding to the hard disk position sequence.
Correspondingly, the standard result sequence in this step may be specifically obtained, and may be set by the designer, for example, when the hard disk identification information is a serial number (SN code), in order to take practical and economic considerations into account, as shown in fig. 2, the standard result sequence may be obtained in the process of installing the hard disk of the device to be tested (test prototype) by scanning the barcode corresponding to the serial number of the hard disk by the barcode scanning gun; for example, before a user installs each hard disk of a device to be tested according to a preset lighting sequence (for example, the hard disks are inserted into the sequence array), the code scanning gun can be used for scanning the serial number of the hard disk, and then the hard disk is installed on the device to be tested, so that the processor can acquire a standard result sequence according to the serial numbers acquired by the code scanning gun in sequence, and store the standard result sequence as a csv (comma separated value) file.
It can be understood that the purpose of this step may be to determine the disk disorder detection result, that is, whether the disk disorder problem exists in the hard disk of the device under test, by comparing the lighting result sequence obtained by the processor with the standard result sequence.
Specifically, the specific manner of obtaining the disk disorder detection result by comparing the lighting result sequence with the standard result sequence corresponding to the preset lighting sequence by the processor in the step can be set by a designer, and if the lighting result sequence comprises a first lighting result sequence and a second lighting result sequence, whether the first lighting result sequence and the second lighting result sequence both conform to the standard result sequence can be judged; if the first lighting result sequence, the second lighting result sequence and the standard result sequence are the hard disk identification information sequences, respectively judging whether the sequence of the hard disk identification information in the first lighting result sequence and the sequence of the hard disk identification information in the second lighting result sequence both accord with the sequence of the hard disk identification information in the standard result sequence; if yes, determining that the disk disorder detection result is that disk disorder (PASS) does not exist; if not, determining that the disk disorder detection result is disk disorder (FALL). For example, the processor may execute a test script of the following code to compare the first lighting result sequence and the second lighting result sequence to the standard result sequence:
#diff SN_strocli.txt SN_standard.txt
or
#diff SN_driect.txt SN_standard.txt
the processor can execute the following test scripts to obtain the disk out-of-order detection result:
Figure BDA0002610039160000071
further, in order to reduce the long waiting time taken for the device to be tested to install the Operating System (OS), the test device in this embodiment may be a PXE (Preboot eXecution Environment) server, and in the process of booting the device to be tested, the preset diskless boot file is sent to the device to be tested to install the operating system for the device to be tested; the preset diskless boot file may be a diskless boot file corresponding to a preset operating system, for example, an IMG (an image format) file for diskless boot is created based on a debugged operating system. That is, the processor of the PXE server may send the preset diskless boot file to the device under test through the PXE network during the boot process of the device under test, and install the operating system for the device under test.
Correspondingly, the embodiment may further include a PXE network environment building process of the PXE Server, as shown in fig. 2, the PXE Server (PXE Server) may build network services such as DHCP service, NFS service, TFTP service, HTTP and the like, so as to ensure that the preset diskless boot file may be sent to the device under test through the SWITCH (SWITCH).
Specifically, this embodiment may further include a PXE server setting process, for example, a server of a common type is taken as an object, an operating system, such as RHEL7.6 (red hat Linux 7.6 system), is installed on the server, then a driver of a RAID card and an SAS card that are commonly used is installed on the installed operating system, and meanwhile, some tools that are commonly used in testing are installed, for example: storcli64, smartcll, hdparm, etc.; the test script is also set under the operating system at the same time, the preparation of the operating system is completed, then the operating system can be transmitted to the PXE server through the following commands, and the operating system is stored to prepare for rapidly starting the machine to be tested without a disk at the later time:
target Path
In the embodiment of the invention, the recognizable hard disk is lighted according to the preset lighting sequence, the lighting result sequence is obtained, and the current detection disk sequence of the equipment to be detected is determined; the lighting result sequence is compared with the standard result sequence corresponding to the preset lighting sequence to obtain the disk disorder detection result, and whether the current detected disk sequence of the equipment to be detected is the correct disk sequence or not can be determined, so that whether the disk disorder condition occurs to the hard disk of the equipment to be detected or not is determined, the disk disorder problem is automatically detected quickly and conveniently, the detection time is shortened, and the labor cost is reduced.
Referring to fig. 3, fig. 3 is a block diagram of a disk out-of-order detection apparatus according to an embodiment of the present invention. The apparatus may include:
the acquisition module 10 is configured to acquire hard disk identification information of an identifiable hard disk in a device to be tested;
the lighting module 20 is used for lighting the identifiable hard disks according to the hard disk identification information and the preset lighting sequence to obtain the lighting result sequence;
and the comparison module 30 is used for comparing the lighting result sequence with a standard result sequence corresponding to a preset lighting sequence to obtain a disk disorder detection result.
Optionally, the lighting module 20 may include:
the first lighting submodule is used for carrying out lighting operation on the identifiable hard disk according to a preset lighting sequence by utilizing a storcli64 command to obtain a first lighting result sequence;
and the second lighting submodule is used for carrying out lighting operation on the identifiable hard disk according to the preset lighting sequence by utilizing the dd command and acquiring a second lighting result sequence.
Optionally, the comparing module 30 may include:
the judgment submodule is used for judging whether the first lighting result sequence and the second lighting result sequence both accord with the standard result sequence; if so, determining that the disk disorder detection result is that disk disorder does not exist; if not, determining that the disk disorder detection result is that disk disorder exists.
Optionally, the preset lighting sequence is a hard disk position sequence, and the standard result sequence is a hard disk identification information sequence.
Optionally, when the hard disk identification information is a serial number, the apparatus may further include:
and the standard acquisition module is used for acquiring a standard result sequence according to the received hard disk identification information acquired by scanning the code in sequence by the code scanning gun.
Optionally, the apparatus may further include:
and the diskless starting module is used for sending a preset diskless starting file to the equipment to be tested through the PXE network in the starting process of the equipment to be tested and installing an operating system for the equipment to be tested.
In the embodiment of the invention, the lighting module 20 lights up the identifiable hard disks according to the preset lighting sequence, obtains the lighting result sequence, and determines the current detection magnetic disk sequence of the equipment to be detected; the lighting result sequence is compared with the standard result sequence corresponding to the preset lighting sequence through the comparison module 30, a disk disorder detection result is obtained, whether the current detected disk sequence of the equipment to be detected is the correct disk sequence or not can be determined, and therefore whether the disk disorder condition occurs to the hard disk of the equipment to be detected or not is determined, the disk disorder problem is rapidly and conveniently detected, detection time is shortened, and labor cost is reduced.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a disk out-of-order detection apparatus according to an embodiment of the present invention. The device 1 may comprise:
a memory 11 for storing a computer program; a processor 12, configured to implement the steps of the disk out-of-order detection method provided in the above embodiment when executing the computer program.
Device 1, such as a PXE server, may include memory 11, processor 12, and bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device 1, for example a hard disk of a server. The memory 11 may in other embodiments also be an external storage device of the device 1, such as a plug-in hard disk provided on a server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Further, the memory 11 may also comprise both internal memory units of the device 1 and external memory devices. The memory 11 can be used not only for storing application software installed in the device 1 but also various types of data, such as: the code of the program or the like that executes the detection method of disk disorder may also be used to temporarily store data that has been output or is to be output.
The processor 12 may be, in some embodiments, a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip for running program code stored in the memory 11 or Processing data, such as code of a program for performing a method for detecting disk out-of-order, etc.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the device may further comprise a network interface 14, and the network interface 14 may optionally comprise a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the device 1 and other electronic devices.
Optionally, the device 1 may further comprise a user interface 15, the user interface 15 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 15 may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device 1 and for displaying a visual user interface.
Fig. 4 only shows the device 1 with the components 11-15, and it will be understood by a person skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
The embodiment of the invention also provides a disk disorder detection system, which comprises:
the disk out-of-order detection device provided by the above embodiment;
the equipment to be detected is connected with the detection equipment; the device to be tested is inserted with an identifiable hard disk.
Optionally, the detection device is specifically a PXE server, and is configured to send the preset diskless boot file to the device to be tested through the PXE network in a boot process of the device to be tested, so as to install an operating system for the device to be tested.
Optionally, as shown in fig. 2, the system may further include a code scanning gun connected to the detection device (PXE Server), and configured to sequentially send the hard disk identification information (e.g., serial number) acquired by scanning to the detection device, so that the detection device may sequentially scan the hard disk identification information acquired by the code scanning gun according to the received code scanning gun, and obtain a standard result sequence.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the disk disorder detection method provided by the embodiment are realized.
Wherein the storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus, the system and the computer-readable storage medium disclosed by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The method, device, equipment and system for detecting disk disorder provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A method for detecting disk disorder is characterized by comprising the following steps:
acquiring hard disk identification information capable of identifying a hard disk in equipment to be tested;
according to the hard disk identification information, lighting up the identifiable hard disk according to a preset lighting up sequence to obtain a lighting up result sequence;
and comparing the lighting result sequence with a standard result sequence corresponding to the preset lighting sequence to obtain a disk disorder detection result.
2. The method for detecting out-of-order disk of claim 1, wherein the lighting up the identifiable hard disk according to the hard disk identification information and according to a preset lighting up sequence to obtain a lighting up result sequence comprises:
lighting the identifiable hard disk according to the preset lighting sequence by using a storcli64 command to obtain a first lighting result sequence;
and utilizing dd commands to carry out lighting operation on the identifiable hard disk according to the preset lighting sequence, and acquiring a second lighting result sequence.
3. The method for detecting disk disorder according to claim 2, wherein the comparing the lighting result sequence with the standard result sequence corresponding to the preset lighting sequence to obtain the disk disorder detection result comprises:
judging whether the first lighting result sequence and the second lighting result sequence both accord with the standard result sequence;
if so, determining that the disk disorder detection result is that disk disorder does not exist;
if not, determining that the disk disorder detection result is that disk disorder exists.
4. The method according to claim 1, wherein the preset lighting sequence is a hard disk position sequence, and the standard result sequence is a hard disk identification information sequence.
5. The method for detecting disk disorder according to claim 4, wherein when the hard disk identification information is a serial number, the method further comprises:
and acquiring the standard result sequence according to the hard disk identification information acquired by the received code scanning gun in sequence.
6. The method according to any one of claims 1 to 5, wherein before obtaining the hard disk identification information of the identifiable hard disk in the device under test, the method further comprises:
and in the starting process of the equipment to be tested, sending a preset diskless starting file to the equipment to be tested through a PXE network, and installing an operating system for the equipment to be tested.
7. An apparatus for detecting disk misordering, comprising:
the acquisition module is used for acquiring hard disk identification information of an identifiable hard disk in the equipment to be tested;
the lighting module is used for lighting the identifiable hard disk according to the hard disk identification information and a preset lighting sequence to obtain a lighting result sequence;
and the comparison module is used for comparing the lighting result sequence with a standard result sequence corresponding to the preset lighting sequence to obtain a disk disorder detection result.
8. An apparatus for detecting disk out-of-order, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of disk out-of-order detection as claimed in any one of claims 1 to 6 when executing said computer program.
9. A system for detecting disk out-of-order, comprising:
the disk out-of-order detection apparatus of claim 8;
the equipment to be detected is connected with the detection equipment; and the recognizable hard disk is inserted into the equipment to be tested.
10. The system for detecting out-of-order disk of claim 9, wherein the detection device is specifically a PXE server, and is configured to send a preset diskless boot file to the device under test through a PXE network in a boot process of the device under test, so as to install an operating system for the device under test.
CN202010751180.2A 2020-07-30 2020-07-30 Method, device, equipment and system for detecting disk disorder Active CN112000532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010751180.2A CN112000532B (en) 2020-07-30 2020-07-30 Method, device, equipment and system for detecting disk disorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010751180.2A CN112000532B (en) 2020-07-30 2020-07-30 Method, device, equipment and system for detecting disk disorder

Publications (2)

Publication Number Publication Date
CN112000532A true CN112000532A (en) 2020-11-27
CN112000532B CN112000532B (en) 2022-03-22

Family

ID=73463254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010751180.2A Active CN112000532B (en) 2020-07-30 2020-07-30 Method, device, equipment and system for detecting disk disorder

Country Status (1)

Country Link
CN (1) CN112000532B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023123896A1 (en) * 2021-12-28 2023-07-06 苏州浪潮智能科技有限公司 Disc loading control method, apparatus, and device, and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644264B1 (en) * 2006-10-17 2010-01-05 Symantec Corporation Method and system for creating and deploying disk images
CN105512003A (en) * 2015-11-30 2016-04-20 曙光信息产业股份有限公司 Disk positioning method and device
CN105528269A (en) * 2016-01-29 2016-04-27 浪潮电子信息产业股份有限公司 Design method for detecting disorder of hard disk on basis of Itanium platform
CN106708681A (en) * 2016-12-22 2017-05-24 郑州云海信息技术有限公司 Server hard disk performance detection method and device
CN109947622A (en) * 2019-03-21 2019-06-28 浪潮商用机器有限公司 A kind of server physical disk localization method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644264B1 (en) * 2006-10-17 2010-01-05 Symantec Corporation Method and system for creating and deploying disk images
CN105512003A (en) * 2015-11-30 2016-04-20 曙光信息产业股份有限公司 Disk positioning method and device
CN105528269A (en) * 2016-01-29 2016-04-27 浪潮电子信息产业股份有限公司 Design method for detecting disorder of hard disk on basis of Itanium platform
CN106708681A (en) * 2016-12-22 2017-05-24 郑州云海信息技术有限公司 Server hard disk performance detection method and device
CN109947622A (en) * 2019-03-21 2019-06-28 浪潮商用机器有限公司 A kind of server physical disk localization method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
K. ITAYA等: "Window-structure InGaALP visible light laser diodes by self-selective diffusion induced disordering", 《12TH IEEE INTERNATIONAL CONFERENCE ON SEMICONDUCTOR LASER》 *
安子煜: "RAID5 典型应用环境容灾性能实测", 《学术研究》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023123896A1 (en) * 2021-12-28 2023-07-06 苏州浪潮智能科技有限公司 Disc loading control method, apparatus, and device, and readable storage medium

Also Published As

Publication number Publication date
CN112000532B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN106547653B (en) Computer system fault state detection method, device and system
CN112000532B (en) Method, device, equipment and system for detecting disk disorder
CN111708662B (en) Debugging method and device
CN112269584A (en) PCIe Switch firmware updating method, device, electronic equipment and medium
CN115061885A (en) Complete machine aging automatic test method and device, electronic equipment and storage medium
CN110864876A (en) Vehicle-mounted entertainment system test method, device, equipment and storage medium
CN112783756A (en) Automatic test method, terminal, system and storage medium
EP3428848A1 (en) Car damage image angle correction method, electronic device and readable storage medium
TWI761668B (en) Computer system with self-test and debugging method thereof
US11366800B2 (en) System and method to automate validating media redirection in testing process
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN111538994A (en) System security detection and repair method, device, storage medium and terminal
CN111931161B (en) RISC-V processor based chip verification method, apparatus and storage medium
CN110134639B (en) Equipment information storage position identification method and device
CN112686338A (en) Image information identification method, device, equipment and storage medium
CN110968519A (en) Game testing method, device, server and storage medium
US20050086561A1 (en) Testing device
CN107656855B (en) System and method for reminding user of misplacing CPU
CN110413459B (en) External PHY card identification method, device, equipment and readable storage medium
TWI691836B (en) Boot phase identification method for bios
CN104216810A (en) Method and device for detecting hardware fault of intelligent handheld device
US11397662B2 (en) Method for debugging computer program, device employing method, and storage medium
CN117539571A (en) Micro front-end application control method, device, equipment and storage medium
CN114780013A (en) Touch screen operation identification method and device, terminal device and medium

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