CN112992260A - Evaluation method and device for disk array cache data protection function - Google Patents

Evaluation method and device for disk array cache data protection function Download PDF

Info

Publication number
CN112992260A
CN112992260A CN201911270122.1A CN201911270122A CN112992260A CN 112992260 A CN112992260 A CN 112992260A CN 201911270122 A CN201911270122 A CN 201911270122A CN 112992260 A CN112992260 A CN 112992260A
Authority
CN
China
Prior art keywords
disk array
data
test data
power supply
protection function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201911270122.1A
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201911270122.1A priority Critical patent/CN112992260A/en
Publication of CN112992260A publication Critical patent/CN112992260A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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

  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The disclosure provides an evaluation method and device for a disk array cache data protection function. The evaluation method comprises the following steps: generating test data; injecting test data into a controller of the disk array; when the test data is completely injected into the controller, sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array; after the preset time, sending a starting signal to the power supply device to reconnect the power supply of the disk array; after the power supply of the disk array is switched on so as to completely start the disk array, acquiring test data to be verified from a disk pool of the disk array; judging whether the test data to be verified is consistent with the test data generated in the step of generating the test data; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified. The present disclosure improves the accuracy and efficiency of the assessment.

Description

Evaluation method and device for disk array cache data protection function
Technical Field
The present disclosure relates to the field of storage technologies, and in particular, to an evaluation method and an evaluation device for a disk array cache data protection function.
Background
A disk array (RAID) is a large number of Independent disks combined into a large-capacity disk group. The additive effect of providing data by individual disks can improve the performance of the entire disk system. The disk array has data redundancy storage capacity and extremely high concurrent access IOPS (Input/Output Operations Per Second, the number of times of read-write Operations Per Second) and bandwidth, and is an important external storage necessary for enterprise data access.
Generally, a disk array has a power down protection function for cache data. The controller cache of the disk array is a memory component arranged for improving the read-write speed, and the component temporarily stores part of read-write data for improving the read-write speed in the read-write process of the disk array. In order to prevent data in the cache from being lost due to the fact that the data cannot be stored in the persistence component in time after the abnormal power failure of the disk arrays, a cache data protection device is arranged in a controller of a plurality of disk arrays, and the data in the cache is emergently treated by using a standby battery or a capacitor after the power failure, so that the safety of the data is guaranteed.
Since the protection mechanisms and algorithms adopted by each manufacturer are different, the protection function of the disk array cache data needs to be evaluated. Currently, evaluation is mainly carried out manually. The manual method is time-consuming, the control precision of the time interval between the data injection and the power failure is poor, and the timing of the data injection into the cache (for example, the timing needs to ensure that the data is temporarily stored in the cache and the condition of writing the disk is not reached) is not easy to grasp, so that the accuracy and the efficiency of the evaluation of the protection function of the cache data of the disk array are poor.
Disclosure of Invention
The technical problem that this disclosure solved is: the evaluation method for the disk array cache data protection function is provided, so that the automatic evaluation of the disk array cache data protection function is realized, and the evaluation efficiency is improved.
According to one aspect of the present disclosure, an evaluation method for a disk array cache data protection function is provided, where the disk array includes a controller and a disk pool electrically connected to the controller, the evaluation method includes: generating test data; injecting the test data into a controller of the disk array; when the test data is completely injected into the controller, sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array; after a preset time, sending a starting signal to the power supply device to reconnect the power supply of the disk array; after the power supply of the disk array is switched on so that the disk array is completely started, acquiring test data to be verified from a disk pool of the disk array; judging whether the test data to be verified is consistent with the test data generated in the step of generating the test data or not; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified.
In some embodiments, the step of determining that the protection function of the cached data of the disk array is qualified comprises: if the test data to be verified is consistent with the test data generated in the step of generating the test data, judging whether the test of the preset times is finished; if so, determining that the protection function of the cache data of the disk array is qualified, otherwise, regenerating the test data.
In some embodiments, the test data includes file system data or bare device data.
In some embodiments, in determining whether the test data to be verified is consistent with the test data generated in the step of generating test data, it is determined whether each data byte of the test data to be verified is consistent with each data byte of the generated test data.
In some embodiments, the test data has a byte count ranging from 1KB to 256 KB.
According to another aspect of the present disclosure, an evaluation apparatus for a disk array cache data protection function is provided, where the disk array includes a controller and a disk pool electrically connected to the controller, the evaluation apparatus includes: a data generation unit for generating test data; the data injection unit is used for injecting the test data to the controller of the disk array; the power supply control unit is used for sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array when the test data are completely injected into the controller, and sending a starting signal to the power supply device to reconnect the power supply of the disk array after a preset time; the data acquisition unit is used for acquiring test data to be verified from a disk pool of the disk array after the power supply of the disk array is switched on so as to completely start the disk array; the judging unit is used for judging whether the test data needing to be verified is consistent with the test data generated by the data generating unit; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified.
In some embodiments, the determining unit is further configured to determine whether to complete the test for the predetermined number of times if the test data to be verified is consistent with the test data generated by the data generating unit; if so, determining that the protection function of the cache data of the disk array is qualified, and otherwise, enabling the data generation unit to regenerate the test data.
In some embodiments, the test data includes file system data or bare device data.
In some embodiments, the determining unit is configured to determine whether each data byte of the test data to be verified is consistent with each data byte of the generated test data.
In some embodiments, the test data has a byte count ranging from 1KB to 256 KB.
According to another aspect of the present disclosure, there is provided an evaluation apparatus for disk array cache data protection function, including: a memory; and a processor coupled to the memory, the processor configured to perform the method as previously described based on instructions stored in the memory.
According to another aspect of the present disclosure, a computer-readable storage medium is provided, having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method as previously described.
In the above evaluation method, test data is generated; injecting test data into a controller of the disk array; when the test data is completely injected into the controller, sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array; after the preset time, sending a starting signal to the power supply device to reconnect the power supply of the disk array; after a power supply of the disk array is switched on so that the disk array is completely started, obtaining test data to be verified from a disk pool of the disk array; judging whether the test data to be verified is consistent with the test data generated in the step of generating the test data; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified. The evaluation method realizes the automatic evaluation of the disk array cache data protection function, and improves the accuracy and efficiency of the evaluation.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 is a flow diagram illustrating an evaluation method for disk array cache data protection functionality according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram illustrating an evaluation method for disk array cache data protection functionality according to further embodiments of the present disclosure;
FIG. 3 is a block diagram illustrating an evaluation device for disk array cache data protection functions according to some embodiments of the present disclosure;
FIG. 4 is a block diagram illustrating an evaluation device for disk array cache data protection functions according to further embodiments of the present disclosure;
FIG. 5 is a block diagram illustrating an evaluation device for disk array cache data protection functions according to further embodiments of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In some embodiments, a disk array may include a controller and a disk pool electrically connected to the controller. The controller may include a cache unit. For example, a disk array may include multiple controllers. In some embodiments, the plurality of controllers may share a cache unit. The disk pool may include a plurality of disks.
FIG. 1 is a flow diagram illustrating an evaluation method for disk array cache data protection functionality according to some embodiments of the present disclosure. As shown in fig. 1, the evaluation method includes steps S102 to S116.
In step S102, test data is generated. For example, the test data may be randomly generated.
In some embodiments, the test data may include file system data or bare device data. Here, the file system data refers to data of a disk area which is subjected to partition formatting and accessed by an operating system; the bare device (raw device), also called a bare partition (original partition), is a file data of a special block device that is not formatted and is not read by an OS (Operating System) but is directly read by an application program. Of course, one skilled in the art will appreciate that the test data may be other types of data, and thus, the scope of the present disclosure is not so limited.
In step S104, test data is injected to the controller of the disk array.
For example, the controller may first buffer the test data using the buffer unit and then transfer the test data to the disk pool.
In step S106, when the test data is completely injected into the controller, a power-off signal is transmitted to a power supply device electrically connected to the disk array to interrupt power to the disk array.
Here, the power supply device is an external device for supplying power to the disk array. And after the test data is injected into the controller of the disk array, immediately sending a power-off signal to the power supply device, and powering off the power supply device after receiving the power-off signal, thereby interrupting the power supply of the disk array. For example, after injection of test data into the controller of the disk array is completed, an operation of interrupting power supply to the disk array may be performed within a time of several milliseconds (e.g., 5 milliseconds).
In step S108, after a predetermined time has elapsed, a start signal is sent to the power supply device to reconnect the power supply to the disk array. That is, after a predetermined time of power-off, a start signal is transmitted to the power supply device, and the power supply device re-turns on the power of the disk array after receiving the start signal.
In some embodiments, the predetermined time ranges from 3 minutes to 10 minutes. And the power supply of the disk array is switched on again after preset time, so that the data in the cache unit of the controller can be written into the disk pool as much as possible, and the data can be durably stored.
In step S110, after the power of the disk array is turned on so that the disk array is completely started, test data to be verified is acquired from a disk pool of the disk array. For example, after the disk array is powered on and the disk array is ready to start (e.g., the disk array may start over a period of 5 to 30 minutes), test data to be verified is obtained from a disk pool of the disk array.
In step S112, it is determined whether the test data that needs to be verified coincides with the test data generated in the step of generating test data (i.e., step 102). If so, the process advances to step S114; otherwise the process proceeds to step S116.
In some embodiments, in determining whether the test data to be verified is consistent with the test data generated in the step of generating the test data, it is determined whether each data byte of the test data to be verified is consistent with each data byte of the generated test data. This allows for a more accurate assessment.
In step S114, it is determined that the protection function of the cache data of the disk array is qualified.
In step S116, it is determined that the protection function of the cache data of the disk array is not qualified.
Thus, an evaluation method for disk array cache data protection functions according to some embodiments of the present disclosure is provided. The evaluation method comprises the following steps: generating test data; injecting test data into a controller of the disk array; when the test data is completely injected into the controller, sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array; after the preset time, sending a starting signal to the power supply device to reconnect the power supply of the disk array; after the power supply of the disk array is switched on so as to completely start the disk array, acquiring test data to be verified from a disk pool of the disk array; judging whether the test data to be verified is consistent with the test data generated in the step of generating the test data; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified. The evaluation method realizes the automatic evaluation of the disk array cache data protection function, and improves the accuracy and efficiency of the evaluation.
The evaluation method can evaluate the effectiveness of taking emergency data protection measures when the disk array encounters sudden power failure in the service operation process, so that the reliability of the disk array can be evaluated, and the disk array with unqualified test is abandoned, so that the product quality of the collected disk array is ensured, and the safety and reliability of enterprise operation data when the enterprise encounters a power failure event are ensured.
In some embodiments, the number of bytes of test data may range from 1KB (kilobyte) to 256 KB. For example, the number of bytes of test data may be 5KB, 10KB, 30KB, 100KB, or 200KB, etc. Because the byte number of the test data is smaller, the test data can be fully injected into the controller of the disk array, so that the accuracy of the evaluation of the cache data protection function of the disk array is improved.
In some embodiments, the step of determining that the protection function of the cached data of the disk array is eligible may include: if the test data to be verified is consistent with the test data generated in the step of generating the test data, judging whether the test of the preset times is finished; if so, determining that the protection function of the cache data of the disk array is qualified, otherwise, regenerating the test data. Therefore, the multiple evaluation of the disk array cache data protection function can be realized, and the accuracy of the evaluation of the disk array cache data protection function is further improved.
FIG. 2 is a flow diagram illustrating an evaluation method for disk array cache data protection functionality according to further embodiments of the present disclosure. As shown in fig. 2, the evaluation method may include steps S202 to S218.
In step S202, test data is generated.
In step S204, test data is injected into the controller of the disk array.
In step S206, when the test data is completely injected into the controller, a power-off signal is transmitted to the power supply device electrically connected to the disk array to interrupt the power supply of the disk array.
In step S208, after a predetermined time has elapsed, a start signal is sent to the power supply device to reconnect the power supply to the disk array.
In step S210, after the power of the disk array is turned on so that the disk array is completely started, test data to be verified is obtained from a disk pool of the disk array.
In step S212, it is determined whether or not the test data that needs to be verified coincides with the test data generated in the step of generating the test data. If so, the process advances to step S214; otherwise the process proceeds to step S216.
In step S214, it is determined whether the test is completed a predetermined number of times. I.e. to determine whether all tests are completed. If so, the process proceeds to step S218; otherwise, the process returns to step S202, i.e. the test data is regenerated, and the next test procedure is executed.
In step S216, it is determined that the protection function of the cache data of the disk array is not qualified.
In step S218, it is determined that the protection function of the cache data of the disk array is qualified.
Thus, methods for evaluating disk array cache data protection functions according to further embodiments of the present disclosure are provided. The evaluation method can realize the multiple tests of the disk array cache data protection function, thereby further improving the accuracy of the evaluation of the disk array cache data protection function.
The evaluation method in some embodiments of the disclosure can save manpower and material resources for disk array cache data protection evaluation, improve test efficiency, and reduce test cost. And for the consistency check of the test data, the consistency condition of all the injected test data after persistence can be checked, and each data byte can be detailed, so the test granularity is fine, and the test is more accurate. In addition, the evaluation method can cover as much protected data as possible.
By the aid of the evaluation method, the effectiveness of the equipment on data protection can be comprehensively detected aiming at the problem of cache data protection caused by abnormal power failure of the disk array. The evaluation method can verify the cache data protection by a black box test method aiming at disk array products of different manufacturers without paying attention to implementation details of disk array data protection.
The assessment method gets through the whole assessment process from the generation of the test data to the verification of the consistency of the test data, and the test can be repeatedly carried out according to the test data amount and the characteristic parameters of the test data sample, so that the coverage is comprehensive, and the accuracy and the assessment efficiency are higher. In addition, in the evaluation method, the disconnection and the opening of the power supply of the disk array controller are both included in the evaluation flow, so that the automation degree is improved.
FIG. 3 is a block diagram illustrating an evaluation device for disk array cache data protection functions according to some embodiments of the present disclosure.
In fig. 3, in addition to the evaluation device 310, a disk array 320 and a power supply device 330 electrically connected to the disk array 320 are shown. The disk array 320 may include a controller 321 and a disk pool 322 electrically connected to the controller 321. In some embodiments, disk array 320 may include multiple controllers 321, for example two controllers 321 are shown in FIG. 3. The controller 321 may include a buffer unit 3212. For example, a plurality of controllers 321 may share one buffer unit 3212. For another example, each controller 321 may also have a separate buffer unit. The disk pool 322 may include a plurality of interconnected disks 3224. In some embodiments, the disk array 320 may further include a backup battery 323 electrically connected to the controller 321 and the disk pool 322, respectively.
As shown in fig. 3, the evaluation device 310 may include: a data generation unit 311, a data injection unit 312, a power control unit 313, a data acquisition unit 314, and a determination unit 315.
The data generation unit 311 is used to generate test data. For example, the test data may include file system data or bare device data. In some embodiments, the number of bytes of test data may range from 1KB to 256 KB.
The data injection unit 312 is used to inject test data to the controller 321 of the disk array.
The power control unit 313 serves to transmit a power-off signal to the power supply device 330 electrically connected to the disk array 320 to interrupt the power of the disk array when the test data is completely injected into the controller, and to transmit a power-on signal to the power supply device 330 to re-turn on the power of the disk array 320 after a predetermined time has elapsed.
The data obtaining unit 314 is configured to obtain test data to be verified from the disk pool 322 of the disk array after the disk array is completely started by powering on the disk array.
The judging unit 315 is configured to judge whether the test data to be verified is consistent with the test data generated by the data generating unit 311; if the cache data of the disk array 320 is consistent, the protection function of the cache data of the disk array is determined to be qualified, otherwise, the protection function is determined to be unqualified.
To this end, an evaluation apparatus for disk array cache data protection functions according to some embodiments of the present disclosure is provided. The evaluation device realizes automatic evaluation of the disk array cache data protection function, and improves the accuracy and efficiency of evaluation. The evaluation device can evaluate the effectiveness of taking emergency data protection measures when the disk array encounters sudden power failure in the service operation process, so that the reliability of the disk array can be evaluated, the disk array with unqualified test is abandoned, the product quality of the collected disk array is ensured, and the safety and reliability of enterprise operation data when encountering power failure events are ensured.
In some embodiments, the determining unit 315 is configured to determine whether each data byte of the test data that needs to be verified is consistent with each data byte of the generated test data.
In some embodiments, the determining unit 315 is further configured to determine whether the test data to be verified is consistent with the test data generated by the data generating unit 311, and if so, determine whether the test is completed for a predetermined number of times; if so, the protection function of the cache data of the disk array is determined to be qualified, otherwise, the data generation unit 311 is caused to regenerate the test data.
In some embodiments of the present disclosure, the evaluation device may control the power of the disk array, and connect the disk array data volume (file system or bare device). The above-mentioned evaluation device may be a full-flow closed-loop evaluation system. After the evaluation device finishes injecting the test data into the disk array, the power supply of the disk array is immediately interrupted, the power supply of the disk array is switched on again after standing for a plurality of times, the situation of the test data in the disk array is checked after the disk array is started to be ready, the actual situation can be sensed, the last step is repeated for a plurality of times, and the conclusion whether the cache data protection of the disk array is reliable is obtained.
FIG. 4 is a block diagram illustrating an evaluation device for disk array cache data protection functions according to further embodiments of the present disclosure. The evaluation means comprises a memory 410 and a processor 420. Wherein:
the memory 410 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is used for storing instructions in the embodiments corresponding to fig. 1 and/or fig. 2.
Processor 420 is coupled to memory 410 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 420 is configured to execute instructions stored in the memory, so as to implement automatic evaluation of a disk array cache data protection function, and improve accuracy and efficiency of the evaluation.
In some embodiments, as also shown in fig. 5, the evaluation device 500 includes a memory 510 and a processor 520. Processor 520 is coupled to memory 510 by a BUS 530. The evaluation device 500 may be further connected to an external storage device 550 through a storage interface 540 for calling external data, and may be further connected to a network or another computer system (not shown) through a network interface 560, which will not be described in detail herein.
In the embodiment, the data instructions are stored in the memory and processed by the processor, so that the automatic evaluation of the disk array cache data protection function is realized, and the accuracy and the efficiency of the evaluation are improved.
In other embodiments, the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, the instructions implementing the steps of the method in the embodiment corresponding to fig. 1 and/or fig. 2 when executed by a processor. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
The method and system of the present disclosure may be implemented in a number of ways. For example, the methods and systems of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (12)

1. An evaluation method for a disk array cache data protection function, wherein the disk array comprises a controller and a disk pool electrically connected with the controller, the evaluation method comprises the following steps:
generating test data;
injecting the test data into a controller of the disk array;
when the test data is completely injected into the controller, sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array;
after a preset time, sending a starting signal to the power supply device to reconnect the power supply of the disk array;
after the power supply of the disk array is switched on so that the disk array is completely started, acquiring test data to be verified from a disk pool of the disk array; and
judging whether the test data to be verified is consistent with the test data generated in the step of generating the test data; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified.
2. The evaluation method of claim 1, wherein the step of determining that the protection function of the cached data of the disk array is eligible comprises:
if the test data to be verified is consistent with the test data generated in the step of generating the test data, judging whether the test of the preset times is finished; if so, determining that the protection function of the cache data of the disk array is qualified, otherwise, regenerating the test data.
3. The evaluation method according to claim 1,
the test data includes file system data or bare device data.
4. The evaluation method according to claim 1,
in the process of determining whether the test data to be verified is consistent with the test data generated in the step of generating the test data, determining whether each data byte of the test data to be verified is consistent with each data byte of the generated test data.
5. The evaluation method according to any one of claims 1 to 4,
the number of bytes of the test data ranges from 1KB to 256 KB.
6. An evaluation device for a disk array cache data protection function, wherein the disk array comprises a controller and a disk pool electrically connected with the controller, the evaluation device comprising:
a data generation unit for generating test data;
the data injection unit is used for injecting the test data to the controller of the disk array;
the power supply control unit is used for sending a power-off signal to a power supply device electrically connected with the disk array to interrupt the power supply of the disk array when the test data are completely injected into the controller, and sending a starting signal to the power supply device to reconnect the power supply of the disk array after a preset time;
the data acquisition unit is used for acquiring test data to be verified from a disk pool of the disk array after the power supply of the disk array is switched on so as to completely start the disk array; and
the judging unit is used for judging whether the test data needing to be verified is consistent with the test data generated by the data generating unit; and if the cache data are consistent, determining that the protection function of the cache data of the disk array is qualified, otherwise, determining that the protection function is unqualified.
7. The evaluation device of claim 6,
the judging unit is also used for judging whether the test of the preset times is finished or not if the test data to be verified is consistent with the test data generated by the data generating unit; if so, determining that the protection function of the cache data of the disk array is qualified, and otherwise, enabling the data generation unit to regenerate the test data.
8. The evaluation device of claim 6,
the test data includes file system data or bare device data.
9. The evaluation device of claim 6,
the judging unit is used for judging whether each data byte of the test data needing to be verified is consistent with each data byte of the generated test data.
10. The evaluation device according to any one of claims 6 to 9,
the number of bytes of the test data ranges from 1KB to 256 KB.
11. An evaluation device for disk array cache data protection function, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-5 based on instructions stored in the memory.
12. A computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 5.
CN201911270122.1A 2019-12-12 2019-12-12 Evaluation method and device for disk array cache data protection function Withdrawn CN112992260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911270122.1A CN112992260A (en) 2019-12-12 2019-12-12 Evaluation method and device for disk array cache data protection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911270122.1A CN112992260A (en) 2019-12-12 2019-12-12 Evaluation method and device for disk array cache data protection function

Publications (1)

Publication Number Publication Date
CN112992260A true CN112992260A (en) 2021-06-18

Family

ID=76331372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911270122.1A Withdrawn CN112992260A (en) 2019-12-12 2019-12-12 Evaluation method and device for disk array cache data protection function

Country Status (1)

Country Link
CN (1) CN112992260A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023665A1 (en) * 2001-07-27 2003-01-30 Naoto Matsunami Storage system having a plurality of controllers
US20100011261A1 (en) * 2008-07-08 2010-01-14 International Business Machines Corporation Verifying Data Integrity of a Non-Volatile Memory System during Data Caching Process
CN107315668A (en) * 2017-06-26 2017-11-03 郑州云海信息技术有限公司 Distributed memory system data consistency automates quick determination method and device
CN108845900A (en) * 2018-06-07 2018-11-20 郑州云海信息技术有限公司 A kind of method and device of test b BU data protection consistency
CN109086226A (en) * 2018-09-21 2018-12-25 郑州云海信息技术有限公司 A kind of test macro, method, equipment and storage medium storing power down protection
CN109669794A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of data in magnetic disk conformance test method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030023665A1 (en) * 2001-07-27 2003-01-30 Naoto Matsunami Storage system having a plurality of controllers
US20100011261A1 (en) * 2008-07-08 2010-01-14 International Business Machines Corporation Verifying Data Integrity of a Non-Volatile Memory System during Data Caching Process
CN107315668A (en) * 2017-06-26 2017-11-03 郑州云海信息技术有限公司 Distributed memory system data consistency automates quick determination method and device
CN108845900A (en) * 2018-06-07 2018-11-20 郑州云海信息技术有限公司 A kind of method and device of test b BU data protection consistency
CN109086226A (en) * 2018-09-21 2018-12-25 郑州云海信息技术有限公司 A kind of test macro, method, equipment and storage medium storing power down protection
CN109669794A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of data in magnetic disk conformance test method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US9304856B2 (en) Implementing ECC control for enhanced endurance and data retention of flash memories
CN103568863B (en) The Real-Time Monitoring diagnostic system of cell management system of electric automobile and diagnostic method
CN111611021B (en) Log data transmission method, device, computer equipment and storage medium
US20140089477A1 (en) System and method for monitoring storage machines
EP2366148A1 (en) Apparatus and method for controlling a solid state disk ( ssd ) device
CN104268076A (en) Memory bandwidth automatically testing method applicable to various processor platforms
CN106154072B (en) A kind of electronic equipment test macro and method
CN116719668A (en) Automatic testing method and testing system for RAID (redundant array of independent disks) of NVMe (non-volatile media management) solid-state disk group
CN111104275A (en) Automatic testing method and device for flash SSD hard disk power supply
CN112015609A (en) Hot plug test method, device and equipment
CN110739025B (en) Power failure test method, device and system for storage equipment
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
WO2019050581A1 (en) System and method for switching firmware
CN112992260A (en) Evaluation method and device for disk array cache data protection function
CN112363883A (en) CPU pressure testing method and device
CN104598844A (en) Power failure protection method and device for preventing corruption of system files of solid-state disk
CN116361111A (en) Data acquisition method and device and electronic equipment
CN110688268A (en) Fault positioning method, device, equipment and medium for NVME SSD
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN114817213A (en) Server database tuning test method, device, terminal and storage medium
CN113849388A (en) Test method and device, electronic equipment and storage medium
CN112486717A (en) Method, system, terminal and storage medium for verifying consistency of disk data
CN111210863B (en) Method, device and equipment for testing embedded memory and computer storage medium
US11248990B2 (en) Monitoring terminal, robot, and product testing method
US20130227226A1 (en) Electronic device and method for data backup

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210618

WW01 Invention patent application withdrawn after publication