CN111309535A - Method and system for testing hard disk in server, electronic equipment and storage medium - Google Patents

Method and system for testing hard disk in server, electronic equipment and storage medium Download PDF

Info

Publication number
CN111309535A
CN111309535A CN202010093597.4A CN202010093597A CN111309535A CN 111309535 A CN111309535 A CN 111309535A CN 202010093597 A CN202010093597 A CN 202010093597A CN 111309535 A CN111309535 A CN 111309535A
Authority
CN
China
Prior art keywords
disk
disk array
hard
testing
hard disk
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.)
Withdrawn
Application number
CN202010093597.4A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010093597.4A priority Critical patent/CN111309535A/en
Publication of CN111309535A publication Critical patent/CN111309535A/en
Withdrawn legal-status Critical Current

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/2273Test methods
    • 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/2268Logging of test results

Abstract

The application discloses a method, a system, equipment and a medium for testing a hard disk in a server, wherein the method comprises the following steps: acquiring initial information of hard disks in a server, wherein the initial information comprises the number of the hard disks and initial disk identifiers of the hard disks; receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction; performing performance test on each hard disk in a full disk state in the newly-built disk array to obtain a first test result; performing performance test on other hard disks of any hard disk in the newly-built disk array after the disk is removed to obtain a second test result; and determining the stability test result of the current server by combining the first test result and the second test result. According to the method and the device, the disk array is created, the performance of the hard disk in the full disk state and the performance of the hard disk in the off disk state of the disk array are tested respectively, the stability test result of the server can be obtained by combining the test results in the full disk state and the off disk state, and the test for the performance of the hard disk and the test for the stability of the server are achieved.

Description

Method and system for testing hard disk in server, electronic equipment and storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a method and a system for testing a hard disk in a server, an electronic device, and a computer-readable storage medium.
Background
In the current technical field of servers, hard disk performance testing and server stability are important detection items. In the current test, the performance value of the hard disk is often tested only in a full disk state. After the server leaves the factory, the server needs to be operated in various complicated environments, such as high-temperature, high-humidity, high-dust and the like, for a long time. Under the long-time running state, phenomena such as component aging, dust accumulation and the like easily occur, the performance of the hard disk is influenced, and even a certain hard disk is completely damaged. Therefore, in order to ensure the security, reliability and system stability of data, it is important to perform a performance test on a hard disk in a server and a stability test on the server.
Disclosure of Invention
The application aims to provide a method and a system for testing a hard disk in a server, an electronic device and a computer readable storage medium, and the method and the system can be used for realizing the test of the performance of the hard disk and the test of the stability of the server.
In order to achieve the above object, the present application provides a method for testing a hard disk in a server, including:
acquiring initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction;
performing performance test on each hard disk in the newly-built disk array under the full disk state to obtain a first test result;
performing performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped to obtain a second test result;
and determining the stability test result of the current server by combining the first test result and the second test result.
Optionally, the receiving a creation instruction for the disk array issued based on the initial information includes:
and displaying the initial information through a preset interactive interface, and receiving a creation instruction aiming at the disk array, which is input by a user based on the initial information.
Optionally, the receiving a creation instruction for the disk array issued based on the initial information includes:
receiving a creation instruction issued based on the initial information; the creating instruction includes: a first creation instruction for creating the disk array RAID0, or a second creation instruction for creating the disk array RAID1, or a third creation instruction for creating the disk array RAID5, or a fourth creation instruction for creating the disk array RAID 10.
Optionally, after the corresponding disk array is created according to the creating instruction, the method further includes:
and updating the drive symbols corresponding to all the hard disks in the newly-built disk array to obtain updated drive symbols.
Optionally, the performing a performance test on each hard disk in the newly-built disk array in the full disk state to obtain a first test result includes:
calling a performance test script to concurrently perform performance test on all hard disks in a full disk state in the newly-built disk array;
after a preset time period, detecting whether read-write operation aiming at the hard disk in the newly-built disk array still exists or not;
if so, waiting for the read-write operation to end;
and if not, displaying and recording the first test results aiming at all the hard disks, and deleting the newly-built disk array.
Optionally, the performing a performance test on the other hard disks in the newly-built disk array after the disk of any hard disk is removed to obtain a second test result, where the performing the performance test on the other hard disks in the newly-built disk array includes:
setting any hard disk in the newly-built disk array to be in a disk-dropping state;
and after the setting is successful, simultaneously performing performance test on other hard disks except the disk-state hard disk in the newly-built disk array, and automatically storing a corresponding second test result.
In order to achieve the above object, the present application provides a system for testing a hard disk in a server, including:
the information acquisition module is used for acquiring initial information of a hard disk in the current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
the disk array creating module is used for receiving a creating instruction for the disk array issued based on the initial information and creating a corresponding disk array according to the creating instruction;
the first testing module is used for testing the performance of each hard disk in the newly-built disk array under the full disk state to obtain a first testing result;
the second testing module is used for performing performance testing on other hard disks after the disk of any hard disk in the newly-built disk array is dropped, so as to obtain a second testing result;
and the result determining module is used for determining the stability test result of the current server by combining the first test result and the second test result.
Optionally, the first test module includes:
the concurrent testing unit is used for calling the performance testing script to concurrently perform performance testing on all hard disks in the full disk state in the newly-built disk array;
the operation detection unit is used for detecting whether read-write operation aiming at the hard disk in the newly-built disk array exists or not after a preset time period; if so, waiting for the read-write operation to end;
and the result recording module is used for displaying and recording the first test results aiming at all the hard disks and deleting the newly-built disk array if the read-write operation does not exist.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the server internal hard disk testing methods disclosed in the foregoing when executing the computer program.
To achieve the above object, the present application provides a computer readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of any of the methods for testing a hard disk in a server disclosed in the foregoing.
According to the scheme, the method for testing the hard disk in the server comprises the following steps: acquiring initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks; receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction; performing performance test on each hard disk in the newly-built disk array under the full disk state to obtain a first test result; performing performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped to obtain a second test result; and determining the stability test result of the current server by combining the first test result and the second test result. According to the method and the device, the disk array is created, the performance of the hard disk in the full disk state and the performance of the hard disk in the disk dropping state of the disk array are tested respectively, the stability test result of the server can be obtained by combining the test results in the full disk state and the disk dropping state, and the test for the performance of the hard disk and the test for the stability of the server are realized.
The application also discloses a system for testing the hard disk in the server, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing a hard disk in a server according to an embodiment of the present application;
fig. 2 is a structural diagram of a system for testing a hard disk in a server according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 4 is a block diagram of another electronic device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
In the prior art, after the server leaves a factory, the server needs to operate in various complex environments, such as high-temperature, high-humidity, high-dust and the like, for a long time. Under the long-time running state, phenomena such as component aging, dust accumulation and the like easily occur, the performance of the hard disk is influenced, and even a certain hard disk is completely damaged. Therefore, in order to ensure the security, reliability and system stability of data, it is important to perform a performance test on a hard disk in a server and a stability test on the server.
Therefore, the embodiment of the application discloses a method for testing a hard disk in a server, which realizes the test of the performance of the hard disk and the test of the stability of the server.
Referring to fig. 1, a method for testing a hard disk in a server disclosed in the embodiment of the present application includes:
s101: acquiring initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
in the embodiment of the application, a server environment is firstly established, and the server enters an operating system after being started, so that initial information corresponding to a hard disk in the current server is obtained. The initial information may include the total number of the hard disks and an initial drive identifier corresponding to the hard disk, where the drive identifier is specifically an identifier of the magnetic disk storage device.
S102: receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction;
in this step, the user may create a disk array based on the initial information of the hard disk. A RAID (Redundant Arrays of Independent Disks) is a disk assembly with a large capacity composed of many Independent Disks, and the performance of the entire disk system is improved by the additive effect of providing data by individual Disks. With this technique, data can be divided into a number of sectors, each of which is stored on a respective hard disk. Specifically, the initial information may be displayed through a preset interactive interface, so that a user can know the number and the disk identifier of the hard disks based on the preset interactive interface. And then the user can issue a creation instruction aiming at the disk array in a mode of inputting corresponding configuration on a preset interactive interface. The create instruction may perform the create operation by calling a create script or interface of the disk array.
It should be noted that the creating instruction may include, but is not limited to, a first creating instruction for creating the disk array RAID0, a second creating instruction for creating the disk array RAID1, a third creating instruction for creating the disk array RAID5, or a fourth creating instruction for creating the disk array RAID 10. RAID0 means that a plurality of physical hard disk devices are connected in series in a software or hardware mode to form a large volume group, and data are written into each physical hard disk in sequence; RAID1 is to bind two or more hard disk devices, and when data is written, the data is written to a plurality of physical devices at the same time as backup; RAID5 is used for saving data parity information of hard disk equipment to other hard disk equipment, and is beneficial to data recovery; the RAID10 needs at least four hard disks to be assembled, firstly, two hard disks are respectively manufactured into RAID1 disk arrays to guarantee data security, and then, the two RAID1 arrays are connected in series by using RAID0 technology to further improve the reading and writing speed.
It can be understood that, after the corresponding disk array is created according to the creation instruction, the drive letter of the hard disk may be changed, and at this time, the drive letter corresponding to all the hard disks in the newly created disk array may be updated, so as to obtain an updated drive letter.
S103: performing performance test on each hard disk in the newly-built disk array under the full disk state to obtain a first test result;
in specific implementation, performance tests can be performed on all hard disks in the newly-built disk array in a full disk state, and a performance test result corresponding to each hard disk is automatically stored, so that a first test result is obtained. When all the hard disks are subjected to performance testing, a parallel mode of simultaneous testing can be selected, a serial mode of sequential testing can also be selected, and the performance testing results of all the hard disks and the updated disk symbols are bound and stored.
The specific process of performing the performance test on each hard disk in the newly-built disk array in the full disk state to obtain the first test result may include: calling a performance test script to concurrently perform performance test on all hard disks in a full disk state in the newly-built disk array; after a preset time period, detecting whether read-write operation for a hard disk in the newly-built disk array still exists or not; if so, waiting for the read-write operation to end; and if not, displaying and recording the first test results aiming at all the hard disks, and deleting the newly-built disk array. That is, the present embodiment may invoke the open-source performance test script to perform the performance test on the hard disk. After the test is started for a preset time period, whether the read-write operation aiming at the hard disk still exists can be detected; if the test result exists, the performance test is not finished, and the read-write operation needs to be waited for finishing; if the current new disk array does not exist, the performance test is finished, the test result can be stored and displayed, and the currently newly built disk array can be deleted. The preset time period may be set according to a specific implementation situation, and is not specifically limited herein.
S104: performing performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped to obtain a second test result;
in the embodiment of the application, after the performance test is performed on the hard disks in the disk array in the full disk state, the performance test is further performed on the hard disks in the disk array in the disk-off state, and the disk-off state can be virtualized in a manner of simulating disk-off, for example, any hard disk in a newly-built disk array can be set to be in the disk-off state, and after the setting is successful, the performance tests are simultaneously or sequentially performed on other hard disks in the newly-built disk array except the disk-state hard disk, so that a corresponding second test result is automatically stored.
S105: and determining the stability test result of the current server by combining the first test result and the second test result.
It can be understood that, after the first test result of the disk array in the full disk state and the second test result of the disk array in the disk state are obtained, the two test results can be combined to obtain the test result for the stability of the server. In addition, the test base line can be obtained by combining the test results and used as a reference value for subsequent performance tests.
According to the scheme, the method for testing the hard disk in the server comprises the following steps: acquiring initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks; receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction; performing performance test on each hard disk in the newly-built disk array under the full disk state to obtain a first test result; performing performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped to obtain a second test result; and determining the stability test result of the current server by combining the first test result and the second test result. According to the method and the device, the disk array is created, the performance of the hard disk in the full disk state and the performance of the hard disk in the disk dropping state of the disk array are tested respectively, the stability test result of the server can be obtained by combining the test results in the full disk state and the disk dropping state, and the test for the performance of the hard disk and the test for the stability of the server are realized.
The method for testing a hard disk in a server according to the embodiment of the present application is described below with a specific example. Specifically, the method comprises the following steps:
the method comprises the following steps: building a server environment, and entering an operating system after the server is started;
step two: acquiring the number and disk identifiers of the hard disks, and creating RAID information by executing a script for creating a disk array RAID, for example, creating a disk array RAID 0; specifically, an lsblk command can be further input to view the current drive symbol, for example, the current drive symbol is sdb;
step three: performing hard disk performance test on the hard disk with the current drive symbol of sdb, automatically storing a corresponding test result, and checking whether the current hard disk still has read-write operation through an iostat command 2 hours after the test starts;
step four: if the read-write operation exists, continuing to wait for the end of the hard disk performance test; if no read-write operation exists, displaying information of the disk array RAID0 through a "/storcli 64/c0 show all" command, and deleting the disk array RAID0 through a "/storcli 64/c0/v0 del" command;
step five: repeating the step two, creating a disk array RAID1, and setting the current drive letter as sdc;
step six: repeating the third step, carrying out the hard disk performance test on the current disk identifier, and checking whether the read-write operation still exists in the current hard disk after the test is started for 2 hours;
step seven: if the read-write operation exists, continuing to wait for the end of the hard disk performance test; if no read-write operation exists, any disk in the RAID1 array can be set to a failed state or an offline state through a "/storcli 64/cx/ex/sx set offline" command, where cx represents a board, ex represents a backplane, and sx represents a hard disk. For example, a "/storcli 64/c0/e252/s0set offline" command represents that a first disk of a backplane 252 in a first board card is set to an offline state, so as to simulate the disk dropping condition of a system, continue to perform a hard disk performance test, and automatically store a corresponding test result;
step eight: after the performance test of the simulation system in the disk-out state is finished, setting the disk in the offline state in the RAID array to be in the online state through a "/storcli 64/c0/e252/s0set online" command so as to recover the hard disk, and deleting the RAID 1;
step nine: repeating the step two, creating a disk array RAID5, and setting the current drive letter to sdd;
step ten: repeating the sixth step, the seventh step and the eighth step, performing hard disk performance tests in a full disk state and a disk-off state aiming at the disk array RAID5, and storing corresponding test results;
step eleven: repeating the step two, creating a disk array RAID10, and setting the current drive letter to sde;
step twelve: repeating the sixth step, the seventh step and the eighth step, performing hard disk performance tests in a full disk state and a disk-off state aiming at the disk array RAID10, and storing corresponding test results;
step thirteen: after the test is finished, the performance results of the full disk state and the disk-off state under various disk arrays of RAID0, RIAD1, RAID5 and RAID10 are recorded in a gathering mode, and a baseline floating point value is generated to be used as reference for subsequent tests.
In the following, a description is given of an in-server hard disk test system provided in an embodiment of the present application, and a description of the in-server hard disk test system and a description of the in-server hard disk test method may be referred to each other.
Referring to fig. 2, a system for testing a hard disk in a server according to an embodiment of the present application includes:
an information obtaining module 201, configured to obtain initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
a disk array creating module 202, configured to receive a creating instruction for a disk array issued based on the initial information, and create a corresponding disk array according to the creating instruction;
the first testing module 203 is used for performing performance testing on each hard disk in a full disk state in the newly-built disk array to obtain a first testing result;
the second testing module 204 is configured to perform a performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped, so as to obtain a second testing result;
a result determining module 205, configured to determine a stability test result of the current server according to the first test result and the second test result.
For the specific implementation process of the modules 201 to 205, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
On the basis of the above embodiment, as a preferred implementation, the first testing module includes:
the concurrent testing unit is used for calling the performance testing script to concurrently perform performance testing on all hard disks in the full disk state in the newly-built disk array;
the operation detection unit is used for detecting whether read-write operation aiming at the hard disk in the newly-built disk array exists or not after a preset time period; if so, waiting for the read-write operation to end;
and the result recording module is used for displaying and recording the first test results aiming at all the hard disks and deleting the newly-built disk array if the read-write operation does not exist.
The present application further provides an electronic device, and as shown in fig. 3, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, configured to execute the computer program, may implement the steps of the method for testing a hard disk in a server provided in any of the foregoing embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip, provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 100, the following steps may be implemented:
on the basis of the above embodiment, as a preferred implementation, referring to fig. 4, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While FIG. 4 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of the electronic device, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which 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 storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the method for testing the hard disk in the server provided by any one of the foregoing embodiments.
According to the method and the device, the disk array is created, the performance of the hard disk in the full disk state and the performance of the hard disk in the off disk state of the disk array are tested respectively, the stability test result of the server can be obtained by combining the test results in the full disk state and the off disk state, and the test for the performance of the hard disk and the test for the stability of the server are achieved.
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. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for testing a hard disk in a server is characterized by comprising the following steps:
acquiring initial information of a hard disk in a current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
receiving a creation instruction for the disk array issued based on the initial information, and creating a corresponding disk array according to the creation instruction;
performing performance test on each hard disk in the newly-built disk array under the full disk state to obtain a first test result;
performing performance test on other hard disks in the newly-built disk array after the disk of any hard disk is dropped to obtain a second test result;
and determining the stability test result of the current server by combining the first test result and the second test result.
2. The method for testing the hard disk in the server according to claim 1, wherein the receiving of the creation instruction for the disk array issued based on the initial information includes:
and displaying the initial information through a preset interactive interface, and receiving a creation instruction aiming at the disk array, which is input by a user based on the initial information.
3. The method for testing the hard disk in the server according to claim 1, wherein the receiving of the creation instruction for the disk array issued based on the initial information includes:
receiving a creation instruction issued based on the initial information; the creating instruction includes: a first creation instruction for creating the disk array RAID0, or a second creation instruction for creating the disk array RAID1, or a third creation instruction for creating the disk array RAID5, or a fourth creation instruction for creating the disk array RAID 10.
4. The method for testing a hard disk in a server according to claim 1, after the creating the corresponding disk array according to the creating instruction, further comprising:
and updating the drive symbols corresponding to all the hard disks in the newly-built disk array to obtain updated drive symbols.
5. The method for testing the hard disk in the server according to claim 1, wherein the performing the performance test on each hard disk in the full disk state in the newly-built disk array to obtain the first test result comprises:
calling a performance test script to concurrently perform performance test on all hard disks in a full disk state in the newly-built disk array;
after a preset time period, detecting whether read-write operation aiming at the hard disk in the newly-built disk array still exists or not;
if so, waiting for the read-write operation to end;
and if not, displaying and recording the first test results aiming at all the hard disks, and deleting the newly-built disk array.
6. The method for testing a hard disk in a server according to claim 1, wherein the performing the performance test on the other hard disks after the disk of any hard disk in the newly-built disk array is removed to obtain a second test result includes:
setting any hard disk in the newly-built disk array to be in a disk-dropping state;
and after the setting is successful, simultaneously performing performance test on other hard disks except the disk-state hard disk in the newly-built disk array, and automatically storing a corresponding second test result.
7. A system for testing a hard disk in a server is characterized by comprising:
the information acquisition module is used for acquiring initial information of a hard disk in the current server; the initial information comprises the number of the hard disks and the initial disk identifier of the hard disks;
the disk array creating module is used for receiving a creating instruction for the disk array issued based on the initial information and creating a corresponding disk array according to the creating instruction;
the first testing module is used for testing the performance of each hard disk in the newly-built disk array under the full disk state to obtain a first testing result;
the second testing module is used for performing performance testing on other hard disks after the disk of any hard disk in the newly-built disk array is dropped, so as to obtain a second testing result;
and the result determining module is used for determining the stability test result of the current server by combining the first test result and the second test result.
8. The system for testing a hard disk in a server according to claim 7, wherein the first testing module comprises:
the concurrent testing unit is used for calling the performance testing script to concurrently perform performance testing on all hard disks in the full disk state in the newly-built disk array;
the operation detection unit is used for detecting whether read-write operation aiming at the hard disk in the newly-built disk array exists or not after a preset time period; if so, waiting for the read-write operation to end;
and the result recording module is used for displaying and recording the first test results aiming at all the hard disks and deleting the newly-built disk array if the read-write operation does not exist.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for testing a hard disk in a server according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for testing a hard disk in a server according to any one of claims 1 to 6.
CN202010093597.4A 2020-02-14 2020-02-14 Method and system for testing hard disk in server, electronic equipment and storage medium Withdrawn CN111309535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093597.4A CN111309535A (en) 2020-02-14 2020-02-14 Method and system for testing hard disk in server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093597.4A CN111309535A (en) 2020-02-14 2020-02-14 Method and system for testing hard disk in server, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111309535A true CN111309535A (en) 2020-06-19

Family

ID=71159381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093597.4A Withdrawn CN111309535A (en) 2020-02-14 2020-02-14 Method and system for testing hard disk in server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111309535A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914131A (en) * 2020-08-12 2020-11-10 中国工商银行股份有限公司 Disk array mode query method, device, computer system and medium
CN112164417A (en) * 2020-10-10 2021-01-01 上海威固信息技术股份有限公司 Performance detection method and system of memory chip
CN112466383A (en) * 2020-11-06 2021-03-09 苏州浪潮智能科技有限公司 Test method, test device and test equipment for arbitration reliability of storage system
CN116913361A (en) * 2023-06-08 2023-10-20 深圳市晶存科技有限公司 Automatic hard disk testing method, system and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819547A (en) * 2010-03-25 2010-09-01 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of storage subsystem
CN102541704A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Testing method for RAID (redundant array of independent disk) cards
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method in Linux

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819547A (en) * 2010-03-25 2010-09-01 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of storage subsystem
CN102541704A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Testing method for RAID (redundant array of independent disk) cards
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method in Linux

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914131A (en) * 2020-08-12 2020-11-10 中国工商银行股份有限公司 Disk array mode query method, device, computer system and medium
CN111914131B (en) * 2020-08-12 2023-11-21 中国工商银行股份有限公司 Disk array mode query method, device, computer system and medium
CN112164417A (en) * 2020-10-10 2021-01-01 上海威固信息技术股份有限公司 Performance detection method and system of memory chip
CN112466383A (en) * 2020-11-06 2021-03-09 苏州浪潮智能科技有限公司 Test method, test device and test equipment for arbitration reliability of storage system
CN112466383B (en) * 2020-11-06 2023-01-10 苏州浪潮智能科技有限公司 Test method, test device and test equipment for arbitration reliability of storage system
CN116913361A (en) * 2023-06-08 2023-10-20 深圳市晶存科技有限公司 Automatic hard disk testing method, system and medium

Similar Documents

Publication Publication Date Title
CN111309535A (en) Method and system for testing hard disk in server, electronic equipment and storage medium
US9336340B1 (en) Evaluating management operations
US8290735B2 (en) Test apparatus and test method for universal serial bus interface
TWI479309B (en) Apparatus and method for controlling a solid state disk
CN107391325B (en) Hard disk test method and device and terminal
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN105074671A (en) Method and system for detecting concurrency programming errors in kernel modules and device drivers
CN103678115B (en) The apparatus and method of the position of source code mistake are detected in mixed mode program
US20120254662A1 (en) Automated test system and automated test method
US7694193B2 (en) Systems and methods for implementing a stride value for accessing memory
US8572436B2 (en) Computing device and method for managing motherboard test
CN109445691B (en) Method and device for improving FTL algorithm development and verification efficiency
CN104699408A (en) Operation method and device of touch screen and touch device
CN102902550B (en) Computer system and operating system loading method thereof
CN107402720B (en) Hard disk processing method and device and terminal
US20140164845A1 (en) Host computer and method for testing sas expanders
CN110442298A (en) Store unit exception detection method and device, distributed memory system
CN117149550A (en) Solid state disk performance detection method and device and electronic equipment
CN102567151A (en) SAS (serial attached SCSI (small computer system interface)) hard disc test system and method under EFI (extensible firmware interface) environment
CN110008105A (en) A kind of BMC time reservation method, device and electronic equipment and storage medium
CN111143125B (en) MCE error processing method and device, electronic equipment and storage medium
CN109918239B (en) Computer apparatus, diagnostic method, and non-transitory computer-readable storage medium
CN105608395A (en) System and method for batch hard disk data destruction fault isolation and data residual verification
CN111897582A (en) All-in-one machine Ethernet refreshing method and device, storage medium and all-in-one machine equipment
CN111540400A (en) Write amplification factor testing method and device, electronic equipment and storage 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200619

WW01 Invention patent application withdrawn after publication