Personal data center and data storage and repair method
By combining hard disk and optical disk storage in the personal data center and using verification disks for data recovery, the problem of data loss caused by hard disk failure is solved, safe and reliable storage and privacy of data are achieved, and system complexity and cost are reduced. .
Patent Information
- Application Number
- CN202010323334.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-04-22
AI Technical Summary
Existing network-attached storage based on hard disks has shortcomings in long-term data storage and security. In particular, data loss cannot be effectively avoided when a hard disk fails, and professional storage solutions increase system complexity and cost.
Using a personal data center, combining hard disks and optical disks as storage media, the controller writes data to the hard disk and optical disks at the same time, and uses verification disks for data recovery to achieve safe and reliable storage and repair of data.
It improves the long-term storage security and reliability of data, reduces the risk of data loss, enhances data privacy, and improves data recovery capabilities through redundancy, avoiding increases in system complexity and cost.
Smart Images

Figure CN113535070B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data storage, and in particular to a personal data center and a data storage repair method. Background Art
[0002] The usual hard disk-based network attached storage meets the requirements of availability and ease of use to a large extent, but due to the limitation of hard disk service life, it cannot solve the problem of long-term data storage. Large-scale systems often build multiple hard disks into a RAID system, so that when an individual hard disk fails, the system data will not be lost immediately, giving users the opportunity to replace the damaged hard disk and restore the data on it. However, this only reduces the risk of data loss, but still cannot effectively avoid the risk of data loss. Especially when the number of damaged hard disks exceeds the redundancy of the RAID system, all data will be lost. Specifically, if more than one hard disk is damaged in the RAID5 system, or more than two hard disks are damaged in the RAID6 system, data will be lost. Therefore, in professional storage solutions, data backup solutions must be set up based on the entire RAID system. For personal data storage, these practices will directly lead to a significant increase in costs. At the same time, the use of professional data storage and backup solutions increases the complexity of the system and also hurts the ease of use of the system. Traditional network attached storage also has hidden dangers in data security, because the data on the hard disk-based storage system can be changed and deleted. Summary of the invention
[0003] An object of the first aspect of the present invention is to provide a safe and reliable personal data center.
[0004] Another object of the present invention is to facilitate the storage of data.
[0005] The second aspect of the present invention aims to provide a safe and reliable data storage and repair method.
[0006] In particular, the present invention provides a personal data center, including: a controller and multiple hard disks and multiple optical drives for loading and reading and writing optical disks, all of which are communicatively connected to the controller, and the controller is provided with an external interface for connecting to external devices.
[0007] Optionally, the external interface includes one or more of a wireless network port, a wired network port, a USB interface, a flash memory card interface, and a Bluetooth interface.
[0008] In particular, the present invention also provides a data storage and repair method, which is used in the above-mentioned personal data center, and the method comprises:
[0009] When the controller receives the data transmitted by the external device, it writes the data into the hard disk and the blank optical disk loaded into the optical drive at the same time, so as to temporarily store the data on the hard disk and make the blank optical disk become a data optical disk.
[0010] Optionally, the data storage repair method further includes:
[0011] After writing data on each of M blank discs, write the following verification data on the next blank disc to form a verification disc:
[0012]
[0013] Where N is the number of blank discs required to write all the data. is the exclusive OR operator, 1≤k≤K and k is an integer, Mod is the remainder function, is the verification data on the kth verification disc, D i is the data on the i-th data disc.
[0014] Optionally, the data storage repair method further includes:
[0015] When the verification data of any of the verification optical discs is written completely and any of the corresponding data optical discs in a group of data optical discs has data loss, data recovery is performed using the following formula:
[0016]
[0017] Among them, D X A data disc with data loss.
[0018] Optionally, the data storage repair method further includes:
[0019] When the verification data of any of the verification discs is written and multiple data discs in the corresponding group of data discs have data defects and all the data defects are not at the same binary data position, the data of each of the data discs with data defects is restored by reading the binary data of the corresponding positions of the remaining data discs without data defects and the verification disc one by one and performing an XOR operation.
[0020] Optionally, each group of data optical discs includes M data optical discs, and any one of the M data optical discs includes an independent data block consisting of Q binary data, which is expressed as:
[0021]
[0022] D Pis the verification data of the verification optical disc corresponding to the M data optical discs, including a verification data block composed of Q binary data, expressed as:
[0023]
[0024] The data array composed of all the independent data of the M data discs and the verification data of the verification disc is:
[0025]
[0026] The data in the same row of the data array represents binary data at the same position of different optical disks, and the binary data in the same row of the data array is only allowed to be defective or erroneous at one position;
[0027] Optionally, each row in the data array allows data at any position to be missing or erroneous;
[0028] Optionally, in the same group of data optical discs, when data is missing on any one or more of the M data optical discs and the verification optical disc, an XOR operation is performed on the missing data according to binary data at the same binary data position of the remaining data optical discs and the verification optical disc, thereby restoring the missing data;
[0029] Optionally, in the same set of data optical discs, if the Yth bit of binary data of the Xth data optical disc is missing or erroneous, the Yth bit of binary data of the Xth data optical disc is restored according to the following formula:
[0030]
[0031] Among them, 1≤X≤M, 1≤Y≤Q.
[0032] Optionally, the data storage repair method further includes:
[0033] When the verification data of any of the verification optical discs has not been written completely and any of the corresponding data optical discs in a group of data optical discs has data loss, data on the data optical disc with data loss is recovered using the data temporarily stored in the hard disk.
[0034] Optionally, the number of the verification optical discs is determined according to reliability requirements, so that data can be completely restored when data loss occurs on more data optical discs by placing higher redundancy.
[0035] The personal data center of the present invention is actually a magneto-optical hybrid network attached storage system. In order to meet the security and reliability of data on external devices, that is, immutability and long-life storage, the present invention introduces optical disks as a medium for long-term safe storage on the basis of hard disk-based network attached storage. The file data stored in the hard disk is also burned to the optical disk medium at the same time through the optical drive connected to the controller. As a complement and extension of the hard disk, the optical disk solves the problem of long-term data storage. When a CD is full, the next blank CD can be put in to continue burning. Therefore, the data stored in this form can be expanded arbitrarily. The total amount of data stored on the CD can exceed the capacity of the hard disk. Therefore, the personal data center of the present invention can better protect data.
[0036] Furthermore, since data communication within the personal data center does not need to pass through a public network, the privacy of the data can be improved and the risk of eavesdropping can be reduced.
[0037] Furthermore, the present invention also provides a data storage and repair method, which can recover damaged data in a certain form, thereby better protecting the data and improving data security.
[0038] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
[0040] Figure 1 is a connection diagram of a personal data center according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Figure 1 FIG. 1 is a schematic diagram of a connection of a personal data center according to an embodiment of the present invention. Figure 1 As shown, in one embodiment, the personal data center of the present invention includes a controller 10 and multiple hard disks 30 that are all connected to the controller 10 for communication and multiple optical drives 20 for loading and reading and writing optical disks. The controller 10 is provided with an external interface 11 for connecting external devices. Optionally, the external interface 11 includes one or more of a wireless network port, a wired network port, a USB interface, a flash memory card interface, and a Bluetooth interface. Optionally, the hard disk 30 can be a mechanical hard disk or a solid-state semiconductor hard disk. Optionally, the optical disk in the optical drive 20 can be a large-capacity Blu-ray disc.
[0042] The personal data center of this embodiment is actually a magneto-optical hybrid network attached storage system. The personal data center is provided with an external interface 11, which can be a wired or wireless local area network interface, and communicates data with external devices such as mobile phones, tablet computers or personal computers through the external interface 11. In order to meet the security and reliability of data on external devices, that is, immutability and long-life storage, the present invention introduces a CD as a medium for long-term safe storage on the basis of the network attachment storage based on the hard disk 30. The file data stored in the hard disk 30 is also burned to the CD medium at the same time through the optical drive 20 connected to the controller 10. The CD, as a complement and extension of the hard disk 30, solves the problem of long-term data storage. When a CD is full, the next blank CD can be put in to continue burning. Therefore, the data stored in this form can be expanded arbitrarily. The total amount of data stored on the CD can exceed the capacity of the hard disk 30. Therefore, the personal data center of the present invention can better protect data.
[0043] Furthermore, since data communication within the personal data center does not need to pass through a public network, the privacy of the data can be improved and the risk of eavesdropping can be reduced.
[0044] It should be noted that the management of optical discs can be automatic, that is, managed by an optical disc library that can automatically retrieve optical discs; or it can be manual, that is, manually inserting the required optical discs as needed.
[0045] The data on the optical disk can be restored by certain methods, thereby further enhancing the security of the data. The following embodiments specifically provide several data storage and repair methods.
[0046] The present invention also provides a data storage and repair method for the above personal data center. In one embodiment, the method includes:
[0047] When the controller 10 receives data transmitted by the external device, it writes the data into the hard disk 30 and the blank optical disk loaded into the optical drive 20 at the same time, so as to temporarily store the data on the hard disk 30 and make the blank optical disk become a data optical disk.
[0048] In this embodiment, data is backed up by adding an optical disk, which serves as a complement and extension of the hard disk 30 and solves the problem of long-term data storage, thereby better protecting data.
[0049] In another embodiment, the data storage repair method further includes:
[0050] After writing data on each of M blank optical discs, the verification data in formula (1) is written on the next blank optical disc to form a verification optical disc:
[0051]
[0052] Where N is the number of blank discs required to write all the data. is the exclusive OR operator, 1≤k≤K and k is an integer, Mod is the remainder function, is the verification data on the kth verification disc, D i is the data on the i-th data disc.
[0053] It should be noted that data is stored in the form of binary data on the optical disc, that is, the data on a disc is a string of binary data, and the data on the verification disc can be obtained by performing an XOR operation on the data at the same binary data position on the data disc.
[0054] In some embodiments of the present invention, the data storage repair method further includes:
[0055] When the verification data of any verification disc is written and any data disc in the corresponding set of data discs has data loss, data recovery is performed using the following formula (2):
[0056]
[0057] Among them, D X A data disc with data loss.
[0058] That is to recover the damaged data through reverse calculation.
[0059] Since the data inversion (XOR operation) needs to satisfy that only one data in the same dimension can be damaged, the damaged location of the data needs to be limited, that is, not all forms of data loss can be restored.
[0060] In a further embodiment, the data storage repair method further includes:
[0061] When the verification data of any verification disc is written and multiple data discs in the corresponding group of data discs have data defects and all the data defects are not at the same binary data position, the data of each data disc with data defects is restored by reading the binary data of the corresponding positions of the remaining data discs without data defects and the verification disc one by one and performing an XOR operation.
[0062] Specifically, it is assumed that each group of data optical discs includes M data optical discs, and any data optical disc among the M data optical discs includes an independent data block composed of Q binary data, which is expressed as:
[0063]
[0064] D Pis the verification data of the verification optical disc corresponding to the M data optical discs, including a verification data block composed of Q binary data, expressed as:
[0065]
[0066] The data array composed of all the independent data of the M data discs and the verification data of the verification disc is:
[0067]
[0068] The data in the same row in the data array represent binary data at the same position on different optical discs. The binary data in the same row in the data array is only allowed to be defective or erroneous at one position.
[0069] Furthermore, each row in the data array allows data at any position to be missing or erroneous, that is, when multiple points of data are missing, the line connecting the points in the above data matrix cannot be a straight line located in the same row.
[0070] Optionally, in the same set of data discs, when data is missing on any one or more of the M data discs and the verification disc, an XOR operation is performed on the missing data according to the binary data at the same binary data position of the remaining data discs and the verification disc, thereby recovering the missing data. When data on the verification disc is erroneous, it can also be recovered through an XOR operation, of course, the position where the data error occurs still needs to meet the above requirements.
[0071] Specifically, in the same set of data discs, if the Yth bit of binary data of the Xth data disc is missing or erroneous, the Yth bit of binary data of the Xth data disc is restored according to the following formula (3):
[0072]
[0073] Among them, 1≤X≤M, 1≤Y≤Q.
[0074] In another embodiment, the data storage repair method further includes:
[0075] When the verification data of any verification optical disc is not written completely and any data optical disc in the corresponding group of data optical discs has data loss, data of the data optical disc with data loss is recovered by using the data temporarily stored in the hard disk 30 .
[0076] That is to say, when the data on the verification disc is not fully written and the data on the data disc cannot be recovered, the data temporarily stored in the hard disk 30 can be used to recover the data. The recovery method can refer to the above method of performing XOR operation. Here, the medium for extracting data is changed from the verification disc to the hard disk 30. The recovery process is consistent with the principle of the previous embodiment. Of course, if both the verification disc and the data disc have data loss, if the data on the hard disk 30 can be used to recover the data, the above XOR operation method can also be used to recover the data.
[0077] In other embodiments of the present invention, the number of check discs is determined according to reliability requirements, so that data can be fully restored when more data discs are damaged by placing higher redundancy. That is to say, when the number of check discs is greater, there are more bases for data recovery, which also makes the data storage more recoverable, which is conducive to improving data security.
[0078] At this point, those skilled in the art should recognize that, although multiple exemplary embodiments of the present invention have been shown and described in detail herein, many other variations or modifications that conform to the principles of the present invention can still be directly determined or derived based on the content disclosed in the present invention without departing from the spirit and scope of the present invention. Therefore, the scope of the present invention should be understood and recognized as covering all these other variations or modifications.
Claims
1. A data storage and repair method for a personal data center, It is characterized in that include: When the controller receives data transmitted by the external device, it writes the data to the hard disk and the blank optical disk loaded into the optical drive at the same time, so as to temporarily store the data on the hard disk and make the blank optical disk become a data optical disk; Also includes: After writing data on each of M blank discs, write the following verification data on the next blank disc to form a verification disc: Where N is the number of blank discs required to write all the data. is the exclusive OR operator, 1≤k≤K and k is an integer, Mod is the remainder function, is the verification data on the kth verification disc, D i is the data on the i-th data disc; Also includes: When the verification data of any of the verification optical discs is written completely and any of the corresponding data optical discs in a group of data optical discs has data loss, data recovery is performed using the following formula: Among them, D X A data disc with data loss.
2. The data storage repair method according to claim 1, It is characterized in that Also includes: When the verification data of any of the verification discs is written and multiple data discs in the corresponding group of data discs have data defects and all the data defects are not at the same binary data position, the data of each of the data discs with data defects is restored by reading the binary data of the corresponding positions of the remaining data discs without data defects and the verification disc one by one and performing an XOR operation.
3. The data storage repair method according to claim 2, It is characterized in that Each group of data optical discs includes M data optical discs, and any one of the M data optical discs includes an independent data block consisting of Q binary data, which is expressed as: D P is the verification data of the verification optical disc corresponding to the M data optical discs, including a verification data block composed of Q binary data, expressed as: The data array composed of all the independent data of the M data discs and the verification data of the verification disc is: The data in the same row in the data array represent binary data at the same position on different optical disks, and the binary data in the same row in the data array is only allowed to be defective or erroneous at one position.
4. The data storage repair method according to claim 3, It is characterized in that Each row in the data array is allowed to have data at any position defective or erroneous.
5. The data storage repair method according to claim 3, It is characterized in that In the same group of data discs, when data is missing on any one or more of the M data discs and the verification discs, an XOR operation is performed on the missing data according to the binary data at the same binary data position of the remaining data discs and the verification disc, thereby restoring the missing data.
6. The data storage repair method according to claim 3, It is characterized in that In the same set of data discs, if the Yth bit of binary data of the Xth data disc is missing or erroneous, the Yth bit of binary data of the Xth data disc is restored according to the following formula: Among them, 1≤X≤M, 1≤Y≤Q.
7. The data storage repair method according to claim 1, It is characterized in that Also includes: When the verification data of any of the verification optical discs has not been written completely and any of the corresponding data optical discs in a group of data optical discs has data loss, data on the data optical disc with data loss is recovered using the data temporarily stored in the hard disk.
8. The data storage repair method according to any one of claims 1 to 2, It is characterized in that The number of the verification optical disks is determined according to reliability requirements, so that data can be completely restored when data loss occurs on more data optical disks by placing higher redundancy.
9. The data storage repair method according to claim 1, It is characterized in that The personal data center includes: a controller, a plurality of hard disks and a plurality of optical drives for loading and reading and writing optical disks, all of which are in communication connection with the controller. The controller is provided with an external interface for connecting external devices.
10. The data storage repair method according to claim 9, It is characterized in that The external interface includes one or more of a wireless network port, a wired network port, a USB port, a flash memory card port, and a Bluetooth port.
