CN115344445A - Abnormal power-down testing method, system, medium and equipment based on solid state disk - Google Patents

Abnormal power-down testing method, system, medium and equipment based on solid state disk Download PDF

Info

Publication number
CN115344445A
CN115344445A CN202210993838.XA CN202210993838A CN115344445A CN 115344445 A CN115344445 A CN 115344445A CN 202210993838 A CN202210993838 A CN 202210993838A CN 115344445 A CN115344445 A CN 115344445A
Authority
CN
China
Prior art keywords
solid state
state disk
disk
abnormal power
time
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.)
Pending
Application number
CN202210993838.XA
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202210993838.XA priority Critical patent/CN115344445A/en
Publication of CN115344445A publication Critical patent/CN115344445A/en
Pending 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • 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
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

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

The invention provides a method, a system, a medium and equipment for testing abnormal power-off based on a solid state disk, wherein the method comprises the following steps: responding to the fact that the solid state disk is in a test environment, checking disk information of the solid state disk, and performing read-write test on the solid state disk to determine whether the solid state disk is normal or not; the method comprises the steps that in response to the fact that the solid state disk is normal, the solid state disk is restarted, and abnormal power-off is triggered to the solid state disk based on time or events in the restarting process; the solid state disk is electrified again, and whether the solid state disk can be normally identified is checked; and repeatedly executing the steps through the time passing or the event in response to the fact that the solid state disk can be normally identified. The method can perform abnormal power-off test by taking all time or action events occurring in the process of restarting the solid state disk as trigger conditions, so as to ensure the test coverage and verify the reliability of the solid state disk; moreover, the automatic testing mode saves manpower and improves testing efficiency.

Description

Abnormal power-down testing method, system, medium and equipment based on solid state disk
Technical Field
The invention relates to the technical field of storage, in particular to a method, a system, a medium and equipment for testing abnormal power-down based on a solid state disk.
Background
In the reset (restart) process, a Solid State Disk (SSD) performs actions such as queue deletion, admin (stop) and I/O (data input/output) command, data storage processing, and the like until the unloading drive is completed; and then, loading driving, updating the state of a register, recovering data, configuring a Controller by an Admin command, creating a queue and the like are required. In the development process of the solid state disk, whether the disk is normal after being electrified again or not after abnormal power-off occurs in the reset process needs to be verified.
In the current common verification method, after a reset command is issued in a server environment, the disk is manually unplugged and then plugged back, and whether the disk is normally identified is judged. However, this manual test method has the following problems:
when manual disk pulling is performed, static electricity is generated at the contact position of the server slot position and the solid state disk, which may cause the slot position to be unavailable, that is, the solid state disk is pulled out from the server slot position, but the existence of the PCI (Peripheral Component Interconnect) device is still displayed in the server system, and at this time, the virtual PCI device can be eliminated only by restarting the server, which wastes a lot of time. In addition, due to manual dial test, the power failure condition when different actions occur in the reset process cannot be accurately tested, and abnormal power failure during execution of all the actions cannot be comprehensively covered, so that the test coverage is insufficient.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, a system, a medium, and a device for performing an abnormal electrical test based on a solid state disk, so as to solve the problems of low efficiency and low test coverage rate caused by performing a manual test on the abnormal electrical test during the restart process of the solid state disk in the prior art.
Based on the above purpose, the invention provides an abnormal power-off test method based on a solid state disk, which comprises the following steps:
responding to the fact that the solid state disk is in a test environment, checking disk information of the solid state disk, and performing read-write test on the solid state disk to determine whether the solid state disk is normal or not;
responding to the normality of the solid state disk, restarting the solid state disk, and triggering the solid state disk to be abnormally powered off based on time or events in the restarting process;
the solid state disk is powered on again, and whether the solid state disk can be normally identified is checked;
and repeatedly executing the steps through the time passing or the event in response to the fact that the solid state disk can be normally identified.
In some embodiments, the solid state disk being in a test environment includes:
the solid state disk is connected to the cache module and inserted into the server slot.
In some embodiments, triggering the abnormal power down of the solid state disk based on time during the reboot includes:
determining a time step according to the time required by the restarting process, wherein the time required by the restarting process is integral multiple of the time step;
and after the solid state disk starts to restart until the step time passes, calling the cache module to power off the solid state disk abnormally.
In some embodiments, triggering the abnormal power down of the solid state disk based on the event during the reboot includes:
selecting one event from a plurality of events occurring in the restarting process as an abnormal power-off trigger event;
opening a serial port of the solid state disk, and displaying and recording an internal operation log of the solid state disk in real time;
after the solid state disk is restarted, monitoring logs of the serial port in real time;
and in response to the fact that the log is scanned to have an abnormal power-off triggering event, calling the cache module to power off the solid state disk abnormally.
In some embodiments, the method further comprises:
and in response to the fact that the solid state disk cannot be normally identified, stopping abnormal power-down test, and collecting disk information of the solid state disk to investigate the disk reason.
In some embodiments, performing read-write testing on the solid state disk includes:
and randomly selecting a work task, and selecting one of sequential reading, sequential writing, random reading, random writing and mixed reading and writing modes according to the work task so as to issue IO to the solid state disk.
In some embodiments, checking the disk information of the solid state disk includes:
and checking the read-write data quantity, the running time, the power-on and power-off cycle times and the abnormal power-off times of the solid state disk.
In another aspect of the present invention, a system for testing abnormal power down based on a solid state disk is further provided, including:
the confirming module is configured to respond to the solid state disk in a test environment, check disk information of the solid state disk, and perform read-write test on the solid state disk to confirm whether the solid state disk is normal or not;
the abnormal power-off triggering module is configured to respond to the normality of the solid state disk, restart the solid state disk and trigger abnormal power-off of the solid state disk based on time or events in the restarting process;
the checking module is configured to electrify the solid state disk again and check whether the solid state disk can be normally identified; and
and the traversing module is configured to respond to the fact that the solid state disk can be normally identified and repeatedly execute the steps through the traversing time or the event.
In yet another aspect of the present invention, a computer-readable storage medium is also provided, storing computer program instructions, which when executed by a processor, implement the above-described method.
In yet another aspect of the present invention, a computer device is further provided, which includes a memory and a processor, the memory storing a computer program, which when executed by the processor performs the above method.
The invention has at least the following beneficial technical effects:
the method comprises the steps of checking disk information of the solid state disk when the solid state disk is in a test environment, performing read-write test on the solid state disk to confirm whether the solid state disk is normal or not, restarting the solid state disk under the condition that the solid state disk is normal, triggering abnormal power-down and re-powering up the solid state disk based on time or events in the restarting process, checking whether the solid state disk can be normally identified or not, and repeatedly executing the steps through time or events under the condition that the solid state disk can be normally identified, so that all time or action events occurring in the restarting process of the solid state disk can be used as trigger conditions to perform the abnormal power-down test, the test coverage is ensured, and the reliability of the solid state disk is verified; moreover, the automatic testing mode saves manpower and improves testing efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an abnormal electrical test method based on a solid state disk according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an abnormal power-down test system based on a solid state disk according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer-readable storage medium for implementing a method for testing an abnormal power failure based on a solid state disk according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of a computer device for executing a method for performing an abnormal power down test based on a solid state disk according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two non-identical entities with the same name or different parameters, and it should be understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements does not include all of the other steps or elements inherent in the list.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of an abnormal power down test method based on a solid state disk. Fig. 1 is a schematic diagram illustrating an embodiment of an abnormal electrical test method based on a solid state disk according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s10, responding to the solid state disk in a test environment, checking disk information of the solid state disk, and performing read-write test on the solid state disk to confirm whether the solid state disk is normal or not;
s20, in response to the fact that the solid state disk is normal, restarting the solid state disk, and triggering abnormal power-off on the solid state disk based on time or events in the restarting process;
step S30, the solid state disk is electrified again, and whether the solid state disk can be normally identified is checked;
and S40, responding to the fact that the solid state disk can be normally identified, and repeatedly executing the steps through time passing or events.
The method comprises the steps of checking disc information of the solid state disk when the solid state disk is in a test environment, performing read-write test on the solid state disk to confirm whether the solid state disk is normal, restarting the solid state disk under the condition that the solid state disk is normal, triggering abnormal power-down on the solid state disk based on time or events in the restarting process, re-electrifying the solid state disk, checking whether the solid state disk can be normally identified, and repeatedly executing the steps by passing through the time or events under the condition that the solid state disk can be normally identified, so that all time or action events occurring in the restarting process of the solid state disk can be used as triggering conditions, performing the electric test under the abnormality, ensuring the test coverage and verifying the reliability of the solid state disk; moreover, the automatic testing mode saves manpower and improves testing efficiency.
In some embodiments, the solid state disk being in a test environment includes: the solid state disk is connected to the cache module and inserted into the server slot.
In this embodiment, the cache module is an automation device for performing hot plug test on the solid state disk, and simulates the process of pulling out and inserting the solid state disk on the server by controlling the on-off time and the sequence of pins of the solid state disk.
In some embodiments, triggering the abnormal power-down of the solid state disk based on time during the reboot comprises: determining a time step according to the time required by the restarting process, wherein the time required by the restarting process is integral multiple of the time step; and after the solid state disk starts to restart until the step time passes, calling the cache module to power off the solid state disk abnormally.
In some embodiments, triggering the abnormal power down of the solid state disk based on the event during the reboot includes: selecting one event from a plurality of events occurring in the restarting process as an abnormal power-off trigger event; opening a serial port of the solid state disk, and displaying and recording an internal operation log of the solid state disk in real time; after the solid state disk is restarted, monitoring logs of the serial port in real time; and in response to the fact that the log is scanned to have an abnormal power-off triggering event, calling the cache module to power off the solid state disk abnormally.
In some embodiments, the method further comprises: and in response to the fact that the solid state disk cannot be normally identified, stopping abnormal power-down test, and collecting disk information of the solid state disk to investigate the reason of the disk.
In some embodiments, performing read-write testing on the solid state disk includes: and randomly selecting a work task, and selecting one of sequential reading, sequential writing, random reading, random writing and mixed reading and writing modes according to the work task so as to issue IO to the solid state disk.
In some embodiments, checking the disk information of the solid state disk includes: and checking the read-write data quantity, the running time, the power-on and power-off cycle times and the abnormal power-off times of the solid state disk.
The following is a specific embodiment of the abnormal power-down test method based on the solid state disk, provided by the invention:
1) Deployment of a test environment: and connecting the solid state disk to the search module, and inserting the solid state disk into the server slot.
2) The electrical test method based on time trigger abnormity comprises the following steps:
a. disc information checking: checking the state of the solid state disk, relating to basic information such as read-write data quantity, running time, power-on and power-off cycle times, abnormal power-off times and the like;
b. and (3) reading and writing test: randomly selecting a work load (work task) and reading and writing a disk; that is, one of sequential reading, sequential writing, random reading, random writing, mixed reading and writing modes is selected to issue an IO (data Input/Output) to the disk;
c. the solid state disk executes a reset (restart) process, lasts about 2 seconds, and selects a proper time step, such as 2ms (milliseconds);
d. after the solid state disk is subjected to reset, calling a cache module to abnormally power down the disk after 1 step time;
e. after the disk is electrified, whether the disk can be normally identified is checked, and the steps a, b, c and d are repeatedly executed after the disk can be normally identified, only in the step d, the time interval from each time of issuing reset to abnormal power-off is increased by 1 step time, and the coverage of the abnormal power-off test in the reset process is improved in a mode of traversing time; if the disk cannot be identified normally, the test is stopped, the information of the solid state disk is collected, and the reason for the disk being removed is checked.
3) The event trigger exception-based electrical test method comprises the following steps:
a. disc information checking: checking the state of the disk, relating to basic information such as read-write data quantity, running time, power-on and power-off cycle times, abnormal power-off times and the like;
b. and (3) reading and writing test: randomly selecting a work load (work task) and reading and writing a disk; selecting one mode from sequential reading, sequential writing, random reading, random writing, mixed reading and writing and the like to issue IO to the disk;
c. events occurring in the reset (restart) process are selected, and the main events comprise: deleting SQ (submissision request), deleting CQ (completion request), sending a power-down request to AM, sending a power-down request to DM, sending a power-down request to WM, sending a power-down request to JM, stopping GC, saving user data, filling dummy processing, saving an L2P table, saving a Trim table, clearing CSTS.RDY, setting CC.EN to 1, sending a power-up request to AM, sending a power-up request to DM, sending a power-up request to WM, sending a power-up request to JM, restoring an L2P table, restoring a Trim table, reading block (storage block) information, setting CSTS.RDY to 1, creating SQ, creating CQ and the like; defining all events as 1 array, sequentially selecting or randomly selecting 1 event from the array, and taking the selected 1 event as an event for triggering abnormal power-off in the reset process;
d. opening a serial port of the solid state disk through a private command, so that the serial port can display and record operation logs and events inside the solid state disk in real time;
e. after the solid state disk is issued with the reset, monitoring a serial port log of the solid state disk in real time, and calling a cache module to power off the disk abnormally after the log is scanned to have the event selected in the step c;
f. after the disk is electrified, whether the disk can be normally identified is checked, and after the disk can be normally identified, the steps a, b, c, d and e are repeatedly executed, wherein in the step e, after the reset is issued each time, the monitored events are obtained by sequentially selecting or randomly selecting in the event array in the step c; by means of the event traversing mode, the coverage of abnormal down-test in the reset process is improved; if the disk cannot be identified normally, the test is stopped, the information of the solid state disk is collected, and the reason for the disk failure is checked.
In a second aspect of the embodiment of the present invention, a system for testing abnormal power down based on a solid state disk is further provided. Fig. 2 is a schematic diagram illustrating an embodiment of an abnormal power down test system based on a solid state disk provided in the present invention. As shown in fig. 2, an abnormal power-down test system based on a solid state disk includes: the confirmation module 10 is configured to respond to that the solid state disk is in a test environment, check disk information of the solid state disk, and perform read-write test on the solid state disk to confirm whether the solid state disk is normal; the abnormal power-off triggering module 20 is configured to respond to the normality of the solid state disk, restart the solid state disk, and trigger abnormal power-off of the solid state disk based on time or an event in the restarting process; the checking module 30 is configured to re-power the solid state disk, and check whether the solid state disk can be normally identified; and a traversal module 40 configured to repeatedly execute the above steps through a traversal time or an event in response to the solid state disk being able to be normally identified.
The abnormal power-down test system based on the solid state disk provided by the embodiment of the invention checks the disk information of the solid state disk and performs read-write test on the solid state disk when the solid state disk is in a test environment to confirm whether the solid state disk is normal or not, and enables the solid state disk to be restarted under the condition that the solid state disk is normal, and triggers abnormal power-down and re-powers the solid state disk based on time or events in the restarting process, checks whether the solid state disk can be normally identified or not, and repeatedly executes the steps by passing time or events under the condition that the solid state disk can be normally identified, so that the abnormal power-down test can be performed by taking all the time or action events occurring in the restarting process of the solid state disk as triggering conditions, and the test coverage is ensured to verify the reliability of the solid state disk; moreover, the automatic testing mode saves manpower and improves testing efficiency.
In some embodiments, the validation module 10 includes a test environment module configured to connect a solid state disk to the Quarch module and to insert a server slot.
In this embodiment, the search module is an automation device for performing hot plug test on the solid state disk, and simulates the process of pulling out and inserting the solid state disk on the server by controlling the on-off time and sequence of pins of the solid state disk.
In some embodiments, the abnormal power-down triggering module 20 includes a time-based triggering module configured to determine a time step according to a time required for restarting the process, wherein the time required for restarting the process is an integer multiple of the time step; and after the solid state disk starts to restart until the step time passes, calling the cache module to power off the solid state disk abnormally.
In some embodiments, the abnormal power down triggering module 20 includes an event-based triggering module configured to select one event from a plurality of events occurring during the reboot as the abnormal power down triggering event; opening a serial port of the solid state disk, and displaying and recording an internal operation log of the solid state disk in real time; after the solid state disk is restarted, monitoring logs of the serial port in real time; and in response to the fact that the log is scanned to have an abnormal power-off triggering event, calling the cache module to power off the solid state disk abnormally.
In some embodiments, the system further comprises a disk dropping module configured to stop the abnormal power-down test and collect disk information of the solid state disk to investigate the disk dropping reason in response to the solid state disk not being normally identified.
In some embodiments, the confirmation module 10 further includes a read/write test module configured to randomly select a work task, and select one of sequential read, sequential write, random read, random write and mixed read/write modes according to the work task, so as to issue an IO to the solid state disk.
In some embodiments, the checking module 30 is further configured to check the amount of read/write data, the running time, the number of power-up and power-down cycles, and the number of abnormal power-down times of the solid state disk.
In a third aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and fig. 3 is a schematic diagram of a computer-readable storage medium for implementing a method for testing an abnormal electrical condition based on a solid state disk according to an embodiment of the present invention. As shown in fig. 3, the computer-readable storage medium 3 stores computer program instructions 31. The computer program instructions 31 when executed by a processor implement the steps of:
responding to the solid state disk in a test environment, checking disk information of the solid state disk, and performing read-write test on the solid state disk to determine whether the solid state disk is normal or not;
the method comprises the steps that in response to the fact that the solid state disk is normal, the solid state disk is restarted, and abnormal power-off is triggered to the solid state disk based on time or events in the restarting process;
the solid state disk is electrified again, and whether the solid state disk can be normally identified is checked;
and repeatedly executing the steps through the time passing or the event in response to the fact that the solid state disk can be normally identified.
In some embodiments, the solid state disk being in a test environment includes: the solid state disk is connected to the search module and inserted into the server slot.
In some embodiments, triggering the abnormal power down of the solid state disk based on time during the reboot includes: determining a time step according to the time required by the restarting process, wherein the time required by the restarting process is integral multiple of the time step; and after the solid state disk starts to restart until the step time passes, calling the cache module to power off the solid state disk abnormally.
In some embodiments, triggering the abnormal power down of the solid state disk based on the event during the reboot includes: selecting one event from a plurality of events occurring in the restarting process as an abnormal power-off triggering event; opening a serial port of the solid state disk, and displaying and recording an internal operation log of the solid state disk in real time; after the solid state disk starts restarting, monitoring a log of a serial port in real time; and in response to the fact that the log is scanned to have an abnormal power-off triggering event, calling the cache module to power off the solid state disk abnormally.
In some embodiments, the steps further comprise: and in response to the fact that the solid state disk cannot be normally identified, stopping abnormal power-down test, and collecting disk information of the solid state disk to investigate the disk reason.
In some embodiments, performing read-write testing on the solid state disk includes: and randomly selecting a work task, and selecting one of sequential reading, sequential writing, random reading, random writing and mixed reading and writing modes according to the work task so as to issue IO to the solid state disk.
In some embodiments, checking the disk information of the solid state disk includes: and checking the read-write data quantity, the running time, the power-on and power-off cycle times and the abnormal power-off times of the solid state disk.
It should be understood that all of the embodiments, features and advantages set forth above with respect to the solid state disk based under abnormal electrical testing method according to the present invention are equally applicable to the solid state disk based under abnormal electrical testing system and storage medium according to the present invention without conflict therebetween.
In a fourth aspect of the embodiments of the present invention, there is further provided a computer device, including a memory 402 and a processor 401 as shown in fig. 4, where the memory 402 stores therein a computer program, and the computer program, when executed by the processor 401, implements the method of any one of the above embodiments.
Fig. 4 is a schematic hardware structure diagram of an embodiment of a computer device for executing a method for performing an abnormal electrical test based on a solid state disk according to the present invention. Taking the computer device shown in fig. 4 as an example, the computer device includes a processor 401 and a memory 402, and may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus. The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the solid state disk-based abnormal power down test system. The output device 404 may include a display device such as a display screen.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for testing the solid state disk based exception in the embodiment of the present application. The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created based on use of the abnormal electrical test method of the solid state disk, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to local modules over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 401 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 402, that is, the method for testing the abnormal condition based on the solid state disk of the above method embodiment is implemented.
Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM may be available in a variety of forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for testing abnormal power failure based on a solid state disk is characterized by comprising the following steps:
responding to a test environment of a solid state disk, checking disk information of the solid state disk, and performing read-write test on the solid state disk to determine whether the solid state disk is normal or not;
responding to the normality of the solid state disk, restarting the solid state disk, and triggering the abnormal power-off of the solid state disk based on time or events in the restarting process;
the solid state disk is powered on again, and whether the solid state disk can be normally identified is checked;
and responding to the fact that the solid state disk can be normally identified, and repeatedly executing the steps through the time passing or the event.
2. The method of claim 1, wherein the solid state disk being in a test environment comprises:
the solid state disk is connected to the cache module and inserted into the server slot.
3. The method of claim 2, wherein triggering the abnormal power down of the solid state disk based on time during the reboot comprises:
determining a time step according to the time required by the restarting process, wherein the time required by the restarting process is an integral multiple of the time step;
and after the solid state disk starts to restart until the step time passes, calling the cache module to power off the solid state disk abnormally.
4. The method of claim 2, wherein triggering the abnormal power down of the solid state disk based on an event during a reboot comprises:
selecting one event from a plurality of events occurring in the restarting process as an abnormal power-off triggering event;
opening a serial port of the solid state disk, and enabling the serial port to display and record an internal operation log of the solid state disk in real time;
after the solid state disk starts restarting, monitoring the log of the serial port in real time;
and in response to the fact that the abnormal power-off triggering event occurs in the log after scanning, calling the Quarch module to abnormally power off the solid state disk.
5. The method of claim 1, further comprising:
and in response to the fact that the solid state disk cannot be normally identified, stopping abnormal power-down test, and collecting disk information of the solid state disk to investigate the reason of the disk.
6. The method of claim 1, wherein performing read-write testing on the solid state disk comprises:
and randomly selecting a work task, and selecting one of sequential reading, sequential writing, random reading, random writing and mixed reading and writing modes according to the work task so as to issue IO to the solid state disk.
7. The method of claim 1, wherein checking the disk information of the solid state disk comprises:
and checking the read-write data volume, the running time, the power-on and power-off cycle times and the abnormal power-off times of the solid state disk.
8. The utility model provides an electricity test system under exception based on solid state hard drives which characterized in that includes:
the system comprises a confirmation module, a test module and a control module, wherein the confirmation module is configured to respond to that a solid state disk is in a test environment, check disk information of the solid state disk, and perform read-write test on the solid state disk so as to confirm whether the solid state disk is normal or not;
the abnormal power-off triggering module is configured to respond to the normality of the solid state disk, restart the solid state disk and trigger abnormal power-off of the solid state disk based on time or events in the restarting process;
the checking module is configured to electrify the solid state disk again and check whether the solid state disk can be normally identified; and
and the traversing module is configured to respond to the fact that the solid state disk can be normally identified and repeatedly execute the steps through the traversing time or events.
9. A computer-readable storage medium, characterized in that computer program instructions are stored which, when executed by a processor, implement the method of any one of claims 1-7.
10. A computer arrangement comprising a memory and a processor, characterized in that a computer program is stored in the memory, which computer program, when being executed by the processor, is adapted to carry out the method of any one of the claims 1-7.
CN202210993838.XA 2022-08-18 2022-08-18 Abnormal power-down testing method, system, medium and equipment based on solid state disk Pending CN115344445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210993838.XA CN115344445A (en) 2022-08-18 2022-08-18 Abnormal power-down testing method, system, medium and equipment based on solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210993838.XA CN115344445A (en) 2022-08-18 2022-08-18 Abnormal power-down testing method, system, medium and equipment based on solid state disk

Publications (1)

Publication Number Publication Date
CN115344445A true CN115344445A (en) 2022-11-15

Family

ID=83954219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210993838.XA Pending CN115344445A (en) 2022-08-18 2022-08-18 Abnormal power-down testing method, system, medium and equipment based on solid state disk

Country Status (1)

Country Link
CN (1) CN115344445A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116758973A (en) * 2023-08-16 2023-09-15 江苏华存电子科技有限公司 Testing method for unexpected power failure data verification of enterprise-level solid state disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116758973A (en) * 2023-08-16 2023-09-15 江苏华存电子科技有限公司 Testing method for unexpected power failure data verification of enterprise-level solid state disk
CN116758973B (en) * 2023-08-16 2023-10-27 江苏华存电子科技有限公司 Testing method for unexpected power failure data verification of enterprise-level solid state disk

Similar Documents

Publication Publication Date Title
CN110992992B (en) Hard disk test method, device and storage medium
CN110928743B (en) Computing system, automatic diagnosis method and medium storing instructions thereof
KR102537875B1 (en) Method and apparatus for dinamically injecting fault for vehicle ecu software test
CN111104275A (en) Automatic testing method and device for flash SSD hard disk power supply
CN115344445A (en) Abnormal power-down testing method, system, medium and equipment based on solid state disk
CN113918197A (en) Firmware upgrading method, system, storage medium and equipment
CN109086162B (en) Memory diagnosis method and device
CN115373922A (en) Device, method, terminal and medium for automatically testing SMR hard disks of different manufacturers
CN111858178A (en) Method, device and equipment for judging power supply starting type and readable medium
CN116401086A (en) Test method, device, equipment and medium for memory funnel error reporting mechanism
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN112486785B (en) Method, system, terminal and storage medium for positioning downtime phase of server
CN115237691A (en) Hot plug test method, device, equipment and medium for storage equipment
CN115098291A (en) Method, system, storage medium and equipment for recording system restart reason
CN114420194A (en) Test method and device for power failure protection function of solid state disk and computer equipment
CN112463508B (en) Server dormancy state testing method, system, terminal and storage medium
CN114121133A (en) Chip, design method thereof and fault analysis method
CN109800114B (en) BMC visual test method, device, terminal and storage medium
CN112486717A (en) Method, system, terminal and storage medium for verifying consistency of disk data
CN111240990A (en) ISMCLI command line testing method, system, terminal and storage medium
CN113835631B (en) Residual platform configuration data deleting method, system, terminal and storage medium
CN114385379B (en) Method, system, terminal and storage medium for detecting on-board information refreshing
CN113986635B (en) BIOS testing method, system, storage medium and device
CN109815064B (en) Node isolation method, node isolation device, node equipment and computer readable storage medium
CN102411527A (en) Detecting method for image-processing chip, developing plate and detecting system

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