CN102841863A - Method for backuping data through adopting dual-disk read-write operation - Google Patents
Method for backuping data through adopting dual-disk read-write operation Download PDFInfo
- Publication number
- CN102841863A CN102841863A CN2012102374895A CN201210237489A CN102841863A CN 102841863 A CN102841863 A CN 102841863A CN 2012102374895 A CN2012102374895 A CN 2012102374895A CN 201210237489 A CN201210237489 A CN 201210237489A CN 102841863 A CN102841863 A CN 102841863A
- Authority
- CN
- China
- Prior art keywords
- districts
- master
- main
- district
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000005516 engineering process Methods 0.000 claims description 6
- 238000010977 unit operation Methods 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 abstract 2
- 230000015556 catabolic process Effects 0.000 abstract 1
- 238000012423 maintenance Methods 0.000 abstract 1
- 238000005192 partition Methods 0.000 abstract 1
- 238000011084 recovery Methods 0.000 description 3
- 241000700605 Viruses Species 0.000 description 2
- 230000009545 invasion Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of methods for processing electrical and digital data which are accessed, addressed or distributed in memory systems or architectures, and in particular relates to a method for backuping data through adopting dual-disk read-write operation. The method for backuping data through adopting dual-disk read-write operation comprises hard disk arrangement, and is characterized by further comprising the following steps of a, hard disk partition; b, master disk initiation; and c, standby disk initiation. The method has the advantages of high safety, strong reliability, quick operation speed, shortened system breakdown time and convenience in maintenance.
Description
Technical field
The present invention relates to the electric digital data processing method field of access, addressing or distribution in memory system or architecture, be specially a kind of data redundant method that adopts two hard disk read-write operations.
Background technology
Along with the arrival of information age, data become explosive growth, and 80% is unstructured data in these data, and along with computing machine and network application popularize day by day and deeply, network becomes the best medium of depositing these data.Adopt the network store data, need be on the system disk of network installation system software and do corresponding user's configuration, therefore, guarantee that the safety of data in the system disk and fast quick-recovery are of great importance to the high availability that promotes the network storage self.Safety practice to system disk mainly adopts this two kinds of schemes at present, and scheme one is that system disk is done disk mirroring, and disk mirroring is claimed RAID 1 again; Wherein RAID is the abbreviation of Redundant Array of Independent Disk, means raid-array, and disk mirroring passes through the data image of a disk to another disk; Can guarantee that wherein a block system dish hardware fault can not cause damage to system, can have very high data redundancy ability in reliability that does not influence the system that guarantees to greatest extent under the performance situation and recoverability; But the disk utilization factor is 50%; So cost is high, 3 and also this scheme can not guarantee the fault of software view, like file by the mistake deletion; File system corruption suffers computer virus invasion and attack etc.Scheme two is that timing is backuped to system configuration, but this kind scheme needs execution manually, and very big contingency is arranged, and breaks down like system, and the data after Last Backup all can be lost so; If system/firmware damages in addition; This kind scheme also is difficult to recover; Recovery point objectives (refer to take place the criterion of acceptable amount of data lost under the situation of calamity, also claim RPO) and target release time (referring to that disaster takes place by the back used time of business recovery operation, also claims RTO) are all very big.
Summary of the invention
In order to overcome the defective of prior art, the computer data backup scheme of a kind of easy to operate, high security and high reliability is provided, the invention discloses a kind of data redundant method that adopts two hard disk read-write operations.
The present invention reaches goal of the invention through following technical scheme:
A kind of data redundant method that adopts two hard disk read-write operations comprises hard disk is set that hard disk has two; Wherein a hard disk is as master; Another piece hard disk is as being equipped with dish, master, is equipped with dish and all passes through signal wire with internal storage and be connected with central processing unit, it is characterized in that: also comprise the steps:
A. fdisk: the space of master is divided into three subregions, and three subregions of master are designated as a main district, main two districts and main three districts respectively, and the ratio of the storage space of each subregion is: a main district: master two districts: master three districts=1: 1: 2; The space that is equipped with dish is divided into three subregions, and three subregions that are equipped with dish are designated as fully a district respectively, are equipped with two districts and are equipped with three districts, and the ratio of the storage space of each subregion is: be equipped with a district: two districts fully: three districts=1: 1: 2 fully;
A main district and be equipped with a district and all be used for the deposit operation system, main two districts and fully two districts all be used for the store data management software, master three districts and fully three districts all be used to deposit user profile;
B. master starts: central processing unit powers up; If master normally then starts from master; During startup; Central processing unit is loaded on built-in storage and execution with the boot files of operating system from a main district; When carrying out boot files; Central processing unit distributes a decompress(ion) space in built-in storage, and data management software is all deposited to the decompress(ion) space in the system file that will lead operating system in the district and main two districts;
Main three districts are mounted under the system file catalogue of operating system in the main district, the user profile in main three districts is all linked under the system file catalogue in a main district; Be mounted under the system file backup directory of leading operating system in the district being equipped with three districts;
Central controller is through the file change situation under the watchdog routine supervisory system file directory; If the file under the system file catalogue changes; Then with the variation of file synchronously to the system file backup directory, file content and the file content under the system file catalogue under the system file backup directory are consistent;
C. be equipped with disk startup: when master broke down, central controller switched to from being equipped with disk startup, and the central processing unit operation is stored in operating system, data management software and the user profile that is equipped with in the dish.
The data redundant method of the two hard disk read-write operations of described employing; It is characterized in that: master and hard disk are all selected the electronic hard disc of Serial Advanced Technology Attachment interface for use, and to the power supply of master power supply, to the power supply that is equipped with the dish power supply respectively and independent to the power supply of central processing unit power supply.
When the present invention uses; When the master state just often; System starts from master, and system coils inter-sync fully from trend and is stored in operating system, data management software and user profile on the master during startup, in case master breaks down; Since be equipped with on the dish information all the time with the master normal condition under information keep synchronously, so system can be easily from being equipped with disk startup.
The present invention has realized the fail of two hard disks; Can promote security, the reliabilty and availability of network store system greatly; Avoid or reduce the damage that various hardware, software fault cause the network store system management system; Avoid user configuration information to lose, reduce the downtime of system, reduce the complicacy of safeguarding.
The invention has the beneficial effects as follows:
1. all in internal memory, travelling speed is faster for the total system catalogue;
2. when system caused file system to be destroyed because of situation such as computer virus invasion and attack, operator's maloperations, if main three districts or not damage of three districts fully, restarting system can recover normally, has increased the robustness of system;
3. when whole master breaks down, as long as restart system and can recover from being equipped with disk startup, security and reliability are higher.
Embodiment
Below further specify the present invention through specific embodiment.
Embodiment 1
A kind of data redundant method that adopts two hard disk read-write operations comprises the steps:
1. hard disk is set: hard disk has two, and it (is the DOM dish that hard disk is all selected the electronic hard disc of independently-powered Serial Advanced Technology Attachment (being Serial Advanced Technology Attachment, abbreviate SAT A) interface for use; Claim the DOM electronic hard disc again, DOM is the abbreviation of Disk On Module, and the DOM electronic hard disc adopts Flash On Disk technology; Be possess high-effect; The rapid memory body Storage Media element of high stability), wherein a hard disk is as master, and another piece hard disk is as being equipped with dish; Master, be equipped with dish and all pass through signal wire with internal storage and be connected with central processing unit, present embodiment is selected the operating system of linux as the network storage for use.
2. fdisk: the space of master is divided into three subregions, and three subregions of master are designated as a main district, main two districts and main three districts respectively, and the ratio of the storage space of each subregion is: a main district: master two districts: master three districts=1: 1: 2; The space that is equipped with dish is divided into three subregions, and three subregions that are equipped with dish are designated as fully a district respectively, are equipped with two districts and are equipped with three districts, and the ratio of the storage space of each subregion is: be equipped with a district: two districts fully: three districts=1: 1: 2 fully;
A main district and be equipped with a district and all be used for the deposit operation system, main two districts and fully two districts all be used for the store data management software, master three districts and fully three districts all be used to deposit user profile;
3. master starts: central processing unit powers up; If master normally then starts from master; During startup; Central processing unit is with the boot files such as the vmlinuz of operating system; Initrd; Linuxrc etc. are loaded on built-in storage from a main district and carry out; When carrying out boot files linuxrc; Central processing unit distributes a decompress(ion) space that is at least 700MB in built-in storage; The catalogue in decompress(ion) space is called/dev/ram; And in the system file that will lead operating system in the district and main two districts data management software all decompress(ion) deposit to decompress(ion) space/dev/ram, general/dev/ram is arranged to the system root directory attribute then;
Main three districts are mounted under the system file catalogue/sysvol of operating system in the main district, the user profile in main three districts is all linked under the system file catalogue/sysvol in a main district; Be mounted under the system file backup directory/sysvol_bak that leads operating system in the district being equipped with three districts;
Central controller is through the file change situation under watchdog routine supervisory system file directory/sysvol; If the file under system file catalogue/sysvol changes; Then with the variation of file synchronously to system file backup directory/sysvol_bak, file content and the file content under system file catalogue/sysvol under system file backup directory/sysvol_bak are consistent;
4. be equipped with disk startup: when master broke down, central controller switched to from being equipped with disk startup,
2. master starts: central processing unit powers up; If master normally then starts from master; During startup; Central processing unit is loaded on built-in storage and execution with the boot files of operating system from a main district; When carrying out boot files; Central processing unit distributes a decompress(ion) space in built-in storage, and data management software is all deposited to the decompress(ion) space in the system file that will lead operating system in the district and main two districts;
3. under the normal condition; System is from main DOM disk startup; Behind the system starting process; Earlier from the p1 subregion, vmlinuz, initrd are loaded into internal memory; In the linuxrc implementation from space/dev/ram of internal memory application 700MB; Then the management software in system file in the p1 subregion and the p2 subregion is unziped to/dev/ram, general/dev/ram is provided with system root directory then;
Main three districts are mounted under the system file catalogue of operating system in the main district, the user profile in main three districts is all linked under the system file catalogue in a main district; Be mounted under the system file backup directory of leading operating system in the district being equipped with three districts;
With the p3 subregion as be mounted to/the sysvol catalogue under, the position of all configuration files is connected to/the sysvol catalogue under;
5. the p3 subregion that will coil fully is mounted under system/sysvol_bak catalogue;
Central controller is through the file change situation under the watchdog routine supervisory system file directory; If the file under the system file catalogue changes; Then with the variation of file synchronously to the system file backup directory, file content and the file content under the system file catalogue under the system file backup directory are consistent;
6. start the file change under the watchdog routine monitoring/sysvol catalogue, if change then the file synchronization that changes is arrived/the sysvol_bak catalogue under;
3. be equipped with disk startup: when master broke down, central controller switched to from being equipped with disk startup, and the central processing unit operation is stored in operating system, data management software and the user profile that is equipped with in the dish.
When present embodiment uses; When the master state just often; System starts from master, and system coils inter-sync fully from trend and is stored in operating system, data management software and user profile on the master during startup, in case master breaks down; Since be equipped with on the dish information all the time with the master normal condition under information keep synchronously, so system can be easily from being equipped with disk startup.
Claims (2)
1. data redundant method that adopts two hard disk read-write operations; Comprise hard disk is set; Hard disk has two, and wherein a hard disk is as master, and another piece hard disk is as being equipped with dish; Master, be equipped with dish and all pass through signal wire with internal storage and be connected, it is characterized in that: also comprise the steps: with central processing unit
A. fdisk: the space of master is divided into three subregions, and three subregions of master are designated as a main district, main two districts and main three districts respectively, and the ratio of the storage space of each subregion is: a main district: master two districts: master three districts=1: 1: 2; The space that is equipped with dish is divided into three subregions, and three subregions that are equipped with dish are designated as fully a district respectively, are equipped with two districts and are equipped with three districts, and the ratio of the storage space of each subregion is: be equipped with a district: two districts fully: three districts=1: 1: 2 fully;
A main district and be equipped with a district and all be used for the deposit operation system, main two districts and fully two districts all be used for the store data management software, master three districts and fully three districts all be used to deposit user profile;
B. master starts: central processing unit powers up; If master normally then starts from master; During startup; Central processing unit is loaded on built-in storage and execution with the boot files of operating system from a main district; When carrying out boot files; Central processing unit distributes a decompress(ion) space in built-in storage, and data management software is all deposited to the decompress(ion) space in the system file that will lead operating system in the district and main two districts;
Main three districts are mounted under the system file catalogue of operating system in the main district, the user profile in main three districts is all linked under the system file catalogue in a main district; Be mounted under the system file backup directory of leading operating system in the district being equipped with three districts;
Central controller is through the file change situation under the watchdog routine supervisory system file directory; If the file under the system file catalogue changes; Then with the variation of file synchronously to the system file backup directory, file content and the file content under the system file catalogue under the system file backup directory are consistent;
C. be equipped with disk startup: when master broke down, central controller switched to from being equipped with disk startup, and the central processing unit operation is stored in operating system, data management software and the user profile that is equipped with in the dish.
2. the data redundant method of the two hard disk read-write operations of employing as claimed in claim 1; It is characterized in that: master and hard disk are all selected the electronic hard disc of Serial Advanced Technology Attachment interface for use, and to the power supply of master power supply, to the power supply that is equipped with the dish power supply respectively and independent to the power supply of central processing unit power supply.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2012102374895A CN102841863A (en) | 2012-07-10 | 2012-07-10 | Method for backuping data through adopting dual-disk read-write operation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2012102374895A CN102841863A (en) | 2012-07-10 | 2012-07-10 | Method for backuping data through adopting dual-disk read-write operation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102841863A true CN102841863A (en) | 2012-12-26 |
Family
ID=47369246
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2012102374895A Pending CN102841863A (en) | 2012-07-10 | 2012-07-10 | Method for backuping data through adopting dual-disk read-write operation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102841863A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104156286A (en) * | 2014-08-22 | 2014-11-19 | 福建星网视易信息系统有限公司 | System disk switching method and device for linux operating system |
| CN105138283A (en) * | 2015-08-11 | 2015-12-09 | 北京百度网讯科技有限公司 | Computer disk and data management method and apparatus used for computer disk |
| WO2017097233A1 (en) * | 2015-12-11 | 2017-06-15 | 中兴通讯股份有限公司 | Fault tolerance method for data storage load and iptv system |
| CN107315662A (en) * | 2017-07-05 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of method and system for preventing hard disc data from losing |
| CN111382014A (en) * | 2020-03-11 | 2020-07-07 | 苏州浪潮智能科技有限公司 | Redundancy control system and method based on server system disk faults |
| CN114968125A (en) * | 2022-06-30 | 2022-08-30 | 中车青岛四方车辆研究所有限公司 | A data storage device and method for EMU safety monitoring system |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1456980A (en) * | 2002-05-08 | 2003-11-19 | 联想(北京)有限公司 | Hard disc data duplicating and reproducing method |
| CN1653428A (en) * | 2002-03-27 | 2005-08-10 | 英特尔公司 | BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image and software failure |
| CN101833489A (en) * | 2010-05-06 | 2010-09-15 | 北京邮电大学 | A method for real-time monitoring and intelligent backup of files |
| US20110066881A1 (en) * | 2009-09-14 | 2011-03-17 | International Business Machines Corporation | Resilient software-controlled redundant array of independent disks (raid) |
| CN102331958A (en) * | 2011-11-02 | 2012-01-25 | 赵玉燕 | Method for starting hard disk under Linux system |
-
2012
- 2012-07-10 CN CN2012102374895A patent/CN102841863A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1653428A (en) * | 2002-03-27 | 2005-08-10 | 英特尔公司 | BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image and software failure |
| CN1456980A (en) * | 2002-05-08 | 2003-11-19 | 联想(北京)有限公司 | Hard disc data duplicating and reproducing method |
| US20110066881A1 (en) * | 2009-09-14 | 2011-03-17 | International Business Machines Corporation | Resilient software-controlled redundant array of independent disks (raid) |
| CN101833489A (en) * | 2010-05-06 | 2010-09-15 | 北京邮电大学 | A method for real-time monitoring and intelligent backup of files |
| CN102331958A (en) * | 2011-11-02 | 2012-01-25 | 赵玉燕 | Method for starting hard disk under Linux system |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104156286A (en) * | 2014-08-22 | 2014-11-19 | 福建星网视易信息系统有限公司 | System disk switching method and device for linux operating system |
| CN104156286B (en) * | 2014-08-22 | 2017-07-04 | 福建星网视易信息系统有限公司 | The system disk changing method and device of a kind of linux operating systems |
| CN105138283A (en) * | 2015-08-11 | 2015-12-09 | 北京百度网讯科技有限公司 | Computer disk and data management method and apparatus used for computer disk |
| WO2017097233A1 (en) * | 2015-12-11 | 2017-06-15 | 中兴通讯股份有限公司 | Fault tolerance method for data storage load and iptv system |
| CN107315662A (en) * | 2017-07-05 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of method and system for preventing hard disc data from losing |
| CN111382014A (en) * | 2020-03-11 | 2020-07-07 | 苏州浪潮智能科技有限公司 | Redundancy control system and method based on server system disk faults |
| CN114968125A (en) * | 2022-06-30 | 2022-08-30 | 中车青岛四方车辆研究所有限公司 | A data storage device and method for EMU safety monitoring system |
| CN114968125B (en) * | 2022-06-30 | 2025-05-06 | 中车青岛四方车辆研究所有限公司 | Data storage device and method for EMU safety monitoring system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8055938B1 (en) | Performance in virtual tape libraries | |
| US10977124B2 (en) | Distributed storage system, data storage method, and software program | |
| US8707096B2 (en) | Storage system, data backup method, and system restarting method of a storage system incorporating volatile and nonvolatile memory devices | |
| CN102841863A (en) | Method for backuping data through adopting dual-disk read-write operation | |
| US6438647B1 (en) | Method and apparatus for providing battery-backed immediate write back cache for an array of disk drives in a computer system | |
| CN106445741B (en) | One kind realizing oracle database disaster-tolerant backup method based on ceph | |
| US8214610B2 (en) | Managing backup device metadata in a high availability disk subsystem | |
| CN102033786B (en) | Method for repairing consistency of copies in object storage system | |
| US20170091042A1 (en) | System and method for power loss protection of storage device | |
| WO2016095372A1 (en) | Method and apparatus for realizing image backup of transaction logs | |
| US20140304548A1 (en) | Intelligent and efficient raid rebuild technique | |
| CN103942112A (en) | Magnetic disk fault-tolerance method, device and system | |
| AU2010256179B2 (en) | Method and device for reading and writing a memory card | |
| US11221927B2 (en) | Method for the implementation of a high performance, high resiliency and high availability dual controller storage system | |
| CN109710456B (en) | Data recovery method and device | |
| CN104615381B (en) | A kind of redundant arrays of inexpensive disks of video monitoring system | |
| US20180024768A1 (en) | Partitioning memory modules into volatile and non-volatile portions | |
| US20150135006A1 (en) | System and Method of Write Hole Protection for a Multiple-Node Storage Cluster | |
| CN105955989B (en) | Method for establishing master server and slave server of cloud platform database | |
| WO2017097233A1 (en) | Fault tolerance method for data storage load and iptv system | |
| CN113885809B (en) | Data management system and method | |
| US9772782B2 (en) | Non-volatile complement data cache | |
| US20070234107A1 (en) | Dynamic storage data protection | |
| CN103049407B (en) | Data storage method, device and system | |
| US20140325261A1 (en) | Method and system of using a partition to offload pin cache from a raid controller dram |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 200233 Shanghai City, Xuhui District 7 Guangxi Jinglu 3 Building No. 203 room Applicant after: Shanghai Tak Billiton information technology Limited by Share Ltd Address before: 200233 Shanghai City Guangxi Jinglu 3 Building No. 203 room 7 Applicant before: Shanghai Datatom Information Technology Co., Ltd. |
|
| CB02 | Change of applicant information | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20121226 |
|
| WD01 | Invention patent application deemed withdrawn after publication |