CN112559266B - Solid state disk testing method and device, readable storage medium and electronic equipment - Google Patents
Solid state disk testing method and device, readable storage medium and electronic equipment Download PDFInfo
- Publication number
- CN112559266B CN112559266B CN202011448064.XA CN202011448064A CN112559266B CN 112559266 B CN112559266 B CN 112559266B CN 202011448064 A CN202011448064 A CN 202011448064A CN 112559266 B CN112559266 B CN 112559266B
- Authority
- CN
- China
- Prior art keywords
- tested
- solid state
- power
- state disk
- successful
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
According to the method, the device, the readable storage medium and the electronic equipment for testing the solid state disk, after hardware equipment is prepared and software is configured, state inspection is carried out on a computer main board to be tested, power-on and power-off operation is carried out on the computer main board with the solid state disk built in after the state is normal, the abnormality is recovered by entering an abnormality recovery flow and calling a corresponding abnormality recovery program, if the abnormality recovery is successful, the solid state disk to be tested is tested repeatedly according to the preset test time, if the abnormality recovery fails, the solid state disk to be tested is analyzed according to the prompted abnormality type, the computer main board is automatically started and normally enters an operating system under the condition of abnormal power-on and power-off, interruption of the solid state disk test caused by abnormal power-off is avoided, automatic test is carried out on the solid state disk, the product problem of the solid state disk can be detected is guaranteed, the reliability and the automation degree of the solid state disk test are improved, and the performance of the solid state disk is guaranteed.
Description
Technical Field
The present invention relates to the field of solid state drives, and in particular, to a method and apparatus for testing a solid state drive, a readable storage medium, and an electronic device.
Background
In the development test process of the solid state disk, the abnormal power failure verification is carried out on the disk in the aspects of system test and reliability test, namely the test disk is used as a normal operation system disk, and the unexpected power failure test is carried out on the disk during normal use; however, in actual operation, many places need exception handling to determine faults, and after exception recovery, testing can be continued; our test is aimed at the disc, and it is necessary to exclude the influence of the environment on the test results as much as possible.
The main board is only responsible for power-on in the power-down recovery process, but the success of the power-on of the disc cannot be ensured, the operation system can be accessed after the power-on of the disc, and the operation system can be accessed into a recovery mode when the unexpected power-down is encountered, so that the executability of the whole-course automatic test cannot be ensured, and no test method specially designed for the purpose exists in the prior art.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the solid state disk testing method, the device, the readable storage medium and the electronic equipment can improve the degree of automation of solid state disk testing.
In order to solve the technical problems, the invention adopts a technical scheme that:
a solid state disk testing method comprises the following steps:
powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
after successful power-down, the computer main board to be tested is powered up;
judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
and judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested.
In order to solve the technical problems, the invention adopts another technical scheme that:
a solid state disk testing device, comprising:
the power-down module is used for powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
the power-on module is used for powering on the computer main board to be tested after successful power-off;
the abnormal recovery module is used for judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
and judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested.
In order to solve the technical problems, the invention adopts another technical scheme that:
a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the solid state disk testing method described above.
In order to solve the technical problems, the invention adopts another technical scheme that:
an electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes each step in the solid state disk testing method when executing the computer program.
The invention has the beneficial effects that: the method and the device have the advantages that the computer main board with the built-in solid state disk is powered on and powered off, the last power-on success of the computer main board is ensured through an abnormal recovery flow, the computer main board is automatically started and normally enters an operating system under the abnormal power-on and power-off condition, the interruption of the solid state disk test caused by the abnormal power-off is avoided, the automatic test of the solid state disk is realized, and the solid state disk can be automatically tested without depending on a main board management controller, so that the automatic degree of the solid state disk test is improved.
Drawings
FIG. 1 is a flow chart of steps in a method for testing a solid state disk according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a solid state disk testing device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a hardware networking diagram in the solid state disk test method according to the embodiment of the invention;
FIG. 5 is a test flow chart of a solid state disk test method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a first abnormality recovery procedure in a solid state disk test method according to an embodiment of the present invention;
FIG. 7 is a flowchart of a second abnormality recovery procedure in a solid state disk test method according to an embodiment of the present invention;
fig. 8 is a flowchart of a third abnormality recovery procedure in the solid state disk test method according to the embodiment of the present invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a method for testing a solid state disk, including the steps of:
powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
after successful power-down, the computer main board to be tested is powered up;
judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
and judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested.
From the above description, the beneficial effects of the invention are as follows: the method and the device have the advantages that the computer main board with the built-in solid state disk is powered on and powered off, the last power-on success of the computer main board is ensured through an abnormal recovery flow, the computer main board is automatically started and normally enters an operating system under the abnormal power-on and power-off condition, the interruption of the solid state disk test caused by the abnormal power-off is avoided, the automatic test of the solid state disk is realized, and the solid state disk can be automatically tested without depending on a main board management controller, so that the automatic degree of the solid state disk test is improved.
Further, before powering down the motherboard of the computer to be tested with the built-in solid state disk to be tested, the method includes:
and carrying out state inspection on the computer main board to be tested, judging whether the state of the computer main board to be tested is normal or not according to the inspection result, powering down the computer main board to be tested if the state is normal, and prompting that the environment is abnormal if the state is abnormal.
Further, the method further comprises the following steps:
installing an operating system to be tested on each computer mainboard to be tested;
installing a secure shell protocol service program in the operating system to be tested;
the state checking of the computer main board to be tested comprises the following steps:
connecting the computer main board to be tested through the secure shell protocol and checking whether all the operating systems to be tested are normally connected;
and checking whether the operation of the solid state disk to be tested is normal or not through a serial port.
According to the description, before power-down, the state of the computer main board to be tested is checked, so that the abnormality of the computer main board to be tested caused by human factors is avoided, the product problem of the solid state disk to be tested can be detected by automatic test, and the reliability of the automatic test is improved.
Further, before the state inspection of the computer motherboard to be tested, the method includes:
the solid state disk to be tested is built in the computer main board to be tested, networking is carried out on the computer main board to be tested according to a preset hardware networking diagram, and all the computer main boards to be tested are located in the same local area network;
and starting the power-on function and the network starting function of the computer main board to be tested when the power is recovered after the power failure.
According to the description, an implementation environment is provided for the automatic test of the solid state disk by preparing hardware equipment and configuring software settings, so that the automatic test of the solid state disk can be realized conveniently.
Further, after the power-down is successful, powering up the computer motherboard to be tested includes:
judging whether the power-down is successful or not through the IP address of the computer main board to be tested, if so, powering on the computer main board to be tested through a programmable power supply, if not, judging whether the power-down of the computer main board to be tested is successful or not in a preset time, and if not, prompting that the environment is abnormal.
According to the description, abnormal power-on and power-off operation is performed on the computer main board to be tested, so that faults of the solid state disk to be tested can be stimulated, and the effectiveness of testing the solid state disk is guaranteed.
Further, the method further comprises the following steps:
constructing a corresponding abnormal recovery program according to the preset abnormal recovery flow;
the entering the preset abnormal recovery process comprises the following steps:
recovering the abnormality by calling a corresponding abnormality recovery program;
and judging whether the power-on result is successful, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow comprises the following steps:
judging whether the power-on result is successful or not through the IP address of the computer main board to be tested, if so, testing the solid state disk to be tested, if so, judging whether the power-on of the computer main board to be tested is successful or not within a preset time, and if not, entering a first abnormal recovery flow:
triggering a network wake-up function of the computer main board to be tested, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer main board to be tested is successful in a preset time if the power-on is unsuccessful, and entering a second abnormal recovery process if the power-on is not successful:
checking whether the disc physical link of the solid state disk to be tested is successfully connected through a serial port, if so, judging whether the disc physical link is successfully connected within a preset time, and if not, prompting that the link is abnormal; if successful, entering a third abnormal recovery flow:
triggering the computer mainboard to be tested to execute the restoration of the file system of the operating system, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer mainboard to be tested is successful within a preset time if the power-on is unsuccessful, and prompting the system to be abnormal if the power-on is not successful.
According to the description, the solid state disk which fails to be powered on enters an abnormal recovery flow, so that the solid state disk is ensured to be powered on successfully finally, the influence of the environment on the test result is eliminated as far as possible, the solid state disk can be automatically started up to enter an operating system to complete the test under the condition of abnormal power on and off, the existing fault of the solid state disk is detected, the reliability and the degree of automation of the solid state disk test are improved, and the performance of the solid state disk is ensured.
Further, the testing the solid state disk to be tested includes:
repeating the test of the solid state disk to be tested according to a preset test time;
the method also comprises the steps of:
judging whether the solid state disk to be tested has a problem or not according to the prompted abnormal type.
According to the description, repeated automatic testing is conducted on the solid state disk with successful abnormal recovery according to the expected testing time, the purpose of verifying the testing result is achieved, the reliability of the solid state disk testing is improved, the specific abnormal reasons are analyzed according to the prompted abnormal types, whether the solid state disk has problems is judged, the reliability of the solid state disk is tested, and the effectiveness of the solid state disk testing is improved.
As shown in fig. 2, another embodiment of the present invention provides a solid state disk testing device, including:
the power-down module is used for powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
the power-on module is used for powering on the computer main board to be tested after successful power-off;
the abnormal recovery module is used for judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
and judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested.
Another embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the solid state disk testing method described above.
As shown in fig. 3, another embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the steps in the solid state disk testing method are implemented when the processor executes the computer program.
The solid state disk testing method, the device, the computer readable storage medium and the electronic equipment can be applied to any type of solid state disk, such as a solid state disk based on flash memory, a solid state disk based on DRAM (Dynamic Random Access Memory) and the like, and have the advantages of short development period, low development difficulty and low development cost, and are explained by specific embodiments:
example 1
Referring to fig. 1 and 4-5, a method for testing a solid state disk in this embodiment includes the steps of:
s0, the solid state disk to be tested is built in the computer main board to be tested, networking is carried out on the computer main board to be tested according to a preset hardware networking diagram, and all the computer main boards to be tested are located in the same local area network;
starting a power-on function and a network starting function when the power supply is recovered after the power of the computer main board to be tested is cut off;
for example, a computer motherboard to be tested (i.e., a tested computer motherboard in fig. 1) supporting a power-on function and a network power-on function after power failure, a multi-network-port switch (i.e., a network switch in fig. 1), a solid state disk to be tested (i.e., a solid state disk in fig. 1) corresponding to the computer motherboard to be tested, a PDU (program-controlled power supply), and a control computer (i.e., an executing computer in fig. 1) are networked according to a preset hardware networking diagram; controlling a computer to run an automatic test script, enabling a solid state disk to be tested to access a serial port debugging program, enabling a power supply of a computer main board to be tested to be connected with a PDU, setting a switch to distribute a fixed IP address for each computer main board to be tested (DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol), and starting a power supply recovery time-power supply starting function and a network starting function of the computer main board to be tested;
the number of the computer main board to be tested, the PDU and the solid state disk to be tested can be one or more, and the automatic batch execution task can be realized;
in this embodiment, the main board of the computer to be tested, the PDU and the solid state disk to be tested are all one, networking is performed according to the diagram shown in fig. 4, the solid state disk to be tested is built in the main board of the computer to be tested, the main board of the computer to be tested is connected with the switch, the switch is connected with the control computer, the PDU is connected with the computer to be tested, and the serial keyboard is connected with the solid state disk to be tested, the PDU and the control computer through the serial line; assuming that 3 solid state disks to be tested are arranged, 3 main boards of the computers to be tested are 3, PDU (protocol data unit) are 3, the 3 solid state disks to be tested are correspondingly arranged in the 3 computers to be tested in a one-to-one correspondence manner, the 3 PDU are correspondingly connected with the 3 main boards of the computers to be tested, the 3 computers to be tested are connected with a switch together, the switch is connected with a control computer, and a serial keyboard is connected with the 3 solid state disks to be tested, the 3 PDU and the control computer through serial lines;
s01, checking the state of a computer main board to be tested, judging whether the state of the computer main board to be tested is normal according to the checking result, powering down the computer main board to be tested if the state is normal, and prompting that the environment is abnormal if the state is abnormal;
wherein, still include:
installing an operating system to be tested on each computer mainboard to be tested;
installing a secure shell protocol service program in the operating system to be tested;
the state checking of the computer main board to be tested comprises the following steps:
connecting the computer main board to be tested through the secure shell protocol and checking whether all the operating systems to be tested are normally connected;
and checking whether the operation of the solid state disk to be tested is normal or not through a serial port.
S1, powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
for example, installing Linux or Windows of an operating system to be tested on each computer motherboard to be tested, installing an OpenSSHServer (open-source secure shell protocol service program) in the operating system, connecting the computer motherboard to be tested through an SSH, checking whether all the operating systems to be tested are connected normally, checking whether the operation of a solid state disk to be tested is normal through a serial port, recording hard disk information, an IP address and an MAC (network physical address) address of the computer motherboard to be tested, powering down the computer motherboard to be tested by closing one of the solts of the PDU if the operation is normal, and prompting that the environment is abnormal if the operation is abnormal;
s2, after successful power-down, powering up the computer main board to be tested;
specifically, whether the power-down is successful or not is judged through the IP address of the computer main board to be tested, if so, the computer main board to be tested is powered on through a program-controlled power supply, if not, whether the power-down of the computer main board to be tested is successful or not is judged within a preset time, and if not, the environment is prompted to be abnormal;
for example, judging whether the power-down is successful or not through the IP address of the computer main board to be tested, if so, starting one Solt of the PDU to power up the computer main board to be tested, if not, judging whether the power-down of the computer main board to be tested is successful within a preset time, if not, prompting the environment abnormality, assuming that the preset time is 5 minutes, if not, continuously judging whether the power-down of the computer to be tested is successful within 5 minutes, and if not, prompting the environment abnormality;
s3, judging whether the power-on result is successful, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
wherein, still include:
constructing a corresponding abnormal recovery program according to the preset abnormal recovery flow;
the entering the preset abnormal recovery process comprises the following steps:
and recovering the abnormality by calling a corresponding abnormality recovery program.
Example two
Referring to fig. 5-8, the present embodiment further defines how to construct an exception recovery procedure and execute a preset exception recovery procedure based on the first embodiment:
three exception recovery procedures are constructed;
specifically, as shown in fig. 6, the first exception recovery program is constructed according to fig. 6, a module class is defined by using an object-oriented model, when an MAC address is transmitted, a socket (socket) development packet is used to assemble a magic packet, and a sending command function is packaged, so that the first exception recovery program is packaged into an exception recovery module 1;
the second abnormal recovery program, as shown in fig. 7, is constructed according to fig. 7, and is packaged by a serial port method to realize the function of inquiring the state of the hard disk according to the user-defined command of the assembly manufacturer, and is packaged to the abnormal recovery module 2;
the third abnormal recovery program, as shown in fig. 8, is constructed according to fig. 8, executes a file system repair mode by issuing a command through a serial port keyboard under the Linux of an operating system, and issues a command operation graphical interface through the serial port keyboard under the Windows of the operating system, so as to realize file system repair or abnormal power-down confirmation steps, and all business logics are specially formulated according to a certain system version to package the third abnormal recovery program into an abnormal recovery module 3;
executing a preset abnormal recovery flow;
specifically, the step of judging whether the power-on result is successful, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow comprises:
judging whether the power-on result is successful or not through the IP address of the computer main board to be tested, if so, testing the solid state disk to be tested, if so, judging whether the power-on of the computer main board to be tested is successful or not within a preset time, and if not, entering a first abnormal recovery flow:
triggering a network wake-up function of the computer main board to be tested, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer main board to be tested is successful in a preset time if the power-on is unsuccessful, and entering a second abnormal recovery process if the power-on is not successful:
for example, if the preset time is 5 minutes, triggering a wake on function of the main board of the computer to be tested, judging whether the power-on is successful or not through the IP address, if the power-on is unsuccessful, continuously judging whether the power-on of the computer to be tested is successful within 5 minutes, and if the power-on is unsuccessful after 5 minutes, entering a second abnormal recovery program;
checking whether the disc physical link of the solid state disk to be tested is successfully connected through a serial port, if so, judging whether the disc physical link is successfully connected within a preset time, and if not, prompting that the link is abnormal; if successful, entering a third abnormal recovery flow:
for example, if the preset time is 10 minutes, checking whether the physical links of the discs of the solid state disk to be tested are successfully connected through the serial port, if so, continuously judging whether the physical links of the discs are successfully connected within 10 minutes, and if so, prompting that the links are abnormal if the connection is still failed after 10 minutes; if successful, entering a third abnormal recovery program;
triggering the computer main board to be tested to execute the restoration of the file system of the operating system, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer main board to be tested is successful within a preset time if the power-on is unsuccessful, and prompting the system to be abnormal if the power-on is not successful;
for example, if the preset time is 7 minutes, triggering the computer main board to be tested to execute the file system restoration of the operating system, judging whether the power-on is successful or not through the IP address, if so, testing the solid state disk to be tested, if not, continuously judging whether the power-on of the computer main board to be tested is successful within 7 minutes, and if not, prompting that the power-on is still failed after 7 minutes, and otherwise, prompting that the system is abnormal;
s4, judging whether the preset abnormal recovery is successful, and if so, testing the solid state disk to be tested;
specifically, the testing the solid state disk to be tested includes:
repeating the test of the solid state disk to be tested according to a preset test time;
the method also comprises the steps of:
judging whether the solid state disk to be tested has a problem or not according to the prompted abnormal type;
for example, judging whether the preset abnormal recovery is successful, if so, carrying out repeated test on the solid state disk to be tested within 60 minutes under the assumption that the preset test time is 60 minutes, and when the environment abnormality or the link abnormality or the system abnormality is prompted, analyzing the solid state disk to be tested according to the prompted abnormality type, confirming the cause of the specific error, and judging whether the solid state disk to be tested has a problem.
Example III
Referring to fig. 2, a solid state disk testing device includes:
the power-down module is used for powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
the power-on module is used for powering on the computer main board to be tested after successful power-off;
the abnormal recovery module is used for judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
and judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested.
Example IV
A computer-readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the solid state disk testing method of embodiment one or embodiment two.
Example five
Referring to fig. 3, an electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the steps in the solid state disk testing method in the first embodiment or the second embodiment are implemented when the processor executes the computer program.
In summary, the method, the device, the readable storage medium and the electronic device for testing the solid state disk provided by the invention are used for preparing the hardware device and configuring the software to set, then carrying out state inspection on the computer main board to be tested, carrying out power-on and power-off operations on the computer main board with the built-in solid state disk after the state is normal, calling a first abnormal recovery program firstly by entering an abnormal recovery flow, calling a second abnormal recovery program again if the power-on fails, calling a third abnormal recovery program finally if the physical link connection of the disk is successful, carrying out repeated test on the solid state disk to be tested according to the preset test time if the abnormal recovery flow is successful, and analyzing the solid state disk to be tested according to the prompted abnormal type when the abnormality is prompted, so as to judge whether the problem occurs in the solid state disk to be tested, and enable the computer main board to automatically start and normally enter an operating system under the abnormal power-on condition, avoid interruption of the solid state disk test caused by abnormal power-off, enable the solid state disk to carry out automatic test, ensure that the product problem of the solid state disk can be detected, improve the reliability and the automation degree of the solid state disk test, and ensure the solid state disk performance.
In the foregoing embodiments provided by the present application, it should be understood that the disclosed method, apparatus, computer readable storage medium and electronic device may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple components or modules may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be an indirect coupling or communication connection via some interfaces, devices or components or modules, which may be in electrical, mechanical, or other forms.
The components illustrated as separate components may or may not be physically separate, and components shown as components may or may not be physical modules, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.
Claims (9)
1. The solid state disk testing method is characterized by comprising the following steps of:
powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
after successful power-down, the computer main board to be tested is powered up;
judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested;
and judging whether the power-on result is successful, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow comprises the following steps:
judging whether the power-on result is successful or not through the IP address of the computer main board to be tested, if so, testing the solid state disk to be tested, if so, judging whether the power-on of the computer main board to be tested is successful or not within a preset time, and if not, entering a first abnormal recovery flow:
triggering a network wake-up function of the computer main board to be tested, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer main board to be tested is successful in a preset time if the power-on is unsuccessful, and entering a second abnormal recovery process if the power-on is not successful:
checking whether the disc physical link of the solid state disk to be tested is successfully connected through a serial port, if so, judging whether the disc physical link is successfully connected within a preset time, and if not, prompting that the link is abnormal; if successful, entering a third abnormal recovery flow:
triggering the computer mainboard to be tested to execute the restoration of the file system of the operating system, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer mainboard to be tested is successful within a preset time if the power-on is unsuccessful, and prompting the system to be abnormal if the power-on is not successful.
2. The method for testing a solid state disk according to claim 1, wherein before powering down the motherboard of the computer to be tested with the solid state disk to be tested, the method comprises:
and carrying out state inspection on the computer main board to be tested, judging whether the state of the computer main board to be tested is normal or not according to the inspection result, powering down the computer main board to be tested if the state is normal, and prompting that the environment is abnormal if the state is abnormal.
3. The method for testing a solid state disk of claim 2, further comprising:
installing an operating system to be tested on each computer mainboard to be tested;
installing a secure shell protocol service program in the operating system to be tested;
the state checking of the computer main board to be tested comprises the following steps:
connecting the computer main board to be tested through the secure shell protocol and checking whether all the operating systems to be tested are normally connected;
and checking whether the operation of the solid state disk to be tested is normal or not through a serial port.
4. The method for testing a solid state disk according to claim 2, wherein before the state inspection of the computer motherboard to be tested, the method comprises:
the solid state disk to be tested is built in the computer main board to be tested, networking is carried out on the computer main board to be tested according to a preset hardware networking diagram, and all the computer main boards to be tested are located in the same local area network;
and starting the power-on function and the network starting function of the computer main board to be tested when the power is recovered after the power failure.
5. The method for testing a solid state disk according to any one of claims 1 to 4, wherein powering up the computer motherboard to be tested after the powering down is successful includes:
judging whether the power-down is successful or not through the IP address of the computer main board to be tested, if so, powering on the computer main board to be tested through a programmable power supply, if not, judging whether the power-down of the computer main board to be tested is successful or not in a preset time, and if not, prompting that the environment is abnormal.
6. The method for testing a solid state disk according to claim 1, wherein the testing the solid state disk to be tested comprises:
repeating the test of the solid state disk to be tested according to a preset test time;
the method also comprises the steps of:
judging whether the solid state disk to be tested has a problem or not according to the prompted abnormal type.
7. The solid state disk testing device is characterized by comprising:
the power-down module is used for powering down a to-be-tested computer main board with a built-in to-be-tested solid state disk;
the power-on module is used for powering on the computer main board to be tested after successful power-off;
the abnormal recovery module is used for judging whether the power-on result is successful or not, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow;
judging whether the preset abnormal recovery is successful or not, and if so, testing the solid state disk to be tested;
and judging whether the power-on result is successful, if so, testing the solid state disk to be tested, and if not, entering a preset abnormal recovery flow comprises the following steps:
judging whether the power-on result is successful or not through the IP address of the computer main board to be tested, if so, testing the solid state disk to be tested, if so, judging whether the power-on of the computer main board to be tested is successful or not within a preset time, and if not, entering a first abnormal recovery flow:
triggering a network wake-up function of the computer main board to be tested, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer main board to be tested is successful in a preset time if the power-on is unsuccessful, and entering a second abnormal recovery process if the power-on is not successful:
checking whether the disc physical link of the solid state disk to be tested is successfully connected through a serial port, if so, judging whether the disc physical link is successfully connected within a preset time, and if not, prompting that the link is abnormal; if successful, entering a third abnormal recovery flow:
triggering the computer mainboard to be tested to execute the restoration of the file system of the operating system, judging whether the power-on is successful or not through the IP address, testing the solid state disk to be tested if the power-on is successful, judging whether the power-on of the computer mainboard to be tested is successful within a preset time if the power-on is unsuccessful, and prompting the system to be abnormal if the power-on is not successful.
8. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of a method for testing a solid state disk according to any of claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, performs the steps of a method for testing a solid state disk as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011448064.XA CN112559266B (en) | 2020-12-09 | 2020-12-09 | Solid state disk testing method and device, readable storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011448064.XA CN112559266B (en) | 2020-12-09 | 2020-12-09 | Solid state disk testing method and device, readable storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112559266A CN112559266A (en) | 2021-03-26 |
CN112559266B true CN112559266B (en) | 2023-06-06 |
Family
ID=75061496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011448064.XA Active CN112559266B (en) | 2020-12-09 | 2020-12-09 | Solid state disk testing method and device, readable storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559266B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220514B (en) * | 2021-05-11 | 2023-05-23 | 成都佰维存储科技有限公司 | Solid state disk testing method and device, readable storage medium and electronic equipment |
CN113505031A (en) * | 2021-06-29 | 2021-10-15 | 珠海太川云社区技术股份有限公司 | Up-down test method, up-down test device and readable storage medium |
CN118312372A (en) * | 2024-06-11 | 2024-07-09 | 北京智芯微电子科技有限公司 | Solid state disk abnormal power failure test method, system and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572371A (en) * | 2014-12-25 | 2015-04-29 | 记忆科技(深圳)有限公司 | Abnormal power-down testing system for hard disk |
CN109325373A (en) * | 2018-09-20 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of store method of metadata, device, equipment and readable storage medium storing program for executing |
CN109840171A (en) * | 2019-01-22 | 2019-06-04 | 山东华芯半导体有限公司 | A kind of simple SSD power failure test method |
CN111105840A (en) * | 2019-12-27 | 2020-05-05 | 合肥大唐存储科技有限公司 | Method, device and system for testing abnormal power failure of solid state disk |
CN111897685A (en) * | 2020-07-29 | 2020-11-06 | 深圳佰维存储科技股份有限公司 | Method and device for checking data in power failure, storage medium and electronic equipment |
-
2020
- 2020-12-09 CN CN202011448064.XA patent/CN112559266B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572371A (en) * | 2014-12-25 | 2015-04-29 | 记忆科技(深圳)有限公司 | Abnormal power-down testing system for hard disk |
CN109325373A (en) * | 2018-09-20 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of store method of metadata, device, equipment and readable storage medium storing program for executing |
CN109840171A (en) * | 2019-01-22 | 2019-06-04 | 山东华芯半导体有限公司 | A kind of simple SSD power failure test method |
CN111105840A (en) * | 2019-12-27 | 2020-05-05 | 合肥大唐存储科技有限公司 | Method, device and system for testing abnormal power failure of solid state disk |
CN111897685A (en) * | 2020-07-29 | 2020-11-06 | 深圳佰维存储科技股份有限公司 | Method and device for checking data in power failure, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112559266A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112559266B (en) | Solid state disk testing method and device, readable storage medium and electronic equipment | |
US11126518B1 (en) | Method and system for optimal boot path for a network device | |
CN107070747B (en) | Device, system and method for automatically testing network card network connection stability in network card binding mode | |
EP2798428B1 (en) | Apparatus and method for managing operation of a mobile device | |
CN117251333A (en) | Method, device, equipment and storage medium for acquiring hard disk information | |
CN111078484B (en) | Power-off test method, device, equipment and storage medium for system upgrade | |
CN115083510B (en) | Solid state disk testing method and device, storage medium, power supply and electronic equipment | |
CN114546747A (en) | BMC cold restart pressure test system and method | |
CN113257334B (en) | Test method, device and system for solid state disk | |
CN114510381A (en) | Fault injection method, device, equipment and storage medium | |
WO2022076100A1 (en) | Merged infrastructure for manufacturing and lifecycle management of both hardware and software | |
CN111352662A (en) | Server starting sequence control method, system, terminal and storage medium | |
CN115168146A (en) | Anomaly detection method and device | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Hardware and Booting Problems | |
Cisco | Troubleshooting Router Startup Problems | |
Cisco | Troubleshooting Router Startup Problems | |
Cisco | Troubleshooting Router Startup Problems |
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 |