CN118398062A - SSD internal data security management system and method based on disk array - Google Patents
SSD internal data security management system and method based on disk array Download PDFInfo
- Publication number
- CN118398062A CN118398062A CN202410841240.8A CN202410841240A CN118398062A CN 118398062 A CN118398062 A CN 118398062A CN 202410841240 A CN202410841240 A CN 202410841240A CN 118398062 A CN118398062 A CN 118398062A
- Authority
- CN
- China
- Prior art keywords
- solid state
- data
- state disk
- capacity
- disk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1068—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices in sector programmable memories, e.g. flash disk
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses an SSD internal data safety management system and method based on a disk array, which relate to the field of solid state disks and solve the problem that when the solid state disk is damaged or abnormal in data, the solid state disk still needs to be manually detected or reminded by means of popup messages.
Description
Technical Field
The invention belongs to the field of solid state disks, relates to a data management technology, and in particular relates to an SSD internal data security management system and method based on a disk array.
Background
The solid state disk is composed of a control unit and a storage unit. The solid state disk is identical to the common hard disk in the aspects of the specification, definition, function and using method of the interface, and is basically consistent with the common hard disk in the aspects of the appearance and the size of the product. The solid state disk is widely applied to various fields such as vehicle-mounted, industrial control, video monitoring, network terminals, electric power, medical treatment, aviation, navigation equipment and the like.
Under the current background, the solid state disk needs to operate under a large number of high-frequency data read-write operation scenes, the data backup becomes necessary operation due to the risk of data damage or loss in the solid state disk, but when the solid state disk is damaged or abnormal, the data damage and abnormal data can be known only when the solid state disk still needs to be detected manually or abnormal popup window and other messages appear, so that the problem of how to carry out banding management on the solid state disk to realize the safety management of the data is currently solved;
therefore, we propose a system and a method for managing data security in SSD based on disk array.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide an SSD internal data security management system and method based on a disk array.
The technical problems to be solved by the invention are as follows:
how to realize the safe management of the data in the solid state disk based on read-write analysis and data analysis.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the SSD internal data safety management system based on the disk array comprises a hard disk reading module, a backup analysis module, a verification configuration module, a data verification module, a solid self-checking module, a display terminal and a processor;
The hard disk reading module is used for acquiring array distribution information of the solid state disk, sending the array distribution information of the solid state disk to the processor, and sending the array distribution information of the solid state disk to the backup analysis module and the verification configuration module by the processor;
The backup analysis module is used for analyzing the data backup condition of the solid state disk, analyzing the data backup condition to obtain the capacity surplus grade of the solid state disk, and sending the capacity surplus grade of the solid state disk to the processor by the processor, and sending the capacity surplus grade of the solid state disk to the verification configuration module by the processor; the verification configuration module is used for configuring a backup storage area and a verification area of the solid state disk;
When writing operation and reading operation are performed, the data verification module is used for verifying data when the solid state disk is written and read, a verification data normal signal or a data abnormal signal is sent to the processor, if the processor receives the data normal signal, no operation is performed, if the processor receives the data abnormal signal, a sector corresponding to the data block is marked as a sector to be detected, and meanwhile, the processor sends the data abnormal signal to the solid state self-detection module;
the solid state self-checking module is used for detecting the running state of the solid state disk, detecting and generating a running abnormal signal or sending the running abnormal signal to the processor, acquiring a backup storage area of a storage area where a sector to be checked is located if the processor receives the running normal signal, transmitting data blocks of the corresponding sector in the backup storage area to the sector of the storage area for data block replacement, and sending the running abnormal signal to the display terminal if the processor receives the running abnormal signal, wherein the display terminal is used for displaying the running abnormal signal of the solid state disk.
Specifically, the array distribution information includes the number of strips of the solid state disk, and the strip depth and the strip width of each strip;
The solid state disk consists of storage areas, strips in the solid state disk consist of sectors in the same horizontal position in different storage areas, and the number and the capacity of each sector in the same strip are the same;
stripe depth is the data capacity of each sector in the same stripe;
the stripe width is the number of sectors in the same stripe.
Specifically, the analysis process of the backup analysis module is specifically as follows:
Reading the number of strips, the strip depth and the strip width of the solid state disk;
calculating a user capacity value of the solid state disk;
then reading the logic capacity value of the solid state disk;
comparing the space utilization rate of the solid state disk by using the user capacity value;
and comparing the space utilization rate with a space utilization threshold value, and judging the capacity surplus grade of the solid state disk as a third capacity surplus grade, a second capacity surplus grade or a first capacity surplus grade.
Specifically, the relative remaining capacity of the first capacity surplus level is lower than the relative remaining capacity of the second capacity surplus level, which is lower than the relative remaining capacity of the second capacity surplus level.
Specifically, the configuration process of the verification configuration module is specifically as follows:
dividing the sector of the checking area according to the number of the strips of the solid state disk, wherein the sector of the checking area corresponds to the strip of the storage area one by one;
meanwhile, when the capacity surplus grade of the solid state disk is the first capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is one;
When the capacity surplus grade of the solid state disk is the second capacity surplus grade, the backup storage areas of the corresponding storage areas of the fixed hard disk are divided into two parts;
And when the capacity surplus grade of the solid state disk is the third capacity surplus grade, the backup storage areas of the corresponding storage areas of the solid state disk are three.
Specifically, the spare space capacity of the third capacity spare level is greater than the spare space capacity of the second capacity spare level, which is greater than the spare space capacity of the first capacity spare level.
Specifically, the verification process of the data verification module is specifically as follows:
When data writing operation is carried out, writing data are divided into a plurality of data blocks, and then the plurality of data blocks are written into sectors corresponding to different storage areas in the same strip in parallel;
acquiring written binary numbers of data blocks in sectors in each storage area; wherein, the data capacity of each data block in the same stripe is the same;
If the number of times of 1 occurrence in the data block after conversion into the binary system is an odd number, the numerical value of the written binary number of the data block is judged to be 1, and if the number of times of 1 occurrence in the data block after conversion into the binary system is an even number, the numerical value of the written binary number of the data block is judged to be 0;
Calculating standard check indication of each group of strips in the storage area;
then, standard verification readings of each group of strips in the storage area are transmitted to corresponding sectors of the verification area for storage;
when data reading operation is carried out, reading binary numbers of data blocks in sectors in different storage areas of the same strip;
calculating a read verification indicator for each set of stripes in the storage area;
comparing the read check indication with the standard check indication stored in the sector corresponding to the check area;
If the reading check indication is inconsistent with the standard check indication, generating a data abnormal signal;
if the read check indication is consistent with the standard check indication, a data normal signal is generated.
Specifically, the detection process of the solid self-checking module specifically includes the following steps:
Acquiring operation environment data of the solid state disk, wherein the operation environment data comprises input voltage, input current and disk body temperature of the solid state disk;
Respectively comparing the input voltage, input current and disk body temperature of the solid state disk with corresponding safe data intervals;
if the value of any one of the input voltage, the input current or the disk body temperature of the solid state disk does not belong to the corresponding safe data interval, generating an operation abnormal signal;
If the values of the input voltage, the input current and the disk body temperature of the solid state disk all belong to the corresponding safe data interval, calculating the running state value of the solid state disk;
Comparing the operation state value of the solid state disk with the operation state threshold, generating an operation abnormal signal if the operation state value of the solid state disk is smaller than or equal to the first operation state threshold or larger than the second operation state threshold, and generating an operation normal signal if the operation state value of the solid state disk is larger than the first operation state threshold and smaller than the second operation state threshold.
Specifically, the values of the first operating state threshold and the second operating state threshold are both greater than zero, and the first operating state threshold is less than the second operating state threshold.
The invention also provides a SSD internal data security management method based on the disk array, which comprises the following steps:
Step S100, a hard disk reading module acquires array distribution information of a solid state disk, and the array distribution information is sent to a backup analysis module and a verification configuration module through a processor;
Step S200, the backup analysis module analyzes the data backup condition of the solid state disk, analyzes the data backup condition to obtain the capacity surplus grade of the solid state disk, and sends the capacity surplus grade to the verification configuration module through the processor;
Step S300, a verification configuration module configures a backup storage area and a verification area of the solid state disk, sectors of the verification area are divided according to the number of strips of the solid state disk, and corresponding numbers of backup storage areas are set for the storage area of the fixed hard disk according to the capacity surplus grade;
Step S400, when writing operation and reading operation are performed, the data verification module verifies the data written and read by the solid state disk, and a data abnormal signal or a data normal signal generated by verification is sent to the processor;
Step S500, if the processor receives the data normal signal, no operation is performed, if the processor receives the data abnormal signal, the sector corresponding to the data block is marked as a sector to be detected, and the data abnormal signal is sent to the solid self-detection module;
And step S600, the solid state self-checking module detects the running state of the solid state disk, detects and generates a running abnormal signal or a running normal signal and sends the running abnormal signal to the processor, if the running normal signal is generated, the data blocks of the corresponding sectors in the backup storage area are transmitted to the sectors of the storage area for data block replacement, and if the running abnormal signal is generated, the running abnormal signal is sent to the display terminal for display.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
1. The invention analyzes the data backup condition of the solid state disk by using the backup analysis module, analyzes the capacity surplus grade of the solid state disk and sends the obtained capacity surplus grade to the verification configuration module, so that the verification configuration module configures the backup storage area and the verification area of the solid state disk, the sectors of the verification area are divided according to the number of strips of the solid state disk, and the backup storage area with corresponding parts is set for the storage area of the fixed hard disk according to the capacity surplus grade;
2. When the solid state disk is subjected to writing operation and reading operation, the data verification module can be used for verifying the data written in and read from the solid state disk, a data abnormal signal or a data normal signal generated by verification is sent to the processor, if the data abnormal signal is generated by verification, the sector corresponding to the data block is recorded as a sector to be detected, meanwhile, the data abnormal signal is sent to the solid state self-detection module, the solid state disk operation state is detected by the solid state self-detection module, an operation abnormal signal or an operation normal signal is generated by detection, if the operation normal signal is generated by detection, the data block corresponding to the sector in the backup storage area is transmitted to the sector in the storage area, and the data block replacement is realized.
Drawings
The present invention is further described below with reference to the accompanying drawings for the convenience of understanding by those skilled in the art.
FIG. 1 is an overall system block diagram of the present invention;
FIG. 2 is a schematic diagram of a memory area according to the present invention;
FIG. 3 is a schematic illustration of a verification zone in accordance with the present invention;
Fig. 4 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In an embodiment, referring to fig. 1 to 3, the present invention provides an SSD internal data security management system based on a disk array, including a solid state disk and a data security management system equipped with the solid state disk, where in actual use, the data security management system may log in through a unique account number provided in a specification of the solid state disk or a corresponding product number input to the solid state disk;
In this embodiment, the data security management system includes a hard disk reading module, a backup analysis module, a verification configuration module, a data verification module, a solid state self-checking module, a display terminal and a processor, when the solid state disk is actually used, a user logs in the data security management system first, at this time, the hard disk reading module is used for obtaining array distribution information of the solid state disk and sending the array distribution information of the solid state disk to the processor, and the processor sends the array distribution information of the solid state disk to the backup analysis module and the verification configuration module;
the array distribution information comprises the number of strips of the solid state disk, the strip depth and the strip width of each strip, wherein the solid state disk consists of a plurality of storage areas, the strips in the solid state disk consist of sectors at the same horizontal position in different storage areas, the number and the capacity of each sector in the same strip are the same, the strip depth is the data capacity of each sector in the same strip, and the strip width is the number of the sectors in the same strip;
Referring to fig. 2 for a specific example, the solid state disk is divided into three storage areas, where each storage area includes three groups of sectors, and thus, it can be known that the array distribution information is specifically: the number of the stripes is 3, the width of the stripes is 3, and the depth of the stripes is acquired based on the data capacity of the sectors in each group of stripes;
In this embodiment, the backup analysis module is configured to analyze a data backup condition of a solid state disk, and an analysis process specifically includes:
Reading the number FT, the strip depth FSi and the strip width FKi of the solid state disk, wherein i is the number of the strip, and the upper limit value of i is determined by the value of the strip number;
according to the formula Calculating a user capacity value YR of the solid state disk, and simultaneously reading a logic capacity value of the solid state disk;
The method specifically needs to be explained, the user capacity is a space which can be freely operated by a user in the solid state disk, the user capacity can be subjected to partition operation and data read-write operation, the logic capacity value is the factory capacity of the solid state disk, the value obtained by adding and summing the value of the user capacity value and the value of the unused capacity is equal to the value of the logic capacity, and the unused capacity is the unused capacity which is not partitioned except for the unused capacity occupied by the built-in system;
dividing the user capacity value of the solid state disk by the logic capacity value of the solid state disk, calculating to obtain the space utilization rate of the solid state disk, and comparing the space utilization rate with a space utilization threshold;
if the space utilization rate of the solid state disk is smaller than or equal to the first space utilization threshold, judging that the capacity surplus grade of the solid state disk is a third capacity surplus grade;
If the space utilization rate of the solid state disk is larger than the first space utilization threshold value and smaller than or equal to the second space utilization threshold value, judging that the capacity surplus grade of the solid state disk is the second capacity surplus grade;
If the space utilization rate of the solid state disk is larger than the first space utilization threshold, judging that the capacity surplus grade of the solid state disk is the first capacity surplus grade;
wherein the values of the first space usage threshold and the second space usage threshold are both greater than zero, the first space usage threshold is less than the second space usage threshold, the relative remaining capacity of the first capacity surplus level is less than the relative remaining capacity of the second capacity surplus level, and the relative remaining capacity of the second capacity surplus level is less than the relative remaining capacity of the second capacity surplus level;
The backup analysis module sends the capacity surplus grade of the solid state disk to the processor, and the processor sends the capacity surplus grade of the solid state disk to the verification configuration module; the verification configuration module is used for configuring the backup storage area and the verification area of the solid state disk, and the configuration process is specifically as follows:
dividing the sectors of the check area according to the number of the strips of the solid state disk, wherein the sectors of the check area correspond to the strips of the storage area one by one, for example, if the number of the strips of the solid state disk is 3, the number of the sectors of the check area is 3;
meanwhile, when the capacity surplus grade of the solid state disk is the first capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is one;
When the capacity surplus grade of the solid state disk is the second capacity surplus grade, the backup storage areas of the corresponding storage areas of the fixed hard disk are divided into two parts;
when the capacity surplus grade of the solid state disk is the third capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is three times;
Wherein the spare space capacity of the third capacity spare level is greater than the spare space capacity of the second capacity spare level, which is greater than the spare space capacity of the first capacity spare level;
In a specific implementation, when the host performs a data writing operation and a data reading operation, the data verification module is used for verifying data written in and read from the solid state disk, and the verification process is specifically as follows:
When data writing operation is carried out, writing data are divided into a plurality of data blocks, and then the plurality of data blocks are written into sectors corresponding to different storage areas in the same strip in parallel;
acquiring written binary numbers XSoi of data blocks in sectors in each storage area, wherein the data capacity of each data block in the same stripe is the same, o is the number of the storage area, o is a non-zero natural number, and the upper limit value of o is n;
If the number of times of 1 occurrence in the data block after conversion into the binary system is an odd number, the numerical value of the written binary number of the data block is judged to be 1, and if the number of times of 1 occurrence in the data block after conversion into the binary system is an even number, the numerical value of the written binary number of the data block is judged to be 0;
the standard verification indicator JYi for each set of stripes in the storage area is calculated according to the formula, which is specifically as follows:
;
Wherein ∈is the mathematical sign of exclusive or, which is applied to logical operations, the algorithm is: a +.b= (¬ a ∈b), (a ∈ ¬ b), for example, 1 ∈1=0, 0 =1, 1 ∈1=0, 0 =0;
then, standard verification readings of each group of strips in the storage area are transmitted to corresponding sectors of the verification area for storage;
When data reading operation is performed, reading binary numbers TSoi of data blocks in sectors in different storage areas of the same band;
the read verify indicator CYi for each set of stripes in the storage area is calculated according to the formula, which is specifically as follows:
;
comparing the read check indication with the standard check indication stored in the sector corresponding to the check area:
If the reading check indication is inconsistent with the standard check indication, generating a data abnormal signal;
If the reading check indication is consistent with the standard check indication, generating a data normal signal;
it can be understood that when the value of the read check indication is not equal to the value of the standard check indication, the read binary indication when the data block in the sector in each storage area is read is different from the write binary indication when the data is written, that is, the data block has data abnormality or data loss;
The data checking module sends a data normal signal or a data abnormal signal to the processor, if the processor receives the data normal signal, the processor does not perform any operation, if the processor receives the data abnormal signal, the sector corresponding to the data block is marked as a sector to be checked, and meanwhile, the processor sends the data abnormal signal to the solid self-checking module;
The solid state self-checking module is used for detecting the running state of the solid state disk, and the detection process is specifically as follows:
Acquiring operation environment data of the solid state disk, wherein the operation environment data comprise input voltage RV, input current RI and disk temperature PT of the solid state disk, and in the embodiment, the operation environment data of the solid state disk are acquired through a detection element arranged in the solid state disk, and the operation environment data can be synchronously inquired in real time through matched software installed on a host;
Respectively comparing the input voltage, input current and disk body temperature of the solid state disk with corresponding safe data intervals;
if the value of any one of the input voltage, the input current or the disk body temperature of the solid state disk does not belong to the corresponding safe data interval, generating an operation abnormal signal;
if the values of the input voltage, the input current and the disk body temperature of the solid state disk all belong to the corresponding safe data interval, carrying out the subsequent steps;
calculating an operation state value AQ of the solid state disk according to a formula, wherein the formula is specifically as follows:
;
Wherein s1, s2 and s3 are weight coefficients with fixed numerical values, the numerical values of s1, s2 and s3 are all larger than zero, s1+s2+s3=1, s1 reflects the association degree of the power and the temperature of the solid state disk, s2 reflects the internal resistance condition of the solid state disk, s3 reflects the temperature condition of the solid state disk, and the weight coefficients are obtained through scientific experiment calculation;
Comparing the running state value of the solid state disk with the running state threshold value;
if the running state value of the solid state disk is smaller than or equal to the first running state threshold value or larger than the second running state threshold value, generating an abnormal running signal;
If the running state value of the solid state disk is larger than the first running state threshold value and smaller than the second running state threshold value, generating a running normal signal; the first running state threshold value and the second running state threshold value are both larger than zero, and the first running state threshold value is smaller than the second running state threshold value;
The solid state self-checking module sends an operation abnormal signal or an operation normal signal to the processor, if the processor receives the operation normal signal, the processor acquires a backup storage area of a storage area where a sector to be checked is located, and transmits data blocks of the corresponding sector in the backup storage area to the sector of the storage area for data block replacement, if the processor receives the operation abnormal signal, the processor sends the operation abnormal signal to the display terminal, and the display terminal is used for displaying the operation abnormal signal of the solid state disk;
in the application, if a corresponding calculation formula appears, the calculation formulas are all dimensionality-removed and numerical calculation, and the weight coefficient, the proportion coefficient and other coefficients in the formulas are set to be a result value obtained by quantizing each parameter, so long as the proportion relation between the parameter and the result value is not influenced.
In another embodiment, referring to fig. 4, another concept based on the same invention now proposes a method for managing data security in SSD based on disk array, comprising the steps of:
step S100, a hard disk reading module acquires array distribution information of a solid state disk, and sends the array distribution information of the solid state disk to a processor, and the processor sends the array distribution information of the solid state disk to a backup analysis module and a verification configuration module;
Step 200, the backup analysis module analyzes the data backup condition of the solid state disk, reads the stripe number, stripe depth and stripe width of the solid state disk, calculates the user capacity value of the solid state disk, reads the logic capacity value of the solid state disk, divides the user capacity value of the solid state disk by the logic capacity value of the solid state disk to calculate the space utilization rate of the solid state disk, compares the space utilization rate with a space utilization threshold, determines that the capacity surplus grade of the solid state disk is a third capacity surplus grade if the space utilization rate of the solid state disk is smaller than or equal to a first space utilization threshold, determines that the capacity surplus grade of the solid state disk is a second capacity surplus grade if the space utilization rate of the solid state disk is larger than the first space utilization threshold, and sends the capacity surplus grade of the solid state disk to the processor, and the backup analysis module sends the capacity surplus grade of the solid state disk to the configuration module;
Step S300, a verification configuration module configures a backup storage area and a verification area of the solid state disk, sectors of the verification area are divided according to the number of stripes of the solid state disk, the sectors of the verification area correspond to the stripes of the storage area one by one, meanwhile, when the capacity surplus grade of the solid state disk is a first capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is one, when the capacity surplus grade of the solid state disk is a second capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is two, and when the capacity surplus grade of the solid state disk is a third capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is three;
Step S400, when writing operation and reading operation are carried out, the data verification module verifies the data written and read by the solid state disk, when writing operation is carried out, the written data is divided into a plurality of data blocks, then the plurality of data blocks are written into the sectors corresponding to different storage areas in the same strip in parallel, written binary numbers of the data blocks in the sectors in each storage area are obtained, if the number of times of occurrence of 1 in the data block after conversion is an odd number, the numerical value of the written binary numbers of the data block is judged to be 1, if the number of times of occurrence of 1 in the data block after conversion is an even number, the numerical value of the written binary numbers of the data block is judged to be 0, then standard verification numbers of each group of strips in the storage area are calculated, then the standard verification numbers of each group of strips in the storage area are transmitted to the corresponding sectors of the verification area for storage, when data reading operation is carried out, the read binary numbers of the data blocks in the sectors in the different storage areas are read, the read binary numbers of each group of strips in the storage area are calculated, if the read numbers of the read verification numbers correspond to the area, and the standard verification numbers are compared with the standard verification numbers in the corresponding areas, if the normal verification signals are not stored, and the normal verification signals are generated, and if the normal verification signals are generated, and the normal data signals are not corresponding to the normal verification signals are generated;
Step S500, if the processor receives the data normal signal, no operation is performed, if the processor receives the data abnormal signal, the sector corresponding to the data block is marked as a sector to be detected, and meanwhile, the processor sends the data abnormal signal to the solid self-detection module;
Step S600, the solid state self-checking module detects the operation state of the solid state disk, obtains operation environment data of the solid state disk, compares the input voltage, the input current and the disk body temperature of the solid state disk with corresponding safe data intervals, generates an operation abnormal signal if any numerical value of the input voltage, the input current or the disk body temperature of the solid state disk does not belong to the corresponding safe data interval, calculates the operation state value of the solid state disk if the numerical value of the input voltage, the input current and the disk body temperature of the solid state disk belong to the corresponding safe data interval, compares the operation state value of the solid state disk with the operation state threshold, generates an operation abnormal signal if the operation state value of the solid state disk is smaller than or equal to the first operation state threshold or larger than the second operation state threshold, generates an operation normal signal if the operation state value of the solid state disk is larger than the first operation state threshold and smaller than the second operation state threshold, sends the operation abnormal signal or the operation normal signal to the backup processor, obtains a storage area where a sector to be detected is located if the processor receives the operation normal signal, sends the backup data to the storage area where the sector to be detected to the solid state disk is located, and sends the operation abnormal signal to the backup data to the storage area to the display terminal if the operation signal is received, and the abnormal operation signal is displayed if the abnormal data is displayed in the storage area is displayed by the storage area.
The preferred embodiments of the invention disclosed above are intended only to assist in the explanation of the invention. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. The invention is limited only by the claims and the full scope and equivalents thereof.
Claims (10)
1. The SSD internal data safety management system based on the disk array is characterized by comprising a hard disk reading module, a backup analysis module, a verification configuration module, a data verification module, a solid self-checking module, a display terminal and a processor;
The hard disk reading module is used for acquiring array distribution information of the solid state disk, sending the array distribution information of the solid state disk to the processor, and sending the array distribution information of the solid state disk to the backup analysis module and the verification configuration module by the processor;
The backup analysis module is used for analyzing the data backup condition of the solid state disk, analyzing the data backup condition to obtain the capacity surplus grade of the solid state disk, and sending the capacity surplus grade of the solid state disk to the processor by the processor, and sending the capacity surplus grade of the solid state disk to the verification configuration module by the processor; the verification configuration module is used for configuring a backup storage area and a verification area of the solid state disk;
When writing operation and reading operation are performed, the data verification module is used for verifying data when the solid state disk is written and read, a verification data normal signal or a data abnormal signal is sent to the processor, if the processor receives the data normal signal, no operation is performed, if the processor receives the data abnormal signal, a sector corresponding to the data block is marked as a sector to be detected, and meanwhile, the processor sends the data abnormal signal to the solid state self-detection module;
the solid state self-checking module is used for detecting the running state of the solid state disk, detecting and generating a running abnormal signal or sending the running abnormal signal to the processor, acquiring a backup storage area of a storage area where a sector to be checked is located if the processor receives the running normal signal, transmitting data blocks of the corresponding sector in the backup storage area to the sector of the storage area for data block replacement, and sending the running abnormal signal to the display terminal if the processor receives the running abnormal signal, wherein the display terminal is used for displaying the running abnormal signal of the solid state disk.
2. The disk array-based SSD internal data security management system of claim 1, wherein the array distribution information includes a number of stripes of the solid state disk, and a stripe depth and a stripe width of each stripe;
The solid state disk consists of storage areas, strips in the solid state disk consist of sectors in the same horizontal position in different storage areas, and the number and the capacity of each sector in the same strip are the same;
stripe depth is the data capacity of each sector in the same stripe;
the stripe width is the number of sectors in the same stripe.
3. The SSD internal data security management system of claim 2, wherein the backup analysis module analyzes the data in the SSD based on the disk array as follows:
Reading the number of strips, the strip depth and the strip width of the solid state disk;
calculating a user capacity value of the solid state disk;
then reading the logic capacity value of the solid state disk;
comparing the space utilization rate of the solid state disk by using the user capacity value;
and comparing the space utilization rate with a space utilization threshold value, and judging the capacity surplus grade of the solid state disk as a third capacity surplus grade, a second capacity surplus grade or a first capacity surplus grade.
4. The disk array-based SSD internal data security management system of claim 3, wherein a relative remaining capacity of the first capacity-rich level is lower than a relative remaining capacity of the second capacity-rich level, the relative remaining capacity of the second capacity-rich level being lower than the relative remaining capacity of the second capacity-rich level.
5. The SSD internal data security management system of claim 3, wherein the configuration process of the check configuration module is specifically as follows:
dividing the sector of the checking area according to the number of the strips of the solid state disk, wherein the sector of the checking area corresponds to the strip of the storage area one by one;
meanwhile, when the capacity surplus grade of the solid state disk is the first capacity surplus grade, the backup storage area of the corresponding storage area of the fixed hard disk is one;
When the capacity surplus grade of the solid state disk is the second capacity surplus grade, the backup storage areas of the corresponding storage areas of the fixed hard disk are divided into two parts;
And when the capacity surplus grade of the solid state disk is the third capacity surplus grade, the backup storage areas of the corresponding storage areas of the solid state disk are three.
6. The disk array-based SSD internal data security management system of claim 5, wherein the spare space capacity of the third capacity spare level is greater than the spare space capacity of the second capacity spare level, and wherein the spare space capacity of the second capacity spare level is greater than the spare space capacity of the first capacity spare level.
7. The SSD internal data security management system of claim 1, wherein the data verification module performs a verification process comprising:
When data writing operation is carried out, writing data are divided into a plurality of data blocks, and then the plurality of data blocks are written into sectors corresponding to different storage areas in the same strip in parallel;
acquiring written binary numbers of data blocks in sectors in each storage area; wherein, the data capacity of each data block in the same stripe is the same;
If the number of times of 1 occurrence in the data block after conversion into the binary system is an odd number, the numerical value of the written binary number of the data block is judged to be 1, and if the number of times of 1 occurrence in the data block after conversion into the binary system is an even number, the numerical value of the written binary number of the data block is judged to be 0;
Calculating standard check indication of each group of strips in the storage area;
then, standard verification readings of each group of strips in the storage area are transmitted to corresponding sectors of the verification area for storage;
when data reading operation is carried out, reading binary numbers of data blocks in sectors in different storage areas of the same strip;
calculating a read verification indicator for each set of stripes in the storage area;
comparing the read check indication with the standard check indication stored in the sector corresponding to the check area;
If the reading check indication is inconsistent with the standard check indication, generating a data abnormal signal;
if the read check indication is consistent with the standard check indication, a data normal signal is generated.
8. The SSD internal data security management system of claim 6, wherein the solid state self-test module detects:
Acquiring operation environment data of the solid state disk, wherein the operation environment data comprises input voltage, input current and disk body temperature of the solid state disk;
Respectively comparing the input voltage, input current and disk body temperature of the solid state disk with corresponding safe data intervals;
if the value of any one of the input voltage, the input current or the disk body temperature of the solid state disk does not belong to the corresponding safe data interval, generating an operation abnormal signal;
If the values of the input voltage, the input current and the disk body temperature of the solid state disk all belong to the corresponding safe data interval, calculating the running state value of the solid state disk;
Comparing the operation state value of the solid state disk with the operation state threshold, generating an operation abnormal signal if the operation state value of the solid state disk is smaller than or equal to the first operation state threshold or larger than the second operation state threshold, and generating an operation normal signal if the operation state value of the solid state disk is larger than the first operation state threshold and smaller than the second operation state threshold.
9. The disk array-based SSD internal data security management system of claim 8, wherein the first operational state threshold and the second operational state threshold are each greater than zero in value, the first operational state threshold being less than the second operational state threshold.
10. The method for managing data security in an SSD based on a disk array according to any one of claims 1 to 9, comprising the steps of:
Step S100, a hard disk reading module acquires array distribution information of a solid state disk, and the array distribution information is sent to a backup analysis module and a verification configuration module through a processor;
Step S200, the backup analysis module analyzes the data backup condition of the solid state disk, analyzes the data backup condition to obtain the capacity surplus grade of the solid state disk, and sends the capacity surplus grade to the verification configuration module through the processor;
Step S300, a verification configuration module configures a backup storage area and a verification area of the solid state disk, sectors of the verification area are divided according to the number of strips of the solid state disk, and corresponding numbers of backup storage areas are set for the storage area of the fixed hard disk according to the capacity surplus grade;
Step S400, when writing operation and reading operation are performed, the data verification module verifies the data written and read by the solid state disk, and a data abnormal signal or a data normal signal generated by verification is sent to the processor;
Step S500, if the processor receives the data normal signal, no operation is performed, if the processor receives the data abnormal signal, the sector corresponding to the data block is marked as a sector to be detected, and the data abnormal signal is sent to the solid self-detection module;
And step S600, the solid state self-checking module detects the running state of the solid state disk, detects and generates a running abnormal signal or a running normal signal and sends the running abnormal signal to the processor, if the running normal signal is generated, the data blocks of the corresponding sectors in the backup storage area are transmitted to the sectors of the storage area for data block replacement, and if the running abnormal signal is generated, the running abnormal signal is sent to the display terminal for display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410841240.8A CN118398062B (en) | 2024-06-27 | 2024-06-27 | SSD internal data security management system and method based on disk array |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410841240.8A CN118398062B (en) | 2024-06-27 | 2024-06-27 | SSD internal data security management system and method based on disk array |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118398062A true CN118398062A (en) | 2024-07-26 |
CN118398062B CN118398062B (en) | 2024-10-08 |
Family
ID=92006115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410841240.8A Active CN118398062B (en) | 2024-06-27 | 2024-06-27 | SSD internal data security management system and method based on disk array |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118398062B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838082A (en) * | 2005-03-25 | 2006-09-27 | 鸿富锦精密工业(深圳)有限公司 | Computer hard disk data protection method |
JP2008217076A (en) * | 2007-02-28 | 2008-09-18 | Nec Corp | Disk array device, disk array controller, and program |
CN105893182A (en) * | 2016-03-30 | 2016-08-24 | 苏州美天网络科技有限公司 | Backup method for data in hard disk |
US10417094B1 (en) * | 2016-07-13 | 2019-09-17 | Peer Fusion, Inc. | Hyper storage cluster |
WO2020172821A1 (en) * | 2019-02-27 | 2020-09-03 | 华为技术有限公司 | Write amplification optimization method for solid state drivers |
CN115933986A (en) * | 2022-12-29 | 2023-04-07 | 量子芯云(北京)微电子科技有限公司 | Computing storage array with high redundancy |
CN117519585A (en) * | 2023-11-01 | 2024-02-06 | 超聚变数字技术有限公司 | Hard disk management method, RAID card and server |
CN117542403A (en) * | 2024-01-09 | 2024-02-09 | 深圳市领德创科技有限公司 | Solid state disk operation management system and method based on temperature control technology |
-
2024
- 2024-06-27 CN CN202410841240.8A patent/CN118398062B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838082A (en) * | 2005-03-25 | 2006-09-27 | 鸿富锦精密工业(深圳)有限公司 | Computer hard disk data protection method |
JP2008217076A (en) * | 2007-02-28 | 2008-09-18 | Nec Corp | Disk array device, disk array controller, and program |
CN105893182A (en) * | 2016-03-30 | 2016-08-24 | 苏州美天网络科技有限公司 | Backup method for data in hard disk |
US10417094B1 (en) * | 2016-07-13 | 2019-09-17 | Peer Fusion, Inc. | Hyper storage cluster |
WO2020172821A1 (en) * | 2019-02-27 | 2020-09-03 | 华为技术有限公司 | Write amplification optimization method for solid state drivers |
CN115933986A (en) * | 2022-12-29 | 2023-04-07 | 量子芯云(北京)微电子科技有限公司 | Computing storage array with high redundancy |
CN117519585A (en) * | 2023-11-01 | 2024-02-06 | 超聚变数字技术有限公司 | Hard disk management method, RAID card and server |
CN117542403A (en) * | 2024-01-09 | 2024-02-09 | 深圳市领德创科技有限公司 | Solid state disk operation management system and method based on temperature control technology |
Also Published As
Publication number | Publication date |
---|---|
CN118398062B (en) | 2024-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468479B (en) | A kind of disk array RAID bad block processing methods and device | |
CN103003799B (en) | Method and system for verifying memory device integrity | |
US7917810B2 (en) | Method for detecting problematic disk drives and disk channels in a RAID memory system based on command processing latency | |
CN103309775B (en) | A kind of fault-tolerance approach of high-reliability disk array | |
CN111104293A (en) | Method, apparatus and computer program product for supporting disk failure prediction | |
CN111081309B (en) | Solid state disk test system | |
CN111599402A (en) | Single event effect test analysis method, device and test system for memory | |
CN101526885A (en) | Method for improving capability of redundant array of independent disk and controller therefor | |
US20100007978A1 (en) | Detection of defective tape drive by aggregating read error statistics | |
CN113568806A (en) | SAS card link state monitoring method, system, device and readable storage medium | |
CN116665758B (en) | Hard disk data testing method, device, system and medium | |
CN118398062B (en) | SSD internal data security management system and method based on disk array | |
CN103049345B (en) | Based on Disk State transition detection method and the device of asynchronous mechanism | |
CN112133357B (en) | eMMC test method and device | |
CN116400249A (en) | Detection method and device for energy storage battery | |
CN106844166A (en) | A kind of data processing method and device | |
CN108630285B (en) | A method and device for testing solid state hard disks | |
CN112199258A (en) | Method and device for monitoring magnetic disk, electronic equipment and medium | |
US6985971B2 (en) | Testing method of array configuration for multiple disk-array system | |
CN107807862A (en) | Detect the method, apparatus and server of hard disk failure point | |
US20040210712A1 (en) | Disk array unit and its method for writing data | |
CN109542695B (en) | Method and device for determining performance of logic storage unit | |
CN104461383B (en) | The implementation method and device of a kind of RAID | |
US20040153618A1 (en) | Disk drive managing method for multiple disk-array system | |
CN104731672B (en) | The method and apparatus of data storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |