CN104133742A - Data protection method and device - Google Patents
Data protection method and device Download PDFInfo
- Publication number
- CN104133742A CN104133742A CN201410387119.9A CN201410387119A CN104133742A CN 104133742 A CN104133742 A CN 104133742A CN 201410387119 A CN201410387119 A CN 201410387119A CN 104133742 A CN104133742 A CN 104133742A
- Authority
- CN
- China
- Prior art keywords
- disk
- data
- snapshot
- fault
- backup
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a data protection method and device. The data protection method comprises the steps that the fault type of a faulted disk is judged, wherein the fault type includes a hardware fault or a software fault; when the fault type of the faulted disk is the hardware fault, data recovery is conducted in a back-up disk; when the fault type of the faulted disk is the software fault, data recovery is conducted in a snapshoot disk. According to the technical scheme, the data protection method and device increase the speed of data protection (recovery), and shorten data recovery time.
Description
Technical field
The present invention relates to Computer Storage field, espespecially a kind of method of data protection and device.
Background technology
Along with universal in industry-by-industry application of computing machine, mass data is stored by computing machine, and this just has higher requirement to the redundancy technique of data, especially at the aspect such as high availability and security of mass data.For some important systems; requirement realizes real data disaster tolerance protection, to avoid due to the system failure, and user misoperation; the consequence that cannot make up that unscheduled event etc. are brought to data, therefore the high availability of protected data and security more and more seem most important.
The two large mainstream technologys based on high speed storing network (SAN, Storage Area Network) backup are mirror image technology and snapping technique.Wherein, the data of mirror image technology backup are the data the same with source data, and synchronously upgrade with source data, and the data of snapping technique backup are the source datas of certain time point, are pointer.Aspect the access efficiency and the property used of Backup Data, mirror image technology is better than snapping technique.But mirror image data often needs to consume a large amount of time, particularly for Remote Switched Port Analyzer, the backup of its data and the speed of recovery are often limited to the network bandwidth, and data volume is larger, and the time of backup is longer, in the time carrying out data recovery, also to consume the plenty of time equally; What snapping technique adopted is copy-on-write technology, and the principle that realizes of copy-on-write technology is, in the time that data change, the legacy data changing to be write to snapped volume.Therefore, snapping technique is more much smaller than mirror image technology aspect spare capacity, and can record data sometime, more flexible, the backup efficiency of data is also higher than mirror image technology, and still, the data dependence of storing on snapped volume is in original volume, once original volume data are destroyed, the data on snapped volume have just lost use value.
At present, normally adopt in the industry mirror image data to carry out data recovery to the disk breaking down (comprising hardware fault and software fault).When the fault occurring for disk is software fault (as missed deletion etc.); or the total data of backup disk need to be returned in master disk; so just make the rejuvenation of data need the expensive time; and the speed of data protection (recovery) is also very slow, cannot meet user's demand.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of method and device of data protection, can promote the speed of data protection (recovery), reduce the time that data are recovered.
In order to reach the object of the invention, the invention provides a kind of method of data protection, comprising:
The fault type of the disk that judgement is broken down, wherein fault type comprises: hardware fault or software fault;
In the time that the fault type of the disk breaking down is hardware fault, from backup disk, carry out data recovery; In the time that the fault type of the disk breaking down is software fault, from snapshot disk, carry out data recovery.
Further, before the method, also comprise:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk;
And,
Data in scanning master disk, take pictures the data that change in the master disk of each time point to obtain the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
Further, from backup disk, carry out data recovery, comprising: the data that back up in described backup disk are returned in master disk.
Further, from snapshot disk, carry out data recovery, comprising: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in described snapshot disk are returned in master disk.
Further, hardware fault comprises: disk failures; Software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
The present invention also provides a kind of device of data protection, comprising: fault judge module, mirror image module and snapshot module; Wherein,
Fault judge module, for judging the fault type of the disk breaking down, wherein fault type comprises: hardware fault or software fault;
Mirror image module while being hardware fault, is carried out data recovery for the fault type when the disk breaking down from backup disk;
Snapshot module while being software fault, is carried out data recovery for the fault type when the disk breaking down from snapshot disk.
Further, mirror image module also for:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk.
Further, snapshot module also for:
Data in scanning master disk, take pictures the data that change in the master disk of each time point to obtain the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
Further, mirror image module, specifically for: the data that back up in backup disk are returned in master disk.
Further, snapshot module, specifically for: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in described snapshot disk are returned in master disk.
Further, hardware fault comprises: disk failures; Software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
Technical solution of the present invention comprises: comprising: the fault type of the disk that judgement is broken down, and wherein fault type comprises: hardware fault or software fault; In the time that the fault type of the disk breaking down is hardware fault, from backup disk, carry out data recovery; In the time that the fault type of the disk breaking down is software fault, from snapshot disk, carry out data recovery.Technical scheme of the present invention has promoted the speed of data protection (recovery), has reduced the time that data are recovered.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the method for data protection of the present invention;
Fig. 2 is the structural representation of the device of data protection of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention will be described in detail.
Fig. 1 is the process flow diagram of the method for data protection of the present invention, as shown in Figure 1, comprises the following steps:
Step 101, the fault type of the disk that judgement is broken down, wherein fault type comprises: hardware fault or software fault.
Wherein, hardware fault comprises: disk failures; Software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
It should be noted that, belong to conventional techniques means well known to those skilled in the art about the fault type that how to judge the disk breaking down, the protection domain that its specific implementation is not intended to limit the present invention, repeats no more here.
Before step 101, the method also comprises:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk.
And comprise: the data in scanning master disk, the data that change in the master disk of each time point are taken pictures and obtained the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
Here it should be noted that, backup disk and snapshot disk are two different disks, and the Backup Data of depositing is also different, and what backup disk was deposited is according to all data in the master disk of mirror backup, are snapshot datas and snapshot disk is deposited.
Step 102 in the time that the fault type of the disk breaking down is hardware fault, is carried out data recovery from backup disk; In the time that the fault type of the disk breaking down is software fault, from snapshot disk, carry out data recovery.
Wherein, from backup disk, carry out data recovery, comprising: the data that back up in backup disk are returned in master disk.
From snapshot disk, carry out data recovery, comprising: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in this snapshot disk are returned in master disk.Here, the creation-time that is snapshot disk according to the attribute of snapshot disk finds the snapshot disk corresponding to nearest BACKUP TIME point, and the snapshot disk unification of each time point is left in snapshot disk in addition.
In said method of the present invention, because the shared storage space of snapshot data itself is very little, here the storage space required with respect to mirror image data can be thought very little, so in adopting mirror image technology to carry out data backup to master disk, adopt snapshot that master disk is backed up and can't the storage space of system be impacted.But, in the time that software fault has occurred master disk, adopt snapshot data to carry out data recovery, can reduce greatly the time that data are recovered, promote greatly the speed of data protection (recovery).
Fig. 2 is the structural representation of the device of data protection of the present invention, as shown in Figure 2, comprising: fault judge module, mirror image module and snapshot module.Wherein,
Fault judge module, for judging the fault type of the disk breaking down, wherein fault type comprises: hardware fault or software fault.
Wherein, hardware fault comprises: disk failures; Software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
It should be noted that, belong to conventional techniques means well known to those skilled in the art about the fault type that how to judge the disk breaking down, the protection domain that its specific implementation is not intended to limit the present invention, repeats no more here.
Mirror image module while being hardware fault, is carried out data recovery for the fault type when the disk breaking down from backup disk.
Further, mirror image module also for:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk.
Wherein, mirror image module, specifically for: the data that back up in backup disk are returned in master disk.
Snapshot module while being software fault, is carried out data recovery for the fault type when the disk breaking down from snapshot disk.
Further, snapshot module also for:
Data in scanning master disk, take pictures the data that change in the master disk of each time point to obtain the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
Wherein, snapshot module, specifically for: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in this snapshot disk are returned in master disk.Here, the creation-time that is snapshot disk according to the attribute of snapshot disk finds the snapshot disk corresponding to nearest BACKUP TIME point, and the snapshot disk unification of each time point is left in snapshot disk in addition.
One of ordinary skill in the art will appreciate that all or part of step in said method can carry out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuit.Correspondingly, the each module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The application is not restricted to the combination of the hardware and software of any particular form.
The above, be only preferred embodiments of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (11)
1. a method for data protection, is characterized in that, comprising:
The fault type of the disk that judgement is broken down, wherein fault type comprises: hardware fault or software fault;
In the time that the fault type of the disk breaking down is hardware fault, from backup disk, carry out data recovery; In the time that the fault type of the disk breaking down is software fault, from snapshot disk, carry out data recovery.
2. method according to claim 1, is characterized in that, before the method, also comprises:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk;
And,
Data in scanning master disk, take pictures the data that change in the master disk of each time point to obtain the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
3. method according to claim 2, is characterized in that, describedly from backup disk, carries out data recovery, comprising: the data that back up in described backup disk are returned in master disk.
4. method according to claim 2, it is characterized in that, describedly from snapshot disk, carry out data recovery, comprising: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in described snapshot disk are returned in master disk.
5. according to the method described in claim 1~4 any one, it is characterized in that, described hardware fault comprises: disk failures;
Described software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
6. a device for data protection, is characterized in that, comprising: fault judge module, mirror image module and snapshot module; Wherein,
Fault judge module, for judging the fault type of the disk breaking down, wherein fault type comprises: hardware fault or software fault;
Mirror image module while being hardware fault, is carried out data recovery for the fault type when the disk breaking down from backup disk;
Snapshot module while being software fault, is carried out data recovery for the fault type when the disk breaking down from snapshot disk.
7. device according to claim 6, is characterized in that, described mirror image module also for:
Set up the mirror of master disk and backup disk;
According to the mirror of setting up, the data in master disk are backuped in backup disk.
8. device according to claim 6, is characterized in that, described snapshot module also for:
Data in scanning master disk, take pictures the data that change in the master disk of each time point to obtain the snapshot data corresponding to each time point, will back up in the snapshot disk of each time point corresponding to the snapshot data of each time point.
9. device according to claim 7, is characterized in that, described mirror image module, specifically for: the data that back up in described backup disk are returned in master disk.
10. device according to claim 8, is characterized in that, described snapshot module, specifically for: according to the difference of BACKUP TIME, find the snapshot disk corresponding to nearest BACKUP TIME point, the data in described snapshot disk are returned in master disk.
11. according to the device described in claim 6~10 any one, it is characterized in that, described hardware fault comprises: disk failures;
Described software fault comprises: IO writes with a brush dipped in Chinese ink wrong knowledge or deletes data by mistake.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410387119.9A CN104133742A (en) | 2014-08-07 | 2014-08-07 | Data protection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410387119.9A CN104133742A (en) | 2014-08-07 | 2014-08-07 | Data protection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104133742A true CN104133742A (en) | 2014-11-05 |
Family
ID=51806427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410387119.9A Pending CN104133742A (en) | 2014-08-07 | 2014-08-07 | Data protection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104133742A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562576A (en) * | 2017-09-14 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method of data protection |
CN109828863A (en) * | 2019-01-10 | 2019-05-31 | 网联清算有限公司 | Data disaster tolerance method, apparatus, storage medium and computer equipment |
CN110781031A (en) * | 2019-09-25 | 2020-02-11 | 潍柴动力股份有限公司 | Controller data recovery method and device, controller and automobile |
CN111124284A (en) * | 2019-11-30 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Hard disk management method, device and related components |
CN113808299A (en) * | 2021-09-14 | 2021-12-17 | 中国第一汽车股份有限公司 | Vehicle fault snapshot storage method, device and equipment based on fault system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001175426A (en) * | 1999-12-22 | 2001-06-29 | Fujitsu Ltd | Vtoc automatic restoration device for random access storage device and computer-readable recording medium with vtoc automatic restoration program |
CN1637726A (en) * | 2003-02-17 | 2005-07-13 | 张有成 | Real-time dynamic data protecting method for Linux system hard disc |
CN101650680A (en) * | 2009-07-27 | 2010-02-17 | 浪潮电子信息产业股份有限公司 | Continuous data protection method based on continuous snapshots |
CN101777018A (en) * | 2010-02-08 | 2010-07-14 | 北京同有飞骥科技有限公司 | Copying and snapshot combined Windows system protection method |
CN102710752A (en) * | 2012-05-13 | 2012-10-03 | 徐州易存信息技术有限公司 | Disaster recovery storage system |
CN102880522A (en) * | 2012-09-21 | 2013-01-16 | 中国人民解放军国防科学技术大学 | Hardware fault-oriented method and device for correcting faults in key files of system |
CN103019890A (en) * | 2012-12-24 | 2013-04-03 | 清华大学 | Block-level disk data protection system and method thereof |
CN103336728A (en) * | 2013-05-08 | 2013-10-02 | 上海爱数软件有限公司 | Disk data recovery method |
CN103605588A (en) * | 2013-11-21 | 2014-02-26 | 上海爱数软件有限公司 | Disk backup method of virtue machine |
CN103914359A (en) * | 2012-12-31 | 2014-07-09 | ***通信集团浙江有限公司 | Data recovery method and device |
-
2014
- 2014-08-07 CN CN201410387119.9A patent/CN104133742A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001175426A (en) * | 1999-12-22 | 2001-06-29 | Fujitsu Ltd | Vtoc automatic restoration device for random access storage device and computer-readable recording medium with vtoc automatic restoration program |
CN1637726A (en) * | 2003-02-17 | 2005-07-13 | 张有成 | Real-time dynamic data protecting method for Linux system hard disc |
CN101650680A (en) * | 2009-07-27 | 2010-02-17 | 浪潮电子信息产业股份有限公司 | Continuous data protection method based on continuous snapshots |
CN101777018A (en) * | 2010-02-08 | 2010-07-14 | 北京同有飞骥科技有限公司 | Copying and snapshot combined Windows system protection method |
CN102710752A (en) * | 2012-05-13 | 2012-10-03 | 徐州易存信息技术有限公司 | Disaster recovery storage system |
CN102880522A (en) * | 2012-09-21 | 2013-01-16 | 中国人民解放军国防科学技术大学 | Hardware fault-oriented method and device for correcting faults in key files of system |
CN103019890A (en) * | 2012-12-24 | 2013-04-03 | 清华大学 | Block-level disk data protection system and method thereof |
CN103914359A (en) * | 2012-12-31 | 2014-07-09 | ***通信集团浙江有限公司 | Data recovery method and device |
CN103336728A (en) * | 2013-05-08 | 2013-10-02 | 上海爱数软件有限公司 | Disk data recovery method |
CN103605588A (en) * | 2013-11-21 | 2014-02-26 | 上海爱数软件有限公司 | Disk backup method of virtue machine |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562576A (en) * | 2017-09-14 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method of data protection |
CN109828863A (en) * | 2019-01-10 | 2019-05-31 | 网联清算有限公司 | Data disaster tolerance method, apparatus, storage medium and computer equipment |
CN110781031A (en) * | 2019-09-25 | 2020-02-11 | 潍柴动力股份有限公司 | Controller data recovery method and device, controller and automobile |
CN110781031B (en) * | 2019-09-25 | 2022-04-26 | 潍柴动力股份有限公司 | Controller data recovery method and device, controller and automobile |
CN111124284A (en) * | 2019-11-30 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Hard disk management method, device and related components |
CN113808299A (en) * | 2021-09-14 | 2021-12-17 | 中国第一汽车股份有限公司 | Vehicle fault snapshot storage method, device and equipment based on fault system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984335B (en) | Method and system for backing up and restoring data | |
CN102981931B (en) | Backup method and device for virtual machine | |
US9348827B1 (en) | File-based snapshots for block-based backups | |
EP3179359B1 (en) | Data sending method, data receiving method, and storage device | |
US9400611B1 (en) | Data migration in cluster environment using host copy and changed block tracking | |
CN103034566B (en) | Method and device for restoring virtual machine | |
US11226870B2 (en) | Systems and methods for marking application-consistent points-in-time | |
EP2425344B1 (en) | Method and system for system recovery using change tracking | |
CN103810058A (en) | Backup method, equipment and system for virtual machine | |
CN104133742A (en) | Data protection method and device | |
US20140258613A1 (en) | Volume change flags for incremental snapshots of stored data | |
US8555009B1 (en) | Method and apparatus for enabling and managing application input/output activity while restoring a data store | |
CN103019888A (en) | Backup method and device | |
US10055309B1 (en) | Parallel restoration of a virtual machine's virtual machine disks | |
JP2010092259A (en) | Failure management system in storage capacity virtualization technology | |
US20120260051A1 (en) | Computer system, management system and data management method | |
US10353777B2 (en) | Ensuring crash-safe forward progress of a system configuration update | |
US8707107B1 (en) | Systems and methods for proactively facilitating restoration of potential data failures | |
US20140365824A1 (en) | Method for recovering hard disk data, server and distributed storage system | |
US9772910B1 (en) | Resource optimization for storage integrated data protection | |
US8479040B2 (en) | Storage system and control method | |
CN104424115A (en) | Method for restoring preset status of electronic device, memory device and electronic device | |
US10929255B2 (en) | Reducing the size of fault domains | |
US8996908B1 (en) | Information system, host system and access control method | |
US20220129393A1 (en) | Dynamically Managing Protection Groups |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141105 |