CN101256528A - Magnetic disk data backup system and method supporting nought backup window - Google Patents

Magnetic disk data backup system and method supporting nought backup window Download PDF

Info

Publication number
CN101256528A
CN101256528A CNA2008101023452A CN200810102345A CN101256528A CN 101256528 A CN101256528 A CN 101256528A CN A2008101023452 A CNA2008101023452 A CN A2008101023452A CN 200810102345 A CN200810102345 A CN 200810102345A CN 101256528 A CN101256528 A CN 101256528A
Authority
CN
China
Prior art keywords
backup
disk
read
write
data
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
Application number
CNA2008101023452A
Other languages
Chinese (zh)
Other versions
CN101256528B (en
Inventor
云晓春
王树鹏
吴志刚
李树豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN2008101023452A priority Critical patent/CN101256528B/en
Publication of CN101256528A publication Critical patent/CN101256528A/en
Application granted granted Critical
Publication of CN101256528B publication Critical patent/CN101256528B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a magnetic disc grade data backup system for supporting a zero backup window and a method thereof. The system comprises a backup control device, a fore-writing read device, a backup read device, a magnetic filter drive device, a backup snap list and a monitor list. The system obtains the backup snap list from the magnetic disc or the magnetic filter drive device and reads data on magnetic disc sector which need to be backed up; the fore-writing read device completes fore-writing read operation matching with the magnetic filter driver, reads data from the magnetic disc after receives signal of capturing writing operation sent by magnetic disc filter device; the magnetic filter driving device marks the object sector of writing operation in the monitor snap list and uses the marked object sector as a basis of incremental backup. It is not need to stop the affair application in case of using the invention to back up data, the invention hardly effects the affair application and supports the affair application of 24*7 continuous operation; the invention is realized in magnetic grade and is irrelevant to concrete upper layer affair, the backup method and realized backup system have more wide universality and application scope.

Description

Support the magnetic disk data backup system and the method for zero backup window
Technical field
The present invention relates to field of information security technology, more specifically, the present invention relates to a kind of magnetic disk data backup system and method for supporting zero backup window.
Background technology
Raising along with the development of computer and the level of informatization, people also strengthen the degree of dependence of information thereupon, and the high concentration of information in the IT environment stored, and improved the robotization of information and data management to a great extent, improve efficiency of operation, reduced operation cost.But simultaneously, risk is also in continuous increase, and the loss of data that the disaster generation is caused may cause tremendous loss.
For fear of the adverse effect that disaster is brought, need carry out regularly or real-time backup data.Along with being on the increase of the data that need protection, it is also more and more longer to carry out a needed time of data backup.Meanwhile, constantly busy along with the information system service application, the enhancing of importance, service application allows time of stopping also shorter and shorter, and the data backup window is shorter and shorter thereupon, and in fact a lot of service application are 24 * 7 continuous services, can't stop, the data backup window is zero.Therefore, need to realize supporting the redundancy technique of zero backup window, under the unbroken situation of service application, carry out data backup, guarantee the time consistency of Backup Data.Simultaneously, the kind of service application is more and more, the cost of setting up cover disaster recovery and backup systems for every kind of service application separately is higher relatively, the complicacy of building is also very big, how to improve the application transparency and the versatility of backup method and system, the difficulty and the complicacy that reduce disaster recovery and backup systems also are to set up the key issue of disaster backup system.
The method that in the prior art data message of computer system is backed up visit mainly comprises:
Lock file when (1) backing up: the write access by the refusal process prevents other user's modification this document; If other process has obtained the write access authority, backup process must be skipped this document or during the write permission that by the time obtains to monopolize, operation this document;
(2) change of detection file: after xcopy, whether standby process carried out modification during can utilizing operating system to check replicate run, if carried out modification, must reform and duplicate or skip this document;
(3) application number is that the PCT application of PCT/GB94/01581 proposes a kind of operation has a memory device of sharing in several application computer method, use an auxiliary storage to preserve the data that the process of writing in the backup procedure is write, avoid write operation to rewrite raw data, backup process can be from original storage zones reading of data, and other read process can be from auxiliary access section reading of data;
(4) application number is that the PCT application of PCT/GB96/00651 is to put forward on the basis of method described in (3) in the above, and basic ideas are similar.
In above-mentioned (1) and (2) two kinds of methods, all require when carrying out data backup effectively can't to support the data backup of zero backup window to other application program locking.Along with the increase of data volume, it is also more and more longer that data are duplicated the needed time, and business datum is among the continuous use, can't stop, so these two kinds of methods can't satisfy current calamity and be equipped with demand.Above-mentioned (3) and (4) two kinds of methods are that the data backup at file system hierarchy proposes, and it is relevant using with upper-layer service, and the data backup of inapplicable block device level is of limited application; Take precautions against when in addition, using these two kinds of methods also to need extra memory storage to realize backup process and application process data; Also have, the method for (3) and (4) proposition only be applicable to Dos, Nove11 NetWare, OS/2 or Unix and adopt 6800 and the macintosh computer of the CPU of PowerPC series on realize and the operating system of inapplicable existing windows series.
Summary of the invention
For the application transparency that overcomes the existing disk level data backup of supporting zero backup window and the defective of versatility difference, the invention provides a kind of magnetic disk data backup system and method for supporting zero backup window.
According to an aspect of the present invention, provide a kind of magnetic disk data backup system of supporting zero backup window, having comprised: backup control device, write preceding read apparatus, backup read apparatus, disk filtration drive device and backup snapshots table;
Wherein, described backup snapshots table is used for the recording disc sector data and whether needs backup;
Described backup control device is used to control described backup read apparatus and described startup and the termination of writing preceding read apparatus;
The disk sector data that described backup read apparatus is used for reading according to described backup snapshots table needs backups back up;
Described disk filtration drive device is used for monitoring and intercepts and captures disk write operation, and the read apparatus transmission intercepts to described writing before writes the IRP operation signal;
Read apparatus is used for receiving the signal that intercepts write operation of described disk filtration drive device transmission and sending the write operation all-clear to described disk filtration drive device at backup procedure before described the writing; Read apparatus reads the target sector data according to write operation signal and backup snapshots table and backs up before described the writing, and realizes preferentially reading the write operation targets disk sector.
Wherein, described system also comprises monitoring snapshot table, and after described disk filtration drive device intercepted disk write operation, the target disk sector auxiliary information of IRP operation write in record in described monitoring snapshot table; Wherein, described monitoring snapshot table is used for the disk sector data that the recording increment monitoring period is modified, and the target sector of mark write operation, is used as the foundation of incremental backup.
Wherein, before described the writing read apparatus receive described disk filtration drive device write intercepted signal after, according to the backup snapshots table, finish read the target sector data after, send the write operation all-clear to described disk filtration drive device.
Wherein, the read-write operation to disk can be intercepted and captured and distinguish to described disk filtration drive device; Wherein, described disk filtration drive device can obtain the read-write operation of upper layer application layer to described disk.
Wherein, described system can carry out full backup and incremental backup; When full backup, described backup read apparatus only backs up the use sectors of data according to the behaviour in service of backup disk; When incremental backup, described backup read apparatus obtains from described disk filtration drive device and carries out the backup snapshots table that data backup is used, and only backs up the disk sector data of more correcting one's mistakes behind the incremental backup from last time.
Wherein, preferred, described monitoring snapshot table leaves kernel state in.
Wherein, preferred, described backup snapshots table leaves user's attitude in.
Wherein, described backup snapshots table is represented to back up in the subregion each disk sector and bunch whether is needed backup.
Wherein, whether the described monitoring snapshot table data of representing to back up each disk sector in the subregion bunch were modified at the increment monitoring period.
Wherein, described disk filtration drive device can be in four kinds of states: idle condition, and blocked state is read monitor state and complete monitor state before writing; When described disk filtration drive device was in idle condition, only operation was simply transmitted to disk read-write; When described disk filtration drive device was in blocked state, disk write operation was blocked in the read operation of only transmitting disk; When beginning to carry out full dose/incremental backup, described disk filtration drive device is read monitor state before entering and writing, before described writing read apparatus send intercept write the IRP operation signal; After full dose/incremental backup operations was finished, described disk filtration drive device entered complete monitor state, directly the disk write operation of letting pass and intercepting.
According to a second aspect of the invention, provide a kind of disk level data backup method of supporting zero backup window, having comprised:
Step 10), obtain and be used for the recording disc sector data and whether need the backup snapshots table that backs up;
Step 20), the disk sector data that read the needs backup from the disk successively according to the described backup snapshots table that obtains back up, and begin to monitor disk operating simultaneously;
Step 30), monitor disk write operation, intercepting and capturing disk write operation;
Step 40) if during backing up, intercept write operation signal, from described write the disk reading of data and finished after, send the signal of clearance write operation, finish and write preceding read operation.
Wherein, step 30) further comprise:
Step 31), intercept disk write operation after, the target sector of write operation is marked in the monitoring snapshot table, wherein, described monitoring snapshot table is used for the disk sector data that the recording increment monitoring period is modified and the target sector of mark write operation.
Wherein, described method further comprises:
Step 50), read described monitoring snapshot table, carry out incremental backup, keep the monitoring disk operating simultaneously.
Wherein, when incremental backup, generate the backup snapshots table according to monitoring snapshot table.
Wherein, step 20) further comprise: obtain visit lock the backup snapshots table; Read the disk sector data of need backup corresponding in the backup snapshots table; Revise the backup snapshots table, discharge visit lock the backup snapshots table; After finishing, backup enters the increment monitor state.
Wherein, step 31) further comprise:
Step 310), signal and the disk that intercepts the application layer transmission write the IRP operation;
Step 320), obtain monitoring the visit lock of snapshot table;
Step 330), revise the corresponding positions of the monitoring snapshot table of the target sector correspondence of writing the IRP operation;
Step 340), discharge monitoring the visit lock of snapshot table; The described IRP that writes that lets pass operates.
Wherein, step 40) further comprise:
Step 410), receive the signal of writing the IRP operation that intercepts of disk filtration drive transmission;
Step 420), when being in Status of Backups, obtain the information of writing IRP of intercepting and capturing, obtain the visit of backup snapshots table lock;
Step 430), read the target disk sectors of data of writing IRP operation, revise disk sector data corresponding position in the backup snapshots table of reading;
Step 440), send clearance and write the IRP operation signal.
The method that the present invention proposes can realize having higher service application independence at the disk drive level; Realized back-up device and other application process simultaneously to magnetic disc data accessing, service application is not interrupted during can guaranteeing to back up, and makes standby system be more suitable for the present situation that current operation application need 24 * 7 moves, and has strengthened the versatility of standby system.
Description of drawings
Fig. 1 is for supporting the standby system structural representation of zero backup window;
Fig. 2 is the synoptic diagram of backup snapshots table and increment monitoring snapshot table;
Fig. 3 transforms synoptic diagram for the Disk Backup subregion state;
Fig. 4 is the synoptic diagram of backup control procedure;
Fig. 5 is a data backup process synoptic diagram;
Fig. 6 is the synoptic diagram of monitor procedure.
Embodiment
Below in conjunction with the drawings and specific embodiments a kind of magnetic disk data backup system and method for zero backup window supported provided by the invention is described in detail.
The standby system of support zero backup window that provides according to one embodiment of present invention is provided Fig. 1, comprises backup control device A, writes preceding read apparatus B, backup read apparatus C and disk filtration drive device D.
Standby system also comprises a backup snapshots table and monitoring snapshot table, and the deposit position of backup snapshots table and monitoring snapshot table is not done specific requirement, as long as need the device of visit snapshot table to have access to; But in order to obtain access efficiency preferably, preferred implementation is that the backup snapshots table is placed on user's attitude, will monitor the snapshot table and be placed on kernel state.The state of disk sector bunch in each expression backup subregion in each snapshot table, as shown in Figure 2, the option of the sector bunch number of sectors that comprises during with partition format is relevant, is generally 8 sectors, i.e. 4K.In the backup snapshots table, " 1 " represents that the disk sector bunch needs of this correspondence back up, and " 0 " represents that the disk sector of this correspondence bunch does not need to back up.The backup snapshots table is the foundation that backs up by backing up read apparatus and writing preceding read apparatus and share.The backup read apparatus reads the position pairing disk sector of backup snapshots table for " 1 " successively; Read apparatus obtains the activation signal of writing that disk filtration drive device sends before writing, finish read operation after, with mark position 0 corresponding in the backup snapshots table.The disk sector that is modified on the monitoring snapshot list notation backup subregion is operated it by disk filtration drive device, intercept write the IRP operation after, this is write the corresponding position set of IRP operation; When the content that reads monitoring snapshot table when the backup read apparatus from disk filtration drive device is used for incremental backup, the disk filtration drive will monitor the full reset of snapshot table, and the increment of a beginning new round is monitored.
In system shown in Figure 1, startup and termination (A101) that backup control device A is used to control the switching and the control backup read apparatus C of Status of Backups and writes preceding read apparatus B.
Read apparatus B is responsible for carrying out alternately with disk filtration drive device D in backup procedure before writing, write before read apparatus B receive disk filtration drive device D write intercepted signal after, whether the needs backup is operated according to the destination sector data of backup snapshots table, back up if desired and do not back up, then read target sector data (B101), to read the corresponding position 0 of backup snapshots table that process is shared with backup, represent that this sector data had carried out backup, finish read after, write i/o request package (i/o Request Package to the transmission of disk filtration drive device, IRP) operation all-clear (B102), letting pass, this writes the IRP operation, thereby has guaranteed the time consistency of Backup Data; Otherwise the direct signal that before the transmission of disk filtration drive device is write, runs through.
Backup read apparatus C is used for reading the disk sector data (C101) that needs back up according to the backup snapshots table from disk, backs up read operation; Backup read apparatus C can send at least one backup instruction from the memory storage read raw data, and this device is supported full backup and incremental backup; During full backup, determine the backup snapshots table that backup is used according to the behaviour in service of backup disk, only sectors of data is used in backup, reduces backup data quantity; During incremental backup, obtain the backup snapshots table that carries out the data backup use, only back up the disk sector data of more correcting one's mistakes behind the incremental backup from last time from kernel disk filtration drive device.
Disk filtration drive device D is responsible for monitoring and the IRP that writes of interception system operates, the disk sector information of IRP operation change write in record, and during backing up with write before read apparatus cooperate, read apparatus sends and writes intercepted signal (operation D101) before writing, read to handle before read apparatus was write before notice was write, guarantee just to let pass after the disk sector data backup is finished and write the IRP operation.
Disk filtration drive device D operation supervise and control snapshot table is used to monitor disk write operation, the disk sector data that the recording increment monitoring period is modified, and the target sector of write operation is marked in the monitoring snapshot table, be used as the foundation of incremental backup; During the data backup, the signalisation that this device will intercept disk write operation is given and to be write preceding read apparatus, receive write before behind the read apparatus signal of finishing dealing with, the write operation of just letting pass carries out actual write operation.Disk filtration drive device can interception system the disk read-write operation, differentiate read operation and write operation; Can communicate with the upper layer application layer process.According to the Status of Backups of backup disk subregion, disk filtration drive device can be in four kinds of states: idle condition, blocked state is read monitor state and complete monitor state before writing.When disk filtration drive device was in idle condition, operation was only simply transmitted to disk read-write, does not carry out any operation; When being in blocked state, only transmit the read operation of disk, block disk write operation; When beginning to carry out full dose/incremental backup, just enter and read monitor state before writing, intercept a write operation after, at first judge whether and need before writing, send signal by read apparatus, if do not need, this write operation of directly letting pass; Otherwise, read apparatus sends a signal before writing, read to handle before read apparatus is write before writing, before writing, one of disk filtration drive device transmission runs through signal then, after receiving this signal, disk filtration drive device is with target sector corresponding position 1 in monitoring snapshot table of this write operation, this write operation of letting pass then; After full dose/incremental backup operations is finished, enter complete monitor state, intercept disk write operation after, with the destination sector of write operation in monitoring snapshot table behind the corresponding position 1, this write operation of directly letting pass, do not need with write before read apparatus carry out alternately.
The most basic backup unit of standby system is disk partition, and there are five kinds of states in the backup subregion, as shown in Figure 3: Status of Backups not, full backup state, increment monitor state, incremental backup state and stop Status of Backups.Status of Backups does not represent that the Disk Backup subregion did not carry out any backup operation; Full backup state representation backup read apparatus carries out full backup to disk partition; The increment monitor state represents that disk filtration drive device carries out the write operation monitoring to this disk partition; Incremental backup state representation backup read apparatus carries out incremental backup operations to this subregion; Stop Status of Backups and represent to stop all backups and policer operation this subregion.
As shown in Figure 3, the transfer process of state comprises:
Step 201: after starting backup, the Disk Backup subregion at first enters the full backup state;
Step 202: after full backup was finished, the Disk Backup subregion entered the increment monitor state;
Step 203: in the full backup process, receive stop backup signal after, this disk partition enters and stops Status of Backups;
Step 204: after arriving the incremental backup time point, this subregion is carried out incremental backup, this subregion enters the incremental backup state;
Step 205: in the increment monitor procedure, receive stop backup signal after, this disk partition enters and stops Status of Backups;
Step 206: in the increment monitor procedure, behind the arrival incremental backup time point, this subregion is carried out incremental backup, this subregion enters the incremental backup state;
Step 207: in the increment monitor procedure, receive stop backup signal after, this disk partition enters and stops Status of Backups;
Step 208: the backup subregion backed up in the past, after the startup backup, did not need this subregion is carried out full backup, and the backup subregion directly enters the increment monitor state from stopping Status of Backups.
Fig. 4 illustrates the implementation of backup control process, can further understand the implementation of standby system by this process, and this process comprises:
Step 401: after the startup, at first judge whether the Disk Backup subregion was carried out full backup, if do not carry out full backup, execution in step 402; If carried out full backup, direct execution in step 404;
Step 402: the state that will back up subregion is changed to the full backup state;
Step 403: start the backup read apparatus and write preceding read apparatus, carry out full backup;
Step 404: after full backup is finished, wait for the incremental backup time point;
Step 405: after the incremental backup time point arrives, start the backup read apparatus and write preceding read apparatus, carry out incremental backup operations.
Fig. 5 illustrates the workflow that the standby system of backup subregion when being in Status of Backups (full backup and incremental backup) carries out data backup.Full backup process and incremental backup process, except the mode difference of obtaining the backup snapshots table, other process all is identical, therefore can explain with reference to Fig. 5.When carrying out full backup, the backup snapshots table is to generate according to the behaviour in service of Disk Backup subregion, and when carrying out incremental backup, the backup snapshots table is to obtain according to the monitoring snapshot table that disk filtration drive device generates.
As shown in Figure 5, data backup process can be by backing up read apparatus, writing preceding read apparatus and three device cooperations of disk filtration drive device realization.In the backup procedure, the backup read apparatus is responsible for according to backup snapshots table reading disk sector data from the disk successively; Read apparatus is responsible for realizing preferentially the reading of write operation destination disc sector guaranteed the time consistency of Backup Data before writing; Disk filtration drive device is responsible for monitoring and is intercepted and captured disk write operation, and read apparatus sends and intercepts the signal of writing the IRP operation before writing, and IRP operation destination disc sector auxiliary information write in record.
In the backup procedure, the implementation of backup read apparatus comprises:
Step C501: judgement will be carried out incremental backup or full backup, if full backup, execution in step C502; If incremental backup, execution in step C503;
Step C502: the operating position according to disk generates the backup snapshots table, uses corresponding position in the snapshot table, sector all to be changed to 1;
Step C503: obtain the backup snapshots table from disk filtration drive device, the content of backup snapshots table is consistent with the content of monitoring snapshot table;
Step C504: circulation reading disk data, back up, if also have data to need backup, execution in step C505; If data backup is finished, execution in step C510;
Step C505: obtain visit lock to the backup snapshots table;
Step C506: read one section backup snapshots table;
Step C507: read the position corresponding disk sector data of backup snapshots table, return execution in step C504 for " 1 ";
Step C508: the disk sector data that will just back up corresponding position in the backup snapshots table is 0;
Step C509: discharge visit lock to the backup snapshots table;
Step C510: backup is finished, and changes the state that backs up subregion into the increment monitor state;
Step C511: send the signal that enters the increment monitor state to disk filtration drive device.
In the backup procedure, the implementation of read apparatus comprises before writing:
Step B501: circular wait disk filtration drive device sends writes intercepted signal, receive that disk filtration drive device sends intercept the signal of writing the IRP operation after, execution in step B502;
Step B502: judge the residing state of backup subregion, if be in the full backup state, execution in step B503 then; If be in the increment monitor state, then finish operation this time;
Step B503: obtain the information of writing IRP that disk is intercepted and captured;
Step B504: obtain visit lock to the backup snapshots table;
Step B505: judge whether the target sector write the IRP operation was read by the backup read apparatus, if do not backed up, then execution in step B506, B507 successively; If read by the backup read apparatus, then direct execution in step B508;
Step B506: read the target disk sectors of data of writing the IRP operation;
Step B507: with disk sector data corresponding position in the backup snapshots table of reading is 0;
Step B508: write the IRP all-clear to the transmission of disk filtration drive device;
Step B509: obtain visit lock to the backup snapshots table.
In the backup procedure, the implementation of disk filtration drive device comprises:
Step D5001: disk filtration drive device is monitored the signal of application layer transmission and is write the IRP operation, after intercepting write operation, with execution in step D5002; Behind the signal that enters the increment monitor state that receives the transmission of backup read apparatus, execution in step D5101; Behind the signal that reads the backup snapshots table that receives the backup read apparatus, execution in step D5201;
Step D5002: intercept disk and write the IRP operation;
Step D5003: judge whether the backup subregion is in Status of Backups, if be in Status of Backups, execution in step D5004; Otherwise, execution in step D5012;
Step D5004: judgement writes whether corresponding position in monitoring snapshot table, IRP target disk sector is " 1 ", for " 1 " shows that once intercepting this IRP that writes to these disk sectors operates then direct execution in step D5005; Otherwise, show intercept for the first time to these disk sectors write the IRP operation, then successively execution in step D5006 to D5011;
Step D5005: directly letting pass, this writes the IRP operation, and this IRP operation is sent to lower floor's disk drive;
Step D5006: read apparatus sends and intercepts the signal of writing the IRP operation before writing;
Step D5007: the all-clear of writing that waits preceding read apparatus transmission to be written;
Step D5008: receive write all-clear after, this IRP operation of letting pass being sent to lower floor's disk drive with this IRP operation;
Step D5009: obtain visit lock to monitoring snapshot table;
Step D5009: this is write IRP operate in that corresponding position is 1 in the monitoring snapshot table, show that the data of corresponding disk sector were modified at the increment monitoring period;
Step D5010: discharge visit lock to monitoring snapshot table.
Receive the signal that enters the increment monitor state of backup read apparatus transmission when disk filtration drive device after,, comprising execution in step D5101-D5103:
Step D5101: receive the signal that enters the increment monitor state;
Step D5102: read apparatus sends one and writes intercepted signal before writing;
Step D5103: change the state of backup disk subregion into the increment monitor state.
When disk filtration drive device receive that the backup read apparatus sends obtain the signal of backup snapshots table the time, with execution in step D5201-D5205, comprising:
Step D5201: receive the signal that obtains the backup snapshots table;
Step D5202: obtain visit lock to monitoring snapshot table;
Step D5203: will monitor the snapshot table and duplicate to the backup read apparatus as the backup snapshots table;
Step D5204: will monitor the whole zero clearings of snapshot table;
Step D5205: the state that will back up subregion changes the incremental backup state into;
Step D5206: discharge visit lock to monitoring snapshot table.
At the increment monitor procedure, the groundwork device is a disk filtration drive device, this device is in the increment monitor procedure, the main IRP that writes that is responsible for monitoring disk operates, and the destination sector corresponding position in monitoring snapshot table that will write the IRP operation is 1, represent that these disk sector data had been modified since Last Backup, these information are used for backup read apparatus in the incremental data backup procedure, and specifically implementation is as shown in Figure 6:
Step D601: disk filtration drive device is waited for the signal that application layer sends and is write the IRP operation;
Step D602: intercept disk and write the IRP operation;
Step D603: judge the Status of Backups of the target partition write the IRP operation, if be in the increment monitor state, execution in step D604-D606 successively then; Otherwise, execution in step D608;
Step D604: obtain visit lock to monitoring snapshot table;
Step D605: the corresponding position 1 of monitoring snapshot table that will write the target sector correspondence of IRP operation;
Step D606: discharge visit lock to monitoring snapshot table;
Step D607: this i/o request package of letting pass;
Step D608: carry out other associative operation of data backup.
It can be seen from the above, the present invention mainly solves backup data quantity constantly increases the more and more longer contradiction that can not stop with service application of the BACKUP TIME that is caused, technical matters to be solved is in the process of data backup, guarantee normal execution that continue of other service application, guarantee the time consistency of Backup Data simultaneously, avoid the problem that necessary interrupting service is used in the backup procedure, realize supporting that the disk level data of zero backup window back up, improve the practicality of data backup system.The present invention solves the data calamity simultaneously and is equipped with the The Application of Technology relativity problem, avoid designing and Implementing different standby systems at different service application, improve the application transparency and the versatility of data back up method and system, realization is carried out the data calamity based on the disk filtration drive and is equipped with the upper-layer service application irrelevant, need not strengthen the versatility and the practicality of data backup technology at the concrete service application data backup system different with design of database system.
It should be noted that at last, above embodiment is only in order to describe technical scheme of the present invention rather than the present technique method is limited, the present invention can extend to other modification, variation, application and embodiment on using, and therefore thinks that all such modifications, variation, application, embodiment are in spirit of the present invention and teachings.

Claims (17)

1, a kind of magnetic disk data backup system of supporting zero backup window comprises: backup control device, write preceding read apparatus, backup read apparatus, disk filtration drive device and backup snapshots table;
Wherein, described backup snapshots table is used for the recording disc sector data and whether needs backup;
Described backup control device is used to control described backup read apparatus and described startup and the termination of writing preceding read apparatus;
The disk sector data that described backup read apparatus is used for reading according to described backup snapshots table needs backups back up;
Described disk filtration drive device is used for monitoring and intercepts and captures disk write operation, and the read apparatus transmission intercepts to described writing before writes the IRP operation signal;
Read apparatus is used for receiving the signal that intercepts write operation of described disk filtration drive device transmission and sending the write operation all-clear to described disk filtration drive device at backup procedure before described the writing; Read apparatus reads the target sector data according to write operation signal and backup snapshots table and backs up before described the writing, and realizes preferentially reading the write operation targets disk sector.
2, the described system of claim 1, wherein, described system also comprises monitoring snapshot table, and described monitoring snapshot table is used for the disk sector data that the recording increment monitoring period is modified, and the target sector of mark write operation is used as the foundation of incremental backup; After described disk filtration drive device intercepted disk write operation, the target disk sector auxiliary information of IRP operation write in record in described monitoring snapshot table.
3, the described system of claim 1, wherein, described write before read apparatus receive described disk filtration drive device write intercepted signal after, according to the backup snapshots table, finish read the target sector data after, send the write operation all-clear to described disk filtration drive device.
4, the described system of claim 1, wherein, the read-write operation to disk can be intercepted and captured and distinguish to described disk filtration drive device; Wherein, described disk filtration drive device can obtain the read-write operation of upper layer application layer to described disk.
5, the described system of claim 1, wherein, described system can carry out full backup and incremental backup; When full backup, described backup read apparatus only backs up the use sectors of data according to the behaviour in service of backup disk; When incremental backup, described backup read apparatus obtains from described disk filtration drive device and carries out the backup snapshots table that data backup is used, and only backs up the disk sector data of more correcting one's mistakes behind the incremental backup from last time.
6, the described system of claim 2, wherein, preferred, described monitoring snapshot table leaves kernel state in.
7, the described system of claim 1, wherein, preferred, described backup snapshots table leaves user's attitude in.
8, the described system of claim 1, wherein, described backup snapshots table is represented to back up in the subregion each disk sector and bunch whether is needed backup.
9, the described system of claim 2, wherein, whether the data that described monitoring snapshot table represents to back up each disk sector in the subregion bunch were modified at the increment monitoring period.
10, the described system of claim 1, wherein, described disk filtration drive device can be in four kinds of states: idle condition, blocked state is read monitor state and complete monitor state before writing; When described disk filtration drive device was in idle condition, only operation was simply transmitted to disk read-write; When described disk filtration drive device was in blocked state, disk write operation was blocked in the read operation of only transmitting disk; When beginning to carry out full dose/incremental backup, described disk filtration drive device is read monitor state before entering and writing, before described writing read apparatus send intercept write the IRP operation signal; After full dose/incremental backup operations was finished, described disk filtration drive device entered complete monitor state, directly the disk write operation of letting pass and intercepting.
11, a kind of disk level data backup method of supporting zero backup window comprises:
Step 10), obtain and be used for the recording disc sector data and whether need the backup snapshots table that backs up;
Step 20), the disk sector data that read the needs backup from the disk successively according to the described backup snapshots table that obtains back up, and begin to monitor disk operating simultaneously;
Step 30), monitor disk write operation, intercepting and capturing disk write operation;
Step 40) if during backing up, intercept write operation signal, from described write the disk reading of data and finished after, send the signal of clearance write operation, finish and write preceding read operation.
12, the described method of claim 11, wherein, step 30) further comprise:
Step 31), intercept disk write operation after, the target sector of write operation is marked in the monitoring snapshot table, wherein, described monitoring snapshot table is used for the disk sector data that the recording increment monitoring period is modified and the target sector of mark write operation.
13, the described method of claim 12, wherein, described method further comprises:
Step 50), read described monitoring snapshot table, carry out incremental backup, keep the monitoring disk operating simultaneously.
14, the described method of claim 13 wherein, when incremental backup, generates the backup snapshots table according to monitoring snapshot table.
15, the described method of claim 11, wherein, step 20) further comprise: obtain visit lock to the backup snapshots table; Read the disk sector data of need backup corresponding in the backup snapshots table; Revise the backup snapshots table, discharge visit lock the backup snapshots table; After finishing, backup enters the increment monitor state.
16, the described method of claim 12, wherein, step 31) further comprise:
Step 310), signal and the disk that intercepts the application layer transmission write the IRP operation;
Step 320), obtain monitoring the visit lock of snapshot table;
Step 330), revise the corresponding positions of the monitoring snapshot table of the target sector correspondence of writing the IRP operation;
Step 340), discharge monitoring the visit lock of snapshot table; The described IRP that writes that lets pass operates.
17, the described method of claim 11, wherein, step 40) further comprise:
Step 410), receive the signal of writing the IRP operation that intercepts of disk filtration drive transmission;
Step 420), when being in Status of Backups, obtain the information of writing IRP of intercepting and capturing, obtain the visit of backup snapshots table lock;
Step 430), read the target disk sectors of data of writing IRP operation, revise disk sector data corresponding position in the backup snapshots table of reading;
Step 440), send clearance and write the IRP operation signal.
CN2008101023452A 2008-03-20 2008-03-20 Magnetic disk data backup system and method supporting nought backup window Expired - Fee Related CN101256528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101023452A CN101256528B (en) 2008-03-20 2008-03-20 Magnetic disk data backup system and method supporting nought backup window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101023452A CN101256528B (en) 2008-03-20 2008-03-20 Magnetic disk data backup system and method supporting nought backup window

Publications (2)

Publication Number Publication Date
CN101256528A true CN101256528A (en) 2008-09-03
CN101256528B CN101256528B (en) 2010-07-28

Family

ID=39891369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101023452A Expired - Fee Related CN101256528B (en) 2008-03-20 2008-03-20 Magnetic disk data backup system and method supporting nought backup window

Country Status (1)

Country Link
CN (1) CN101256528B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295276B (en) * 2008-06-20 2010-06-09 中国科学院计算技术研究所 Magnetic disk data backup system and method
CN101394424B (en) * 2008-10-27 2011-11-09 中国科学院计算技术研究所 Hard disc stage network data backup system and method
CN102479118A (en) * 2010-11-30 2012-05-30 英业达集团(天津)电子技术有限公司 Incremental backup method for data blocks
CN103324442A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 I/O request processing method and electronic equipment
CN105224418A (en) * 2015-09-06 2016-01-06 福建三元达通讯股份有限公司 A kind of data back up method and device
CN105740101A (en) * 2016-01-29 2016-07-06 青岛海尔智能家电科技有限公司 Automatic backup and automatic restoration method and apparatus for MySQL database
CN103324442B (en) * 2012-03-23 2016-11-30 联想(北京)有限公司 A kind of method processing I/O request and electronic equipment
WO2017211099A1 (en) * 2016-06-06 2017-12-14 华为技术有限公司 Data backup method and apparatus
CN109614055A (en) * 2018-12-21 2019-04-12 杭州宏杉科技股份有限公司 Snapshot creation method, device, electronic equipment and machine readable storage medium
CN109857596A (en) * 2019-03-07 2019-06-07 张倩 Time consistency backup method, equipment, system, device and storage medium
CN111722805A (en) * 2020-06-19 2020-09-29 艾索信息股份有限公司 System and method for efficiently acquiring read-write IO data information of disk

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295276B (en) * 2008-06-20 2010-06-09 中国科学院计算技术研究所 Magnetic disk data backup system and method
CN101394424B (en) * 2008-10-27 2011-11-09 中国科学院计算技术研究所 Hard disc stage network data backup system and method
CN102479118A (en) * 2010-11-30 2012-05-30 英业达集团(天津)电子技术有限公司 Incremental backup method for data blocks
CN103324442A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 I/O request processing method and electronic equipment
CN103324442B (en) * 2012-03-23 2016-11-30 联想(北京)有限公司 A kind of method processing I/O request and electronic equipment
CN105224418A (en) * 2015-09-06 2016-01-06 福建三元达通讯股份有限公司 A kind of data back up method and device
CN105740101A (en) * 2016-01-29 2016-07-06 青岛海尔智能家电科技有限公司 Automatic backup and automatic restoration method and apparatus for MySQL database
WO2017211099A1 (en) * 2016-06-06 2017-12-14 华为技术有限公司 Data backup method and apparatus
CN109614055A (en) * 2018-12-21 2019-04-12 杭州宏杉科技股份有限公司 Snapshot creation method, device, electronic equipment and machine readable storage medium
CN109857596A (en) * 2019-03-07 2019-06-07 张倩 Time consistency backup method, equipment, system, device and storage medium
CN109857596B (en) * 2019-03-07 2021-04-06 张倩 Time consistency backup method, equipment, system, device and storage medium
CN111722805A (en) * 2020-06-19 2020-09-29 艾索信息股份有限公司 System and method for efficiently acquiring read-write IO data information of disk

Also Published As

Publication number Publication date
CN101256528B (en) 2010-07-28

Similar Documents

Publication Publication Date Title
CN101295276B (en) Magnetic disk data backup system and method
CN101256528B (en) Magnetic disk data backup system and method supporting nought backup window
US7383407B1 (en) Synchronous replication for system and data security
US8868858B2 (en) Method and apparatus of continuous data backup and access using virtual machines
CN101403988B (en) File back-up system and method of computer system
EP1907935B1 (en) System and method for virtualizing backup images
US8229897B2 (en) Restoring a file to its proper storage tier in an information lifecycle management environment
US9501231B2 (en) Storage system and storage control method
CN100430945C (en) Device and method for writing data into disc by dynamic switching
US7685171B1 (en) Techniques for performing a restoration operation using device scanning
US8448167B2 (en) Storage system, and remote copy control method therefor
US20110231698A1 (en) Block based vss technology in workload migration and disaster recovery in computing system environment
US8219768B2 (en) System and method for establishing a copy pair relationship between source and destination volumes
CN104239166A (en) Method for realizing file backup for running virtual machine
EP2425344B1 (en) Method and system for system recovery using change tracking
CN101441582A (en) Backup and recovery method of computer data object and system and program product for implementing the same
CN102214127A (en) Method for intensively storing and backing up data based on operating system virtualization theory
WO2011129987A2 (en) Express-full backup of a cluster shared virtual machine
JPH0644010A (en) Method and system for polling under sub-file in time zero-backup-copy-process
US20130054529A1 (en) Shadow copy bookmark generation
CN101501653B (en) Long term backup on disk
JP2014142852A (en) Storage system and control device
WO2013107295A9 (en) Method for recovering hard drive data, server and distributed storage system
US9262290B2 (en) Flash copy for disaster recovery (DR) testing
CN111475334A (en) TiDB database maintenance method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100728

Termination date: 20190320

CF01 Termination of patent right due to non-payment of annual fee