[go: up one dir, main page]

CN100478904C - Method and device for protecting snapshot - Google Patents

Method and device for protecting snapshot Download PDF

Info

Publication number
CN100478904C
CN100478904C CNB2007101303637A CN200710130363A CN100478904C CN 100478904 C CN100478904 C CN 100478904C CN B2007101303637 A CNB2007101303637 A CN B2007101303637A CN 200710130363 A CN200710130363 A CN 200710130363A CN 100478904 C CN100478904 C CN 100478904C
Authority
CN
China
Prior art keywords
snapshot
copy
data
indication
mapping table
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.)
Active
Application number
CNB2007101303637A
Other languages
Chinese (zh)
Other versions
CN101093459A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2007101303637A priority Critical patent/CN100478904C/en
Publication of CN101093459A publication Critical patent/CN101093459A/en
Priority to PCT/CN2008/071345 priority patent/WO2009009979A1/en
Application granted granted Critical
Publication of CN100478904C publication Critical patent/CN100478904C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/84Using snapshots, i.e. a logical point-in-time copy of the data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种快照保护方法,对快照创建快照副本,分别对快照和快照副本执行操作。本发明还提供相应的快照保护装置。本发明由于采用快照副本对快照数据进行备份,使得即使修改了快照数据,也可以通过快照副本来恢复快照时间点的数据,对快照提供了有效的保护;同时,基于快照和快照的若干副本,能够满足对同一时间点快照数据的并行操作要求。

Figure 200710130363

The invention discloses a snapshot protection method. A snapshot copy is created for the snapshot, and operations are performed on the snapshot and the snapshot copy respectively. The invention also provides a corresponding snapshot protection device. Because the present invention uses the snapshot copy to back up the snapshot data, even if the snapshot data is modified, the data at the snapshot time point can be restored through the snapshot copy, which provides effective protection for the snapshot; at the same time, based on the snapshot and several copies of the snapshot, It can meet the parallel operation requirements for snapshot data at the same point in time.

Figure 200710130363

Description

快照保护方法及装置 Snapshot protection method and device

技术领域 technical field

本发明涉及数据保护技术领域,具体涉及一种快照保护方法及装置。The invention relates to the technical field of data protection, in particular to a snapshot protection method and device.

背景技术 Background technique

随着信息科学技术的广泛应用与不断发展,数据量迅猛增长,数据保护也变得越来越重要。为能够在不中断主机业务的前提下,快速生成业务应用的数据对象在某时间点的副本,并占用较少的存储空间,已经提出了虚拟快照技术对业务运行中某个时刻的应用数据进行备份。在本文中,将为业务应用提供数据存储和访问空间的卷称为生产卷。快照创建后,对快照的访问可以和对生产卷的访问同时进行,当生产卷希望恢复到快照时间点的数据时,可对生产卷执行快照回滚,在一定程度上保障了数据的可靠性和完整性。With the wide application and continuous development of information science and technology, the amount of data is increasing rapidly, and data protection is becoming more and more important. In order to quickly generate a copy of the data object of the business application at a certain point in time without interrupting the host business, and occupy less storage space, a virtual snapshot technology has been proposed to perform a snapshot of the application data at a certain point in the business operation. backup. In this article, volumes that will provide data storage and access space for business applications are called production volumes. After the snapshot is created, the access to the snapshot can be performed simultaneously with the access to the production volume. When the production volume wants to restore the data at the snapshot time point, the snapshot rollback can be performed on the production volume, which ensures the reliability of the data to a certain extent. and integrity.

现有虚拟快照技术的一般方法描述如下:The general method of existing virtual snapshot technology is described as follows:

1、在创建快照时,生成一个映射表,指示快照的实际数据的存放位置。显然,快照创建最初,其映射表中的地址指针都指向生产卷中。此过程的一个示例如图1所示,快照通过映射表指示生产卷某时刻的数据A、B、C、D,此时快照数据共享生产卷的数据存储空间。1. When creating a snapshot, generate a mapping table indicating where the actual data of the snapshot is stored. Obviously, at the beginning of snapshot creation, the address pointers in its mapping table all point to the production volume. An example of this process is shown in Figure 1. The snapshot indicates the data A, B, C, and D of the production volume at a certain moment through the mapping table. At this time, the snapshot data shares the data storage space of the production volume.

2、当要对生产卷做修改时,先将要改动部分的数据复制到快照的资源卷,并修改快照的映射表,使指针指向资源卷中相应位置,然后对生产卷做修改,这种方法称为写前拷贝(COW:Copy-On-Write)。基于图1此过程的一个示例如图2所示,当主机需要将生产卷中的数据“D”写为“E”时,先将“D”复制到快照的资源卷,然后再将生产卷中的“D”修改为“E”,并修改快照的映射表,使与数据“D”对应的指针指向资源卷中相应位置。当然,如果对已经做了写前拷贝的部分再次进行修改,则可直接进行,不再进行写前拷贝。2. When modifying the production volume, first copy the data to be modified to the resource volume of the snapshot, and modify the mapping table of the snapshot so that the pointer points to the corresponding position in the resource volume, and then modify the production volume. This method It is called Copy-On-Write (COW: Copy-On-Write). An example of this process based on Figure 1 is shown in Figure 2. When the host needs to write data "D" in the production volume to "E", first copy "D" to the resource volume of the snapshot, and then copy the production volume Change "D" in "E" to "E", and modify the snapshot mapping table so that the pointer corresponding to data "D" points to the corresponding location in the resource volume. Of course, if the part that has been copied before writing is modified again, it can be directly carried out without copying before writing.

由上可以看出,虚拟快照建立了一份创建时间点上生产卷数据的逻辑副本,快照数据与生产卷数据尽量共用物理存储空间。当读快照时,根据快照的映射表中的映射信息,到生产卷或快照的资源卷中相应的位置读取数据;当写快照时,根据映射表中的映射信息,如果要写入的部分已经指向快照的资源卷中,则根据指针将数据覆盖写入资源卷中相应位置;如果要写入的部分仍然指向生产卷中,则将数据写入资源卷中,并修改映射表,使指针指向资源卷中相应位置。It can be seen from the above that the virtual snapshot establishes a logical copy of the production volume data at the creation time point, and the snapshot data and the production volume data share the physical storage space as much as possible. When reading a snapshot, according to the mapping information in the mapping table of the snapshot, read data from the corresponding location in the production volume or the resource volume of the snapshot; when writing a snapshot, according to the mapping information in the mapping table, if the part to be written Already pointing to the resource volume of the snapshot, then overwrite the data to the corresponding location in the resource volume according to the pointer; if the part to be written still points to the production volume, write the data to the resource volume, and modify the mapping table so that the pointer Points to the corresponding location in the resource volume.

在提出本发明的过程中,本发明的发明人发现上述虚拟快照技术至少存在如下缺陷:无法对快照数据提供保护,一旦用户修改了快照数据,生产卷将无法恢复到最初快照时间点的数据;并且不利于满足某些应用场合的要求,例如,多台应用主机同时处理某时间点快照数据的要求等。In the process of proposing the present invention, the inventors of the present invention found that the above-mentioned virtual snapshot technology has at least the following defects: the snapshot data cannot be protected, and once the user modifies the snapshot data, the production volume cannot be restored to the data at the original snapshot time point; And it is not conducive to meeting the requirements of some application scenarios, for example, the requirement that multiple application hosts process snapshot data at a certain point in time at the same time.

发明内容 Contents of the invention

本发明实施例提供一种能够对快照数据提供保护的快照保护方法,包括:获取对第一快照创建快照副本的指示;按照所述创建快照副本的指示,创建第一快照的副本;获取对第一快照和/或第一快照的副本的操作指示;按照所述操作指示,对第一快照和/或第一快照的副本执行相应的操作。An embodiment of the present invention provides a snapshot protection method capable of providing protection for snapshot data, including: obtaining an instruction for creating a snapshot copy of the first snapshot; creating a copy of the first snapshot according to the instruction for creating a snapshot copy; An operation instruction of a snapshot and/or a copy of the first snapshot; according to the operation instruction, a corresponding operation is performed on the first snapshot and/or the copy of the first snapshot.

本发明实施例还提供相应的快照保护装置,包括:保护触发单元,用于获取对第一快照创建快照副本的指示;副本创建单元,用于按照所述创建快照副本的指示,创建第一快照的副本;操作触发单元,用于获取对第一快照和/或第一快照的副本的操作指示;操作执行单元,用于按照所述操作指示,对第一快照和/或第一快照的副本执行相应的操作。The embodiment of the present invention also provides a corresponding snapshot protection device, including: a protection trigger unit, configured to obtain an instruction to create a snapshot copy of the first snapshot; a copy creation unit, configured to create the first snapshot according to the instruction for creating a snapshot copy the copy of the first snapshot; the operation triggering unit is used to obtain the operation instruction of the first snapshot and/or the copy of the first snapshot; the operation execution unit is used for according to the operation instruction, the first snapshot and/or the first snapshot copy Take the appropriate action.

本发明实施例采用对快照创建快照副本,分别对快照和快照副本执行操作的方法;由于采用快照副本对快照数据进行备份,使得即使修改了快照数据,也可以通过快照副本来恢复快照时间点的数据,对快照提供了有效的保护;同时,基于快照和快照的若干副本,能够满足对同一时间点快照数据的并行操作要求,例如,可满足多台应用主机同时处理某时间点快照数据的要求等。The embodiment of the present invention adopts the method of creating a snapshot copy for the snapshot and performing operations on the snapshot and the snapshot copy respectively; since the snapshot data is backed up by the snapshot copy, even if the snapshot data is modified, the snapshot time point can be restored through the snapshot copy Data provides effective protection for snapshots; at the same time, based on snapshots and several copies of snapshots, it can meet the parallel operation requirements for snapshot data at the same point in time, for example, it can meet the requirements of multiple application hosts to process snapshot data at a point in time at the same time wait.

附图说明 Description of drawings

图1是现有虚拟快照创建示意图;Fig. 1 is a schematic diagram of creating an existing virtual snapshot;

图2是现有虚拟快照写前拷贝操作示意图;FIG. 2 is a schematic diagram of an existing virtual snapshot copy-before-write operation;

图3是本发明实施例一快照保护方法流程示意图;3 is a schematic flow chart of a snapshot protection method according to Embodiment 1 of the present invention;

图4是本发明实施例一中通过数据拷贝创建快照副本示意图;FIG. 4 is a schematic diagram of creating a snapshot copy through data copy in Embodiment 1 of the present invention;

图5是本发明实施例二快照保护方法流程示意图;FIG. 5 is a schematic flowchart of a snapshot protection method according to Embodiment 2 of the present invention;

图6是本发明实施例二中通过复制映射表创建快照副本示意图;6 is a schematic diagram of creating a snapshot copy by copying a mapping table in Embodiment 2 of the present invention;

图7是本发明实施例二中快照及快照副本写前拷贝示意图;7 is a schematic diagram of a snapshot and a copy-before-write snapshot copy in Embodiment 2 of the present invention;

图8是本发明实施例二中写快照示意图;FIG. 8 is a schematic diagram of writing a snapshot in Embodiment 2 of the present invention;

图9是本发明实施例三快照保护方法流程示意图;FIG. 9 is a schematic flowchart of a snapshot protection method according to Embodiment 3 of the present invention;

图10是本发明实施例三中通过复制映射表和资源卷创建快照副本示意图;10 is a schematic diagram of creating a snapshot copy by copying a mapping table and a resource volume in Embodiment 3 of the present invention;

图11是本发明实施例四快照保护方法流程示意图;FIG. 11 is a schematic flowchart of a snapshot protection method according to Embodiment 4 of the present invention;

图12是本发明实施例四中通过共享映射表创建快照副本示意图;12 is a schematic diagram of creating a snapshot copy through a shared mapping table in Embodiment 4 of the present invention;

图13是本发明实施例四中快照及快照副本写前拷贝示意图;13 is a schematic diagram of a snapshot and a copy-before-write snapshot copy in Embodiment 4 of the present invention;

图14是本发明实施例四中写快照示意图;FIG. 14 is a schematic diagram of writing a snapshot in Embodiment 4 of the present invention;

图15是本发明实施例五快照保护装置逻辑结构示意图;Fig. 15 is a schematic diagram of the logical structure of a snapshot protection device according to Embodiment 5 of the present invention;

图16是本发明实施例六快照保护装置逻辑结构示意图;Fig. 16 is a schematic diagram of the logical structure of a snapshot protection device according to Embodiment 6 of the present invention;

图17是本发明实施例七快照保护装置逻辑结构示意图;Fig. 17 is a schematic diagram of the logical structure of a snapshot protection device according to Embodiment 7 of the present invention;

图18是本发明实施例八快照保护装置逻辑结构示意图。FIG. 18 is a schematic diagram of a logical structure of a snapshot protection device according to Embodiment 8 of the present invention.

具体实施方式 Detailed ways

本发明实施例提供了一种快照保护方法,对快照创建快照副本,分别对快照和快照副本执行操作。本发明实施例还提供相应的快照保护装置。以下分别进行详细说明。The embodiment of the present invention provides a snapshot protection method, which creates a snapshot copy for the snapshot, and performs operations on the snapshot and the snapshot copy respectively. The embodiment of the present invention also provides a corresponding snapshot protection device. Each will be described in detail below.

实施例一、一种快照保护方法,流程如图3所示,包括:Embodiment 1. A snapshot protection method, the process of which is shown in FIG. 3 , including:

A1、获取对第一快照创建快照副本的指示。A1. Obtain an instruction to create a snapshot copy for the first snapshot.

本实施例中的第一快照具有普遍的含义,即以映像方式进行数据保存的数据对象。第一快照可以是直接由生产卷创建的快照,也可以是执行了修改操作后的快照;并且如果创建的快照副本仍然保留映像式的数据结构,即仍可称为“快照”,则第一快照还可以是另一快照的副本,也就是说可以指示对快照的副本再创建副本。The first snapshot in this embodiment has a general meaning, that is, a data object that stores data in an image manner. The first snapshot can be created directly from the production volume, or it can be a snapshot after the modification operation is performed; and if the created snapshot copy still retains the image-like data structure, that is, it can still be called a "snapshot", then the first A snapshot can also be a copy of another snapshot, which means that a copy of a copy of a snapshot can be instructed to be recreated.

对同一快照可一次或多次指示创建快照副本,创建快照副本的指示可以在第一快照创建之初或创建之后随时作出。具体的指示下达方式和时机可根据应用情况确定,包括但不限于如下示例:The same snapshot can be instructed to create a snapshot copy one or more times, and the instruction to create a snapshot copy can be made at the beginning of creation of the first snapshot or at any time after creation. The specific method and timing of issuing instructions can be determined according to the application situation, including but not limited to the following examples:

为保护快照的原始数据,可在需要对快照进行修改前,指示创建快照副本;In order to protect the original data of the snapshot, you can instruct the creation of a snapshot copy before the snapshot needs to be modified;

为保护修改后的快照,可在进行快照修改后,或在进行快照恢复前,或在进行再次修改前,指示创建修改后的快照副本;In order to protect the modified snapshot, you can instruct to create a modified snapshot copy after the snapshot is modified, or before the snapshot is restored, or before it is modified again;

为将快照提供给多台应用主机使用,可在快照创建之初即按照主机数目指示创建不少于主机数目的快照副本,或按照需要随时指示创建快照副本,以增加快照数量。In order to provide snapshots to multiple application hosts, you can create snapshot copies not less than the number of hosts at the beginning of snapshot creation, or create snapshot copies at any time according to the instructions to increase the number of snapshots.

A2、按照所述创建快照副本的指示,创建第一快照的副本。A2. Create a copy of the first snapshot according to the instructions for creating a snapshot copy.

创建快照的副本可采用各种能够完整保存快照数据信息的方式,包括但不限于:A copy of the snapshot can be created in various ways that can completely preserve the snapshot data information, including but not limited to:

方式一、对与第一快照的映射表对应的数据进行数据拷贝,以所述数据拷贝的内容作为第一快照的副本。此方式的一个示例如图4所示,图4中第一快照保存了某时刻生产卷的数据映像A、B、C、D,可通过数据拷贝将第一快照复制若干份完整副本,分别为快照副本1~n。复制数量和时机由步骤A1中获取的创建快照副本的指示来确定,快照副本的应用包括但不限于如下示例:Mode 1: Data copying is performed on the data corresponding to the mapping table of the first snapshot, and the content of the data copy is used as a copy of the first snapshot. An example of this method is shown in Figure 4. In Figure 4, the first snapshot saves the data images A, B, C, and D of the production volume at a certain time, and several complete copies of the first snapshot can be copied through data copying, respectively Snapshot copies 1 to n. The number and timing of duplication are determined by the instruction to create a snapshot copy obtained in step A1. The application of the snapshot copy includes but is not limited to the following examples:

为保护第一快照,指示创建第一快照的快照副本1,当第一快照被修改,而生产卷希望恢复到第一快照时间点的数据时,先将快照副本1完整复制到第一快照,然后对生产卷执行快照回滚;To protect the first snapshot, create snapshot copy 1 of the first snapshot. When the first snapshot is modified and the production volume wants to restore the data at the time point of the first snapshot, copy the snapshot copy 1 to the first snapshot first. Then perform a snapshot rollback on the production volume;

为进行多主机应用,指示创建第一快照的快照副本1~n,然后根据应用需求映射给多个主机;For multi-host applications, instruct to create snapshot copies 1~n of the first snapshot, and then map to multiple hosts according to application requirements;

为保护修改后的第一快照,每到第一快照修改后即指示创建修改后的第一快照的快照副本。To protect the modified first snapshot, it is instructed to create a snapshot copy of the modified first snapshot every time the first snapshot is modified.

方式二、采用映像式的数据结构创建第一快照的副本,使得快照和快照副本部分共享或尽量共享数据存储空间。快照和快照副本可以只共享生产卷中的数据,也可以还共享写前拷贝数据等,这种方式创建的快照副本与快照具有相同的数据结构形式,同样可被视为生产卷的快照,采用与快照相同的操作处理方式。Method 2: Create a copy of the first snapshot using an image data structure, so that the snapshot and the snapshot copy partly share or share the data storage space as much as possible. The snapshot and the snapshot copy can only share the data in the production volume, or they can also share the copy-before-write data, etc. The snapshot copy created in this way has the same data structure as the snapshot, and can also be regarded as a snapshot of the production volume. Operations are handled in the same way as snapshots.

A3、获取对第一快照和/或第一快照的副本的操作指示。A3. Obtain an operation instruction on the first snapshot and/or a copy of the first snapshot.

本文中所称操作指示包括保持数据对象内容不变的操作指示和对数据对象执行修改的操作指示,其中:The operation instruction referred to in this article includes the operation instruction of keeping the content of the data object unchanged and the operation instruction of modifying the data object, wherein:

保持数据对象内容不变的操作包括:对快照或快照副本的读操作;在快照或快照副本采用映像式的数据结构的情况下,当数据映像发生修改时为保持快照或快照副本的数据内容不变而进行的写前拷贝操作等。这类操作指示可对某个指定的快照或快照副本作出,也可对某些快照或快照副本作出。例如,可以指示读某个指定的快照;也可以由于生产卷数据修改,指示所有共享生产卷数据的快照和快照副本执行写前拷贝操作。当然对于通过数据拷贝方式完整复制获得的快照副本,由于其采用独立的物理存储,因此在生产卷数据修改时不会对其造成影响。The operation of keeping the content of the data object unchanged includes: the read operation of the snapshot or the snapshot copy; in the case that the snapshot or the snapshot copy adopts the image data structure, when the data image is modified, the data content of the snapshot or the snapshot copy is not changed. Copy-before-write operations, etc. Such operation instructions may be made to a specified snapshot or snapshot copy, or to certain snapshots or snapshot copies. For example, you can instruct to read a specified snapshot; you can also instruct all snapshots and snapshot copies that share data in the production volume to perform a copy-before-write operation due to data modification in the production volume. Of course, for the snapshot copy obtained through full copy of data copy, since it uses independent physical storage, it will not be affected when the data of the production volume is modified.

对数据对象执行修改的操作包括对快照或快照副本的写操作、恢复操作等,这些操作通常会指示指定的执行对象,例如指示写某个指定的快照或快照副本。Operations that modify data objects include write operations on snapshots or snapshot copies, recovery operations, etc. These operations usually indicate a specified execution object, such as instructing to write a specified snapshot or snapshot copy.

此外,为更好的控制快照和快照副本的可操作性,操作指示中还可包括一类特别的状态设置指示,该指示通常对指定的快照或快照副本作出。通过指示将指定快照或快照副本的状态设置为可用或不可用,更好的进行数据保护,避免误操作。例如,可规定当快照状态设置为不可用时,不能对该快照执行修改类操作,以保证该快照数据内容不变;该示例的一种应用场景为,在某快照由生产卷创建后,创建该快照的若干副本提供给应用或测试使用,而将该快照设置为不可用,保证原始数据的完整与准确。In addition, in order to better control the operability of the snapshot and the snapshot copy, the operation instruction may also include a special status setting instruction, which is usually made for the specified snapshot or snapshot copy. By instructing to set the status of the specified snapshot or snapshot copy as available or unavailable, better data protection and avoid misoperation. For example, it can be stipulated that when the snapshot status is set to unavailable, no modification operations can be performed on the snapshot to ensure that the data content of the snapshot remains unchanged; an application scenario of this example is to create the snapshot after it is created by the production volume. Several copies of the snapshot are provided for application or testing, and the snapshot is set to be unavailable to ensure the integrity and accuracy of the original data.

A4、按照所述操作指示,对第一快照和/或第一快照的副本执行相应的操作。A4. Perform corresponding operations on the first snapshot and/or a copy of the first snapshot according to the operation instruction.

具体操作内容可按照操作指示执行,快照和快照副本均可作为独立的操作对象。需要说明的是,基于快照副本的创建方式,有可能在执行步骤A2创建快照副本的过程中需要进行数据内容的复制,若在步骤A2尚未完成时,即快照副本尚未创建完成时,获取到步骤A3的操作指示,并且该操作指示涉及正在创建中的快照副本,可采用如下方式:The specific operation content can be executed according to the operation instructions, and both the snapshot and the snapshot copy can be used as independent operation objects. It should be noted that based on the creation method of the snapshot copy, it is possible to copy the data content during the process of creating the snapshot copy in step A2. The operation instruction of A3, and the operation instruction involves the snapshot copy being created, the following methods can be adopted:

若操作指示是针对快照副本已复制部分的内容的,则按照指示执行即可;若操作指示针对的是快照副本未复制部分的内容的,则可等待该部分复制后再执行相应的操作。If the operation instruction is for the content of the copied part of the snapshot copy, follow the instruction; if the operation instruction is for the content of the uncopied part of the snapshot copy, you can wait for the part to be copied before performing the corresponding operation.

本实施例采用对快照创建快照副本,分别对快照和快照副本执行操作的方法;由于采用快照副本对快照数据进行备份,使得即使修改了快照数据,也可以通过快照副本来恢复快照时间点的数据,对快照提供了有效的保护;同时,基于快照和快照的若干副本,能够满足对同一时间点快照数据的并行操作要求。This embodiment adopts the method of creating a snapshot copy of the snapshot and performing operations on the snapshot and the snapshot copy respectively; since the snapshot data is backed up by the snapshot copy, even if the snapshot data is modified, the snapshot time point data can be restored through the snapshot copy , provides effective protection for snapshots; at the same time, based on snapshots and several copies of snapshots, it can meet the parallel operation requirements for snapshot data at the same point in time.

下面基于实施例一提出若干种采用创建快照副本的方式的保护快照的方法。Several methods for protecting snapshots by creating snapshot copies are proposed below based on the first embodiment.

实施例二、一种快照保护方法,与实施例一中提供的通过数据拷贝创建快照副本的方式相比,区别之处在于采用复制映射表的方式创建快照副本,流程如图5所示,包括:Embodiment 2. A snapshot protection method. Compared with the method of creating a snapshot copy by copying data provided in Embodiment 1, the difference is that the snapshot copy is created by copying the mapping table. The process is shown in Figure 5, including :

B1、获取对第一快照创建快照副本的指示。B1. Acquire an instruction to create a snapshot copy for the first snapshot.

此步骤可参考实施例一中的步骤A1。For this step, refer to step A1 in Embodiment 1.

B2、按照所述创建快照副本的指示,复制第一快照的映射表并创建第二快照,以所述复制的映射表作为第二快照的映射表,以第二快照作为第一快照的副本。B2. According to the instruction of creating a snapshot copy, copy the mapping table of the first snapshot and create a second snapshot, use the copied mapping table as the mapping table of the second snapshot, and use the second snapshot as a copy of the first snapshot.

此副本创建方式的一个示例如图6所示,图6中第一快照保存了某时刻生产卷的数据映像A、B、C、D,通过复制第一快照的映射表生成第二快照作为第一快照的副本,同理,还可以再次复制第一快照的映射表生成第三快照作为第一快照的又一份副本(当然,第三快照也可以是复制第二快照的映射表得到的第二快照的副本)。An example of this copy creation method is shown in Figure 6. In Figure 6, the first snapshot saves the data images A, B, C, and D of the production volume at a certain time, and the second snapshot is generated by copying the mapping table of the first snapshot as the second snapshot. A copy of a snapshot, similarly, the mapping table of the first snapshot can also be copied again to generate a third snapshot as another copy of the first snapshot (of course, the third snapshot can also be the first snapshot obtained by copying the mapping table of the second snapshot copy of the second snapshot).

通过复制映射表生成的快照副本与原快照具有相同的数据结构形式,同样可视为生产卷的快照,可视同普通快照执行修改、创建副本等操作。The snapshot copy generated by copying the mapping table has the same data structure as the original snapshot, and can also be regarded as a snapshot of the production volume, and can be modified and created like a normal snapshot.

B3、获取对第一快照和/或第二快照的操作指示。此步骤可参考实施例一中的步骤A3,示例如下:B3. Obtain an operation instruction for the first snapshot and/or the second snapshot. For this step, refer to step A3 in Embodiment 1, and the example is as follows:

B31、在生产卷发生数据修改时,获取对各个快照的写前拷贝指示;B31. Obtain copy-before-write instructions for each snapshot when data modification occurs in the production volume;

B32、获取对指定快照的修改指示。B32. Obtain an instruction to modify the specified snapshot.

B4、按照所述操作指示,对第一快照和/或第二快照执行相应的操作。B4. Perform corresponding operations on the first snapshot and/or the second snapshot according to the operation instruction.

例如,对于步骤B31获取的操作指示,执行步骤如下:For example, for the operation instruction obtained in step B31, the execution steps are as follows:

B411、将需要修改的生产卷数据拷贝到快照共享资源卷;B411. Copy the production volume data that needs to be modified to the snapshot shared resource volume;

B412、将第一快照的映射表和第二快照的映射表中与该数据对应的地址,修改为该数据在所述快照共享资源卷中的地址。B412. Modify the address corresponding to the data in the mapping table of the first snapshot and the mapping table of the second snapshot to the address of the data in the snapshot shared resource volume.

基于图6,上述步骤B411和B412的示意图如图7所示,当主机需要将生产卷中的数据“D”写为“E”时,先将“D”复制到快照的共享资源卷,然后再将生产卷中的“D”修改为“E”,并修改各个快照的映射表,使与数据“D”对应的指针指向快照共享资源卷中相应位置。由于图7中第三快照同样共享生产卷数据,因此也需要修改第三快照的映射表。当然,若主机修改的是已经进行了写前拷贝的部分的生产卷数据,则直接进行修改即可,无须再进行写前拷贝操作。Based on Figure 6, the schematic diagram of the above steps B411 and B412 is shown in Figure 7. When the host needs to write the data "D" in the production volume to "E", first copy "D" to the shared resource volume of the snapshot, and then Then modify the "D" in the production volume to "E", and modify the mapping table of each snapshot, so that the pointer corresponding to the data "D" points to the corresponding location in the snapshot shared resource volume. Since the third snapshot in FIG. 7 also shares the data of the production volume, the mapping table of the third snapshot also needs to be modified. Of course, if the host modifies the part of the production volume data that has already been copied before write, it can be modified directly without performing the copy before write operation.

由于在创建第二快照时需要复制第一快照的映射表,若在映射表尚未复制完成时获取到写前拷贝指示,则可判断该指示针对的映射信息是否已经被复制,若已经被复制,则按上述过程执行该指示即可,若尚未被复制,即第二快照与该指示相关的内容尚未被创建,可认为该写前拷贝指示仅对第一快照作出,因此不必对创建中的第二快照执行该指示。Since the mapping table of the first snapshot needs to be copied when the second snapshot is created, if the copy-before-write instruction is obtained before the copying of the mapping table is completed, it can be determined whether the mapping information targeted by the instruction has been copied, and if it has been copied, Then execute the instruction according to the above process. If it has not been copied, that is, the content related to the instruction in the second snapshot has not been created, it can be considered that the copy-before-write instruction is only made for the first snapshot, so there is no need to update the second snapshot that is being created. Two snapshots carry out this instruction.

对于步骤B32获取的操作指示,执行步骤如下:For the operation instruction obtained in step B32, the execution steps are as follows:

B421、判断需要修改的数据是否已拷贝到指定快照的私有资源卷中,若是,则执行步骤B424;若否,则执行步骤B422;B421, judging whether the data to be modified has been copied to the private resource volume of the specified snapshot, if yes, then perform step B424; if not, then perform step B422;

B422、将需要修改的数据拷贝到指定快照的私有资源卷;B422. Copy the data to be modified to the private resource volume of the specified snapshot;

B423、将指定快照的映射表中与该数据对应的地址,修改为该数据在指定快照的私有资源卷中的地址;B423. Modify the address corresponding to the data in the mapping table of the specified snapshot to the address of the data in the private resource volume of the specified snapshot;

B424、修改指定快照的私有资源卷中相应地址的数据。B424. Modify data at a corresponding address in the private resource volume of the specified snapshot.

基于图7,上述步骤B421~B424的示意图如图8所示,当主机需要将第一快照中的数据“C”修改为“F”时,先将“C”复制到第一快照的私有资源卷,然后将第一快照的映射表中“C”原来的地址信息修改为第一快照的私有资源卷中新的地址信息,再将第一快照的私有资源卷中的“C”修改为“F”。当然,如果后续主机还需要写第一快照,若需要修改的数据已拷贝到快照私有资源卷中,则可直接写入私有资源卷。此外,在执行上述步骤时,也可省略步骤B422,直接将要写入的数据写到快照私有资源卷中,然后修改快照映射表的相应指针指向该已写入的数据即可。Based on Figure 7, the schematic diagram of the above steps B421 to B424 is shown in Figure 8. When the host needs to modify the data "C" in the first snapshot to "F", first copy "C" to the private resource of the first snapshot volume, and then modify the original address information of "C" in the mapping table of the first snapshot to the new address information in the private resource volume of the first snapshot, and then modify the "C" in the private resource volume of the first snapshot to " F". Of course, if the subsequent host still needs to write the first snapshot, if the data to be modified has been copied to the private resource volume of the snapshot, it can be directly written into the private resource volume. In addition, when performing the above steps, step B422 can also be omitted, directly write the data to be written into the snapshot private resource volume, and then modify the corresponding pointer of the snapshot mapping table to point to the written data.

本实施例中采用复制映射表的方式创建快照的副本,快照与快照的副本不仅共享生产卷数据还具有共享资源卷,仅将对指定快照的修改部分存入其私有资源卷,使得快照及其副本尽量共享公共数据,节省存储空间。同时快照副本具有与快照相同的用户属性,仍然是生产卷的快照,可以与快照一样进行操作和处理。In this embodiment, the copy of the snapshot is created by duplicating the mapping table. The snapshot and the copy of the snapshot not only share the data of the production volume but also have a shared resource volume, and only the modified part of the specified snapshot is stored in its private resource volume, so that the snapshot and its Replicas share public data as much as possible to save storage space. At the same time, the snapshot copy has the same user attributes as the snapshot, and is still a snapshot of the production volume, which can be operated and processed in the same way as the snapshot.

实施例三、一种快照保护方法,与实施例一中提供的通过数据拷贝创建快照副本的方式相比,区别之处在于采用复制映射表和资源卷的方式创建快照副本,流程如图9所示,包括:Embodiment 3. A snapshot protection method. Compared with the method of creating a snapshot copy by copying data provided in Embodiment 1, the difference is that the snapshot copy is created by copying the mapping table and the resource volume. The process is shown in FIG. 9 display, including:

C1、获取对第一快照创建快照副本的指示。C1. Acquire an instruction to create a snapshot copy for the first snapshot.

此步骤可参考实施例一中的步骤A1。For this step, refer to step A1 in Embodiment 1.

C2、按照所述创建快照副本的指示,通过复制第一快照的映射表和资源卷来创建第二快照,以第二快照作为第一快照的副本;具体步骤包括:C2. Create a second snapshot by copying the mapping table and resource volume of the first snapshot according to the instructions for creating a snapshot copy, and use the second snapshot as a copy of the first snapshot; the specific steps include:

C21、复制第一快照的映射表中的映射信息;C21. Copy the mapping information in the mapping table of the first snapshot;

C22、判断所复制的映射信息中的地址是否指向第一快照的资源卷,若是则执行步骤C23;若否,则继续执行步骤C21,复制第一快照的映射表中的另一映射信息;C22. Determine whether the address in the copied mapping information points to the resource volume of the first snapshot, if so, execute step C23; if not, continue to execute step C21, and copy another mapping information in the mapping table of the first snapshot;

C23、将第一快照的资源卷中所述地址对应的数据复制到第二快照的资源卷中,并使第二快照的映射表中该部分的映射信息指向第二快照的资源卷中的相应地址,然后继续执行步骤C21,复制第一快照的映射表中的另一映射信息;C23. Copy the data corresponding to the address in the resource volume of the first snapshot to the resource volume of the second snapshot, and make the mapping information of this part in the mapping table of the second snapshot point to the corresponding address in the resource volume of the second snapshot. address, and then proceed to step C21 to copy another mapping information in the mapping table of the first snapshot;

C24、第一快照的映射表复制完成。C24. The mapping table of the first snapshot is copied.

此副本创建方式的一个示例如图10所示,图10中第一快照保存了某时刻生产卷的数据映像A、B、C、D,其中数据A、B、C指向生产卷,数据D指向第一快照的资源卷。通过复制第一快照的映射表生成第二快照的映射表,对于数据A、B、C,仅复制其映射信息,在复制数据D的映射信息时,由于该数据指向第一快照的资源卷,因此需要复制数据D到第二快照的资源卷,然后将第二快照的映射表中数据D的映射信息指向第二快照的资源卷中的相应地址。同理,还可以再次复制第一快照的映射表和资源卷生成第三快照作为第一快照的又一份副本(当然,第三快照也可以是复制第二快照的映射表和资源卷得到的第二快照的副本)。An example of this copy creation method is shown in Figure 10. The first snapshot in Figure 10 saves the data images A, B, C, and D of the production volume at a certain time, where data A, B, and C point to the production volume, and data D points to The resource volume for the first snapshot. Generate the mapping table of the second snapshot by copying the mapping table of the first snapshot. For data A, B, and C, only copy its mapping information. When copying the mapping information of data D, since the data points to the resource volume of the first snapshot, Therefore, it is necessary to copy the data D to the resource volume of the second snapshot, and then point the mapping information of the data D in the mapping table of the second snapshot to the corresponding address in the resource volume of the second snapshot. Similarly, the mapping table and resource volume of the first snapshot can also be copied again to generate a third snapshot as another copy of the first snapshot (of course, the third snapshot can also be obtained by copying the mapping table and resource volume of the second snapshot copy of the second snapshot).

通过复制映射表和资源卷生成的快照副本与现有快照性质完全相同,因此可完全按照现有方式对其进行操作。Snapshot copies made by duplicating mapping tables and resource volumes are identical to existing snapshots, so they can be manipulated in exactly the same way as existing ones.

C3、获取对第一快照和/或第二快照的操作指示。此步骤可参考实施例一中的步骤A3,示例如下:C3. Obtain an operation instruction for the first snapshot and/or the second snapshot. For this step, refer to step A3 in Embodiment 1, and the example is as follows:

C31、在生产卷发生数据修改时,获取对各个快照的写前拷贝指示;C31. Obtain a copy-before-write instruction for each snapshot when data modification occurs in the production volume;

C4、按照所述操作指示,对第一快照和/或第二快照执行相应的操作。C4. Perform corresponding operations on the first snapshot and/or the second snapshot according to the operation instruction.

例如,对于步骤C31获取的操作指示,执行步骤如下:For example, for the operation instruction obtained in step C31, the execution steps are as follows:

C411、将需要修改的生产卷数据拷贝到各个快照的资源卷;C411. Copy the production volume data that needs to be modified to the resource volume of each snapshot;

C412、将各个快照的映射表中与该数据对应的地址,修改为该数据在对应的快照的资源卷中的地址。C412. Modify the address corresponding to the data in the mapping table of each snapshot to the address of the data in the resource volume of the corresponding snapshot.

由于本实施例中快照和快照副本均与现有快照性质相同,因此对其执行写前拷贝操作的方式可采用现有快照进行写前拷贝的处理方式。当然,与实施例二中类似,若执行写前拷贝时,第二快照的映射表尚未复制完成,则可判断该指示针对的映射信息是否已经被复制,若已经被复制,则按上述过程执行该指示即可,若尚未被复制,即第二快照与该指示相关的内容尚未被创建,可认为该写前拷贝指示仅对第一快照作出,因此不必对创建中的第二快照执行该指示。Since the snapshot and the copy of the snapshot in this embodiment have the same properties as the existing snapshot, the copy-before-write operation of the existing snapshot can be used to perform the copy-before-write operation. Of course, similar to Embodiment 2, if the mapping table of the second snapshot has not been copied when the copy-before-write is executed, it can be judged whether the mapping information targeted by the indication has been copied, and if it has been copied, execute according to the above process This instruction is enough. If it has not been copied, that is, the content related to the instruction in the second snapshot has not been created, it can be considered that the copy-before-write instruction is only made for the first snapshot, so it is not necessary to execute the instruction for the second snapshot being created. .

若步骤C3中获取的是对指定快照的修改指示,例如对第一快照或第二快照的修改指示,同样可按照现有写快照的方式执行,不再赘述。If what is obtained in step C3 is a modification instruction for a specified snapshot, for example, a modification instruction for the first snapshot or the second snapshot, it can also be executed in the same way as the existing snapshot writing method, and will not be described again.

本实施例中采用复制映射表和资源卷的方式创建快照的副本,创建的快照副本与现有快照性质完全相同,因此对快照副本的处理方式可以与现有对快照的处理方式完全一样,不会增加系统处理的复杂度。In this embodiment, the copy of the snapshot is created by duplicating the mapping table and the resource volume. The nature of the created snapshot copy is exactly the same as that of the existing snapshot. It will increase the complexity of system processing.

实施例四、一种快照保护方法,与实施例一中提供的通过数据拷贝创建快照副本的方式相比,区别之处在于采用共享映射表的方式创建快照副本,流程如图11所示,包括:Embodiment 4. A snapshot protection method. Compared with the method of creating a snapshot copy by copying data provided in Embodiment 1, the difference is that the snapshot copy is created by using a shared mapping table. The process is shown in FIG. 11 , including :

D1、获取对第一快照创建快照副本的指示。D1. Obtain an instruction to create a snapshot copy for the first snapshot.

此步骤可参考实施例一中的步骤A1。For this step, refer to step A1 in Embodiment 1.

D2、按照所述创建快照副本的指示,创建第二快照,以第一快照的映射表作为第一快照和第二快照的共享映射表,以第二快照作为第一快照的副本。D2. Create a second snapshot according to the instruction of creating a snapshot copy, use the mapping table of the first snapshot as a shared mapping table between the first snapshot and the second snapshot, and use the second snapshot as a copy of the first snapshot.

此副本创建方式的一个示例如图12所示,图12中第一快照保存了某时刻生产卷的数据映像A、B、C、D,通过将第一快照的映射表作为第一快照和第二快照的共享映射表创建第二快照作为第一快照的副本,同理,还可以将该共享映射表作为第三快照的映射表创建第一快照的又一份副本(当然,第三快照也可视为第二快照的副本)。An example of this copy creation method is shown in Figure 12. In Figure 12, the first snapshot saves the data images A, B, C, and D of the production volume at a certain time. By using the mapping table of the first snapshot as the first snapshot and the second The shared mapping table of the second snapshot creates the second snapshot as a copy of the first snapshot. Similarly, the shared mapping table can also be used as the mapping table of the third snapshot to create another copy of the first snapshot (of course, the third snapshot can also can be considered as a copy of the second snapshot).

通过共享映射表生成的快照副本与原快照具有相同的数据结构形式,同样可视为生产卷的快照,可视同普通快照执行修改、创建副本等操作。The snapshot copy generated through the shared mapping table has the same data structure as the original snapshot, and can also be regarded as a snapshot of the production volume, and can be modified and created like a normal snapshot.

D3、获取对第一快照和/或第二快照的操作指示。此步骤可参考实施例一中的步骤A3,示例如下:D3. Obtain an operation instruction for the first snapshot and/or the second snapshot. For this step, refer to step A3 in Embodiment 1, and the example is as follows:

D31、在生产卷发生数据修改时,获取对各个快照的写前拷贝指示;D31. Obtain a copy-before-write instruction for each snapshot when data modification occurs in the production volume;

D32、获取对指定快照的修改指示。D32. Obtain an instruction to modify the specified snapshot.

D4、按照所述操作指示,对第一快照和/或第二快照执行相应的操作。D4. Perform corresponding operations on the first snapshot and/or the second snapshot according to the operation instruction.

例如,对于步骤D31获取的操作指示,执行步骤如下:For example, for the operation instruction obtained in step D31, the execution steps are as follows:

D411、将需要修改的生产卷数据拷贝到快照共享资源卷;D411. Copy the production volume data that needs to be modified to the snapshot shared resource volume;

D412、将所述共享映射表中与该数据对应的地址,修改为该数据在所述快照共享资源卷中的地址。D412. Modify the address corresponding to the data in the shared mapping table to the address of the data in the snapshot shared resource volume.

基于图12,上述步骤D411和D412的示意图如图13所示,当主机需要将生产卷中的数据“D”写为“E”时,先将“D”复制到快照的共享资源卷,然后再将生产卷中的“D”修改为“E”,并修改快照的共享映射表,使与数据“D”对应的指针指向快照共享资源卷中相应位置。由于快照及其副本使用同一个共享映射表,因此只需进行一次修改即可。Based on Figure 12, the schematic diagram of the above steps D411 and D412 is shown in Figure 13. When the host needs to write the data "D" in the production volume as "E", first copy "D" to the shared resource volume of the snapshot, and then Then change "D" in the production volume to "E", and modify the shared mapping table of the snapshot so that the pointer corresponding to the data "D" points to the corresponding location in the shared resource volume of the snapshot. Since the snapshot and its replicas use the same shared mapping table, only one modification is required.

对于步骤D32获取的操作指示,执行步骤如下:For the operation instruction obtained in step D32, the execution steps are as follows:

D421、判断需要修改的数据是否已拷贝到指定快照的私有资源卷中,若是,则执行步骤D424;若否,则执行步骤D422;D421. Determine whether the data to be modified has been copied to the private resource volume of the designated snapshot, if yes, execute step D424; if not, execute step D422;

D422、将需要修改的数据拷贝到指定快照的私有资源卷;D422. Copy the data to be modified to the private resource volume of the specified snapshot;

D423、将该数据在指定快照的私有资源卷中的地址写入指定快照的私有映射表中,所述私有映射表的优先级高于所述共享映射表;D423. Write the address of the data in the private resource volume of the specified snapshot into the private mapping table of the specified snapshot, and the priority of the private mapping table is higher than that of the shared mapping table;

D424、修改指定快照的私有资源卷中相应地址的数据。D424. Modify data at a corresponding address in the private resource volume of the specified snapshot.

基于图13,上述步骤D421~D424的示意图如图14所示,当主机需要将第一快照中的数据“C”修改为“F”时,先将“C”复制到第一快照的私有资源卷,然后创建一个私有映射表,保存指向私有资源卷中的数据地址,再将私有资源卷中的“C”修改为“F”。此时,对于第一快照而言,同一数据就保存了两个地址,由于私有映射表的优先级较高,第一快照会认为私有映射表中的地址是真实地址。当然,如果后续主机还需要写第一快照,若需要修改的数据已拷贝到快照私有资源卷中,则可直接写入私有资源卷。此外,在执行上述步骤时,也可省略步骤D422,直接将要写入的数据写到快照私有资源卷中,然后将该写入的数据的地址保存入快照的私有映射表即可。Based on Figure 13, the schematic diagram of the above steps D421 to D424 is shown in Figure 14. When the host needs to modify the data "C" in the first snapshot to "F", first copy "C" to the private resource of the first snapshot volume, and then create a private mapping table to save the data address pointing to the private resource volume, and then modify the "C" in the private resource volume to "F". At this time, for the first snapshot, two addresses are stored in the same data, and because the priority of the private mapping table is higher, the first snapshot will consider the address in the private mapping table to be the real address. Of course, if the subsequent host still needs to write the first snapshot, if the data to be modified has been copied to the private resource volume of the snapshot, it can be directly written into the private resource volume. In addition, when performing the above steps, step D422 can also be omitted, directly write the data to be written into the private resource volume of the snapshot, and then save the address of the written data into the private mapping table of the snapshot.

本实施例中采用共享映射表的方式创建快照的副本,快照与快照的副本不仅尽量共享公共数据,还尽量共享映射表信息,最大程度的节省了存储空间。In this embodiment, the copy of the snapshot is created by sharing the mapping table. The snapshot and the copy of the snapshot not only share the common data as much as possible, but also share the information of the mapping table as much as possible, saving storage space to the greatest extent.

应当理解,实现本发明快照保护方法的软件可以存储于计算机可读介质中。该软件的在执行时,包括如下步骤:获取对第一快照创建快照副本的指示;It should be understood that the software implementing the snapshot protection method of the present invention can be stored in a computer-readable medium. When the software is executed, it includes the following steps: obtaining an instruction to create a snapshot copy of the first snapshot;

按照所述创建快照副本的指示,创建第一快照的副本;获取对第一快照和/或第一快照的副本的操作指示;按照所述操作指示,对第一快照和/或第一快照的副本执行相应的操作。所述的可读介质,如:ROM/RAM、磁碟、光盘等。Create a copy of the first snapshot according to the instruction for creating a copy of the snapshot; obtain an operation instruction for the first snapshot and/or a copy of the first snapshot; The replica performs the corresponding operation. The readable medium, such as: ROM/RAM, magnetic disk, optical disk, etc.

下面对本发明实施例的快照保护装置进行详细说明。The snapshot protection device according to the embodiment of the present invention will be described in detail below.

实施例五、一种快照保护装置10,如图15所示,包括:Embodiment 5. A snapshot protection device 10, as shown in FIG. 15 , includes:

保护触发单元11,用于获取对第一快照创建快照副本的指示。The protection triggering unit 11 is configured to acquire an instruction to create a snapshot copy for the first snapshot.

副本创建单元12,用于按照保护触发单元11获取的创建快照副本的指示,创建第一快照的副本。The copy creating unit 12 is configured to create a copy of the first snapshot according to the instruction for creating a snapshot copy acquired by the protection triggering unit 11 .

操作触发单元13,用于获取对第一快照和/或第一快照的副本的操作指示。An operation triggering unit 13, configured to obtain an operation instruction on the first snapshot and/or a copy of the first snapshot.

操作执行单元14,用于按照操作触发单元13获取的操作指示,对第一快照和/或副本创建单元12创建的第一快照的副本执行相应的操作。The operation execution unit 14 is configured to perform corresponding operations on the first snapshot and/or the copy of the first snapshot created by the copy creation unit 12 according to the operation instruction acquired by the operation trigger unit 13 .

为更好的控制快照和快照副本的可操作性,操作触发单元13获取的操作指示中可包括,对指定快照的状态设置指示;相应的操作执行单元14中可包括状态控制单元141,用于在操作触发单元13获取到对指定快照的状态设置指示时,将指定快照的状态设置为可用或不可用。In order to better control the operability of snapshots and snapshot copies, the operation instruction acquired by the operation trigger unit 13 may include an instruction to set the state of the specified snapshot; the corresponding operation execution unit 14 may include a state control unit 141 for When the operation triggering unit 13 acquires the status setting instruction for the specified snapshot, it sets the status of the specified snapshot as available or unavailable.

本实施例快照保护装置可参照实施例一执行相应的快照保护方法。当副本创建单元12采用实施例一中提供的数据拷贝方式进行快照副本创建时,副本创建单元12可由数据拷贝单元来充当,用于对与第一快照的映射表对应的数据进行数据拷贝,以所述数据拷贝的内容作为第一快照的副本。The snapshot protection device in this embodiment can refer to Embodiment 1 to implement a corresponding snapshot protection method. When the copy creation unit 12 uses the data copy method provided in the first embodiment to create a snapshot copy, the copy creation unit 12 can be acted as a data copy unit, and is used to copy the data corresponding to the mapping table of the first snapshot, so as to The content of the data copy serves as a copy of the first snapshot.

实施例六、一种快照保护装置20,如图16所示,包括:Embodiment 6. A snapshot protection device 20, as shown in FIG. 16 , includes:

保护触发单元21,用于获取对第一快照创建快照副本的指示。The protection triggering unit 21 is configured to obtain an instruction to create a snapshot copy for the first snapshot.

充当副本创建单元的表复制单元22,用于按照保护触发单元21获取的创建快照副本的指示,复制第一快照的映射表并创建第二快照,以所述复制的映射表作为第二快照的映射表,以第二快照作为第一快照的副本。The table copying unit 22 serving as a copy creation unit is used to copy the mapping table of the first snapshot and create a second snapshot according to the instruction of creating a snapshot copy obtained by the protection triggering unit 21, and use the copied mapping table as the copy of the second snapshot. The mapping table uses the second snapshot as a copy of the first snapshot.

操作触发单元23,用于获取对第一快照和/或第一快照的副本的操作指示。所获取的操作指示包括,生产卷发生数据修改时对各个快照的写前拷贝指示、对指定快照的修改指示、对指定快照的状态设置指示等。An operation triggering unit 23, configured to acquire an operation instruction on the first snapshot and/or a copy of the first snapshot. The acquired operation instructions include copy-before-write instructions for each snapshot when data modification occurs on the production volume, modification instructions for a specified snapshot, status setting instructions for a specified snapshot, and the like.

操作执行单元24,用于按照操作触发单元23获取的操作指示,对第一快照和/或副本创建单元22创建的第一快照的副本执行相应的操作,具体可包括:The operation execution unit 24 is configured to perform corresponding operations on the first snapshot and/or the copy of the first snapshot created by the copy creation unit 22 according to the operation instruction acquired by the operation trigger unit 23, which may specifically include:

状态控制单元241,用于在操作触发单元23获取到对指定快照的状态设置指示时,将指定快照的状态设置为可用或不可用;A state control unit 241, configured to set the state of the specified snapshot as available or unavailable when the operation trigger unit 23 acquires a state setting indication for the specified snapshot;

写前拷贝单元242,用于在操作触发单元23获取到对各个快照的写前拷贝指示时,将需要修改的生产卷数据拷贝到快照共享资源卷;将第一快照的映射表和第二快照的映射表中与该数据对应的地址,修改为该数据在所述快照共享资源卷中的地址;The copy-before-write unit 242 is used to copy the production volume data that needs to be modified to the snapshot shared resource volume when the operation trigger unit 23 obtains the copy-before-write indication for each snapshot; the mapping table of the first snapshot and the second snapshot The address corresponding to the data in the mapping table is modified to the address of the data in the snapshot shared resource volume;

数据修改单元243,用于在操作触发单元23获取到对指定快照的修改指示时,判断需要修改的数据是否已拷贝到指定快照的私有资源卷中,若是,则直接修改指定快照的私有资源卷中相应地址的数据;若否,则将需要修改的数据拷贝到指定快照的私有资源卷,将指定快照的映射表中与该数据对应的地址,修改为该数据在指定快照的私有资源卷中的地址,修改指定快照的私有资源卷中相应地址的数据。The data modification unit 243 is used to determine whether the data to be modified has been copied to the private resource volume of the specified snapshot when the operation trigger unit 23 obtains a modification instruction to the specified snapshot, and if so, directly modify the private resource volume of the specified snapshot If not, copy the data to be modified to the private resource volume of the specified snapshot, and modify the address corresponding to the data in the mapping table of the specified snapshot so that the data is in the private resource volume of the specified snapshot address, modify the data at the corresponding address in the private resource volume of the specified snapshot.

本实施例快照保护装置可参照实施例二执行相应的快照保护方法。The snapshot protection device in this embodiment can refer to Embodiment 2 to implement a corresponding snapshot protection method.

实施例七、一种快照保护装置30,如图17所示,包括:Embodiment 7. A snapshot protection device 30, as shown in FIG. 17 , includes:

保护触发单元31,用于获取对第一快照创建快照副本的指示。A protection triggering unit 31, configured to acquire an instruction to create a snapshot copy for the first snapshot.

副本创建单元32,包括:Replica creation unit 32, comprising:

表复制子单元321,用于按照保护触发单元31获取的创建快照副本的指示,创建第二快照并复制第一快照的映射表作为第二快照的映射表,以第二快照作为第一快照的副本;The table replication subunit 321 is configured to create a second snapshot and copy the mapping table of the first snapshot as the mapping table of the second snapshot according to the instruction of creating a snapshot copy obtained by the protection triggering unit 31, and use the second snapshot as the mapping table of the first snapshot. copy;

卷复制子单元322,用于在表复制子单元321复制第一快照的映射表时,判断所复制部分的映射信息是否指向第一快照的资源卷,若是,则将第一快照的资源卷中相应地址的数据复制到第二快照的资源卷中,并使第二快照的映射表中该部分的映射信息指向第二快照的资源卷中的相应地址。The volume copying subunit 322 is used to judge whether the mapping information of the copied part points to the resource volume of the first snapshot when the table copying subunit 321 copies the mapping table of the first snapshot, and if so, transfer the resource volume of the first snapshot to The data at the corresponding address is copied to the resource volume of the second snapshot, and the mapping information of this part in the mapping table of the second snapshot points to the corresponding address in the resource volume of the second snapshot.

操作触发单元33,用于获取对第一快照和/或第一快照的副本的操作指示。所获取的操作指示包括,生产卷发生数据修改时对各个快照的写前拷贝指示、对指定快照的状态设置指示等;An operation triggering unit 33, configured to obtain an operation instruction on the first snapshot and/or a copy of the first snapshot. The acquired operation instructions include copy-before-write instructions for each snapshot when data modification occurs on the production volume, status setting instructions for the specified snapshot, etc.;

操作执行单元34,用于按照操作触发单元33获取的操作指示,对第一快照和/或副本创建单元32创建的第一快照的副本执行相应的操作,具体可包括:The operation executing unit 34 is configured to perform corresponding operations on the first snapshot and/or the copy of the first snapshot created by the copy creation unit 32 according to the operation instruction acquired by the operation triggering unit 33, which may specifically include:

状态控制单元341,用于在操作触发单元33获取到对指定快照的状态设置指示时,将指定快照的状态设置为可用或不可用;A state control unit 341, configured to set the state of the specified snapshot as available or unavailable when the operation trigger unit 33 acquires a state setting indication for the specified snapshot;

写前拷贝单元342,用于在操作触发单元33获取到对各个快照的写前拷贝指示时,将需要修改的生产卷数据拷贝到各个快照的资源卷;将各个快照的映射表中与该数据对应的地址,修改为该数据在对应的快照的资源卷中的地址。The copy-before-write unit 342 is used to copy the production volume data that needs to be modified to the resource volume of each snapshot when the operation trigger unit 33 obtains the copy-before-write instruction for each snapshot; The corresponding address is modified to the address of the data in the resource volume of the corresponding snapshot.

本实施例快照保护装置可参照实施例二执行相应的快照保护方法。The snapshot protection device in this embodiment can refer to Embodiment 2 to implement a corresponding snapshot protection method.

实施例八、一种快照保护装置40,如图18所示,包括:Embodiment 8. A snapshot protection device 40, as shown in FIG. 18 , includes:

保护触发单元41,用于获取对第一快照创建快照副本的指示。The protection triggering unit 41 is configured to obtain an instruction to create a snapshot copy for the first snapshot.

充当副本创建单元的表共享单元42,用于按照保护触发单元41获取的创建快照副本的指示,创建第二快照,以第一快照的映射表作为第一快照和第二快照的共享映射表,以第二快照作为第一快照的副本。The table sharing unit 42 serving as a copy creation unit is used to create a second snapshot according to the instruction of creating a snapshot copy obtained by the protection trigger unit 41, and use the mapping table of the first snapshot as the shared mapping table of the first snapshot and the second snapshot, Take the second snapshot as a copy of the first snapshot.

操作触发单元43,用于获取对第一快照和/或第一快照的副本的操作指示。所获取的操作指示包括,生产卷发生数据修改时对各个快照的写前拷贝指示、对指定快照的修改指示、对指定快照的状态设置指示等。An operation triggering unit 43, configured to obtain an operation instruction on the first snapshot and/or a copy of the first snapshot. The acquired operation instructions include copy-before-write instructions for each snapshot when data modification occurs on the production volume, modification instructions for a specified snapshot, status setting instructions for a specified snapshot, and the like.

操作执行单元44,用于按照操作触发单元43获取的操作指示,对第一快照和/或副本创建单元42创建的第一快照的副本执行相应的操作,具体可包括:The operation execution unit 44 is configured to perform corresponding operations on the first snapshot and/or the copy of the first snapshot created by the copy creation unit 42 according to the operation instruction acquired by the operation trigger unit 43, which may specifically include:

状态控制单元441,用于在操作触发单元43获取到对指定快照的状态设置指示时,将指定快照的状态设置为可用或不可用;A state control unit 441, configured to set the state of the specified snapshot as available or unavailable when the operation trigger unit 43 acquires a state setting indication for the specified snapshot;

写前拷贝单元442,用于在操作触发单元43获取到对各个快照的写前拷贝指示时,将需要修改的生产卷数据拷贝到快照共享资源卷;将所述共享映射表中与该数据对应的地址,修改为该数据在所述快照共享资源卷中的地址。The copy-before-write unit 442 is configured to copy the production volume data that needs to be modified to the snapshot shared resource volume when the operation trigger unit 43 obtains the copy-before-write indication for each snapshot; The address of the data is changed to the address of the data in the snapshot shared resource volume.

数据修改单元443,用于在操作触发单元43获取到对指定快照的修改指示时,判断需要修改的数据是否已拷贝到指定快照的私有资源卷中,若是,则直接修改指定快照的私有资源卷中相应地址的数据;若否,则将需要修改的数据拷贝到指定快照的私有资源卷,将该数据在指定快照的私有资源卷中的地址写入指定快照的私有映射表中,所述私有映射表的优先级高于所述共享映射表,修改指定快照的私有资源卷中相应地址的数据。The data modification unit 443 is used to determine whether the data to be modified has been copied to the private resource volume of the specified snapshot when the operation trigger unit 43 obtains the modification instruction of the specified snapshot, and if so, directly modify the private resource volume of the specified snapshot If not, copy the data to be modified to the private resource volume of the specified snapshot, write the address of the data in the private resource volume of the specified snapshot into the private mapping table of the specified snapshot, and the private The priority of the mapping table is higher than that of the shared mapping table, and the data at the corresponding address in the private resource volume of the specified snapshot is modified.

本实施例快照保护装置可参照实施例四执行相应的快照保护方法。The snapshot protection device in this embodiment can refer to Embodiment 4 to implement a corresponding snapshot protection method.

应当理解的是,本发明实施例快照保护装置的副本创建单元可同时包括上述实施例五~八中的数据拷贝单元、表复制单元、表复制子单元、卷复制子单元、表共享单元,使得快照保护装置能够同时提供不同的副本创建方式,在需要创建快照副本时,可由用户选择实际采用的方式或按照某种规则由系统确定实际采用的方式。当然,若确定采用上述方式中的某方式创建了快照副本,则后续对该快照副本的操作应当按照对应的方式进行。It should be understood that the copy creation unit of the snapshot protection device in the embodiment of the present invention may include the data copy unit, table copy unit, table copy subunit, volume copy subunit, and table sharing unit in the fifth to eighth embodiments, so that The snapshot protection device can provide different copy creation methods at the same time. When a snapshot copy needs to be created, the user can choose the actual method or the system can determine the actual method according to certain rules. Of course, if it is determined that a snapshot copy has been created using one of the above methods, subsequent operations on the snapshot copy should be performed in a corresponding manner.

通过上述实施例可以看出,本发明实施例采用对快照创建快照副本,分别对快照和快照副本执行操作的方法;由于采用快照副本对快照数据进行备份,使得即使修改了快照数据,也可以通过快照副本来恢复快照时间点的数据,对快照提供了有效的保护;同时,基于快照和快照的若干副本,能够满足对同一时间点快照数据的并行操作要求。此外,在本发明实施例中还提供使快照副本和快照共享公共数据甚至共享映射表的方法,能够有效节省存储资源。It can be seen from the above embodiments that the embodiment of the present invention adopts the method of creating a snapshot copy for the snapshot and performing operations on the snapshot and the snapshot copy respectively; since the snapshot data is backed up by the snapshot copy, even if the snapshot data is modified, the The snapshot copy is used to restore the data at the snapshot time point, which provides effective protection for the snapshot; at the same time, based on the snapshot and several copies of the snapshot, it can meet the parallel operation requirements for the snapshot data at the same time point. In addition, the embodiment of the present invention also provides a method for making the snapshot copy and the snapshot share common data or even a shared mapping table, which can effectively save storage resources.

以上对本发明实施例所提供的快照保护方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The snapshot protection method and device provided by the embodiments of the present invention are described above in detail. This article uses specific examples to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the method of the present invention. and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. limits.

Claims (15)

1, a kind of snapshot guard method is characterized in that, comprising:
Obtain indication to the first snapshot creation snapshot copy;
According to the indication of described establishment snapshot copy, duplicate the mapping table of first snapshot and create second snapshot, with the mapping table of the described mapping table that duplicates, with the copy of second snapshot as first snapshot as second snapshot;
Obtain to produce and perm when giving birth to data modification, to the preceding copy indication of writing of each snapshot; The production volume copying data that needs are revised is rolled up to the snapshot shared resource; With in the mapping table of the mapping table of first snapshot and second snapshot with this data corresponding address, be revised as the address of these data in described snapshot shared resource volume;
Obtain specifying the modification indication of snapshot; Whether the data of judge to need revising have copied in the privately owned resource volume of specifying snapshot, if, then directly revise the privately owned resource of specifying snapshot roll up in the data of appropriate address; If not, then
The copying data that needs are revised is rolled up to the privately owned resource of specifying snapshot,
With specifying in the mapping table of snapshot and this data corresponding address, be revised as the address of these data in specifying the privately owned resource volume of snapshot,
Revise the data of appropriate address in the privately owned resource volume of specifying snapshot.
2, snapshot guard method according to claim 1 is characterized in that, described first snapshot is the copy of another snapshot.
3, snapshot guard method according to claim 1 and 2 is characterized in that, also comprises: the state that obtains specifying snapshot is provided with indication; Specify the state of snapshot to be set to available or unavailable.
4, a kind of snapshot guard method is characterized in that, comprising:
Obtain indication to the first snapshot creation snapshot copy;
According to the indication of described establishment snapshot copy, create second snapshot and duplicate the mapping table of the mapping table of first snapshot, with the copy of second snapshot as first snapshot as second snapshot;
When duplicating the mapping table of first snapshot, judge whether the map information of the part of duplicating points to the resource volume of first snapshot, if, then the data with appropriate address in the resource of first snapshot volume copy in the resource volume of second snapshot, and make the map information of this part in the mapping table of second snapshot point to appropriate address in the resource volume of second snapshot;
Obtain to produce and perm when giving birth to data modification, to the preceding copy indication of writing of each snapshot; The production volume copying data that needs are revised is rolled up to the resource of each snapshot; With in the mapping table of each snapshot with this data corresponding address, be revised as the address of these data in the resource of the snapshot of correspondence volume.
5, snapshot guard method according to claim 4 is characterized in that, described first snapshot is the copy of another snapshot.
6, according to claim 4 or 5 described snapshot guard methods, it is characterized in that, also comprise: the state that obtains specifying snapshot is provided with indication; Specify the state of snapshot to be set to available or unavailable.
7, a kind of snapshot guard method is characterized in that, comprising:
Obtain indication to the first snapshot creation snapshot copy;
According to the indication of described establishment snapshot copy, create second snapshot, with the mapping table of first snapshot shared mapping table, with the copy of second snapshot as first snapshot as first snapshot and second snapshot.
Obtain to produce and perm when giving birth to data modification, to the preceding copy indication of writing of each snapshot; The production volume copying data that needs are revised is rolled up to the snapshot shared resource; With in the described shared mapping table with this data corresponding address, be revised as the address of these data in described snapshot shared resource volume.
Obtain specifying the modification indication of snapshot, judge the data that need to revise whether to copy in the privately owned resource volume of specifying snapshot, if, then directly revise the privately owned resource of specifying snapshot roll up in the data of appropriate address; If not, then
The copying data that needs are revised is rolled up to the privately owned resource of specifying snapshot,
The address of these data in specifying the privately owned resource volume of snapshot write in the privately owned mapping table of specifying snapshot, and the priority of described privately owned mapping table is higher than described shared mapping table,
Revise the data of appropriate address in the privately owned resource volume of specifying snapshot.
8, snapshot guard method according to claim 7 is characterized in that, described first snapshot is the copy of another snapshot.
9, according to claim 7 or 8 described snapshot guard methods, it is characterized in that, also comprise: the state that obtains specifying snapshot is provided with indication; Specify the state of snapshot to be set to available or unavailable.
10, a kind of snapshot protective device is characterized in that, comprising:
The protection trigger element is used to obtain the indication to the first snapshot creation snapshot copy;
The copy creating unit is used for the indication according to described establishment snapshot copy, creates the copy of first snapshot;
The operation trigger element is used to obtain the operation indication to the copy of first snapshot and/or first snapshot;
Operation execution unit is used for according to described operation indication the copy of first snapshot and/or first snapshot being carried out corresponding operation;
Described copy creating unit comprises the table copied cells, is used to duplicate the mapping table of first snapshot and creates second snapshot, with the mapping table of the described mapping table that duplicates as second snapshot, with the copy of second snapshot as first snapshot;
Operation that described operation trigger element obtains indication comprises, produce curly hair when giving birth to data modification to copy indication before the writing of each snapshot, to specifying the modification indication of snapshot;
Described operation execution unit comprises writes preceding copy cell, is used for getting access to before the writing of each snapshot during the copy indication at described operation trigger element, and the production volume copying data that needs are revised is rolled up to the snapshot shared resource; With in the mapping table of the mapping table of first snapshot and second snapshot with this data corresponding address, be revised as the address of these data in described snapshot shared resource volume;
Described operation execution unit also comprises the data modification unit, be used for getting access to when specifying the modification indication of snapshot at described operation trigger element, judge whether the data that need to revise have copied in the privately owned resource volume of specifying snapshot, if, the data of appropriate address during then directly the privately owned resource of modification appointment snapshot is rolled up; If not, the copying data that then will need to revise is to the privately owned resource volume of specifying snapshot, with specifying in the mapping table of snapshot and this data corresponding address, be revised as the address of these data in specifying the privately owned resource volume of snapshot, revise the data of appropriate address in the privately owned resource volume of specifying snapshot.
11, snapshot protective device according to claim 10 is characterized in that, the operation indication that described operation trigger element obtains also comprises, the state of specifying snapshot is provided with indication;
Described operation execution unit also comprises status unit, is used for getting access to when the state of specifying snapshot is provided with indication at described operation trigger element, specifies the state of snapshot to be set to available or unavailable.
12, a kind of snapshot protective device is characterized in that, comprising:
The protection trigger element is used to obtain the indication to the first snapshot creation snapshot copy;
The copy creating unit is used for the indication according to described establishment snapshot copy, creates the copy of first snapshot;
The operation trigger element is used to obtain the operation indication to the copy of first snapshot and/or first snapshot;
Operation execution unit is used for according to described operation indication the copy of first snapshot and/or first snapshot being carried out corresponding operation;
Described copy creating unit comprises:
Table replicon unit is used to the mapping table creating second snapshot and duplicate first snapshot mapping table as second snapshot, with the copy of second snapshot as first snapshot,
Volume replicon unit, when being used for duplicating the mapping table of first snapshot in described table replicon unit, judge whether the map information of the part of duplicating points to the resource volume of first snapshot, if, then the data with appropriate address in the resource of first snapshot volume copy in the resource volume of second snapshot, and make the map information of this part in the mapping table of second snapshot point to appropriate address in the resource volume of second snapshot;
The operation indication that described operation trigger element obtains comprises, produces and perms when giving birth to data modification to the preceding copy indication of writing of each snapshot;
Described operation execution unit comprises writes preceding copy cell, is used for getting access to before the writing of each snapshot during the copy indication at described operation trigger element, and the production volume copying data that needs are revised is to the resource volume of each snapshot; With in the mapping table of each snapshot with this data corresponding address, be revised as the address of these data in the resource of the snapshot of correspondence volume.
13, snapshot protective device according to claim 12 is characterized in that, the operation indication that described operation trigger element obtains also comprises, the state of specifying snapshot is provided with indication;
Described operation execution unit also comprises status unit, is used for getting access to when the state of specifying snapshot is provided with indication at described operation trigger element, specifies the state of snapshot to be set to available or unavailable.
14, a kind of snapshot protective device is characterized in that, comprising:
The protection trigger element is used to obtain the indication to the first snapshot creation snapshot copy;
The copy creating unit is used for the indication according to described establishment snapshot copy, creates the copy of first snapshot;
The operation trigger element is used to obtain the operation indication to the copy of first snapshot and/or first snapshot;
Operation execution unit is used for according to described operation indication the copy of first snapshot and/or first snapshot being carried out corresponding operation;
Described copy creating unit comprises the table shared cell, is used to create second snapshot, with the mapping table of the first snapshot shared mapping table as first snapshot and second snapshot, with the copy of second snapshot as first snapshot;
Operation that described operation trigger element obtains indication comprises, produce curly hair when giving birth to data modification to copy indication before the writing of each snapshot, to specifying the modification indication of snapshot;
Described operation execution unit comprises writes preceding copy cell, is used for getting access to before the writing of each snapshot during the copy indication at described operation trigger element, and the production volume copying data that needs are revised is rolled up to the snapshot shared resource; With in the described shared mapping table with this data corresponding address, be revised as the address of these data in described snapshot shared resource volume;
Described operation execution unit comprises the data modification unit, be used for getting access to when specifying the modification indication of snapshot at described operation trigger element, judge whether the data that need to revise have copied in the privately owned resource volume of specifying snapshot, if, the data of appropriate address during then directly the privately owned resource of modification appointment snapshot is rolled up; If not, the copying data that then will need to revise is to the privately owned resource volume of specifying snapshot, the address of these data in specifying the privately owned resource volume of snapshot write in the privately owned mapping table of specifying snapshot, the priority of described privately owned mapping table is higher than described shared mapping table, revises the data of appropriate address in the privately owned resource volume of specifying snapshot.
15, snapshot protective device according to claim 14 is characterized in that, the operation indication that described operation trigger element obtains also comprises, the state of specifying snapshot is provided with indication;
Described operation execution unit also comprises status unit, is used for getting access to when the state of specifying snapshot is provided with indication at described operation trigger element, specifies the state of snapshot to be set to available or unavailable.
CNB2007101303637A 2007-07-18 2007-07-18 Method and device for protecting snapshot Active CN100478904C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2007101303637A CN100478904C (en) 2007-07-18 2007-07-18 Method and device for protecting snapshot
PCT/CN2008/071345 WO2009009979A1 (en) 2007-07-18 2008-06-18 Snapshot protecting method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101303637A CN100478904C (en) 2007-07-18 2007-07-18 Method and device for protecting snapshot

Publications (2)

Publication Number Publication Date
CN101093459A CN101093459A (en) 2007-12-26
CN100478904C true CN100478904C (en) 2009-04-15

Family

ID=38991733

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101303637A Active CN100478904C (en) 2007-07-18 2007-07-18 Method and device for protecting snapshot

Country Status (2)

Country Link
CN (1) CN100478904C (en)
WO (1) WO2009009979A1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100478904C (en) * 2007-07-18 2009-04-15 华为技术有限公司 Method and device for protecting snapshot
US8688936B2 (en) 2008-10-30 2014-04-01 International Business Machines Corporation Point-in-time copies in a cascade using maps and fdisks
US8719523B2 (en) * 2011-10-03 2014-05-06 International Business Machines Corporation Maintaining multiple target copies
CN102521156A (en) * 2011-12-12 2012-06-27 云海创想信息技术(天津)有限公司 Mapping relation access method and mapping relation access device
US8983961B2 (en) * 2012-11-29 2015-03-17 International Business Machines Corporation High availability for cloud servers
CN104407935B (en) * 2014-11-07 2018-05-18 华为数字技术(成都)有限公司 Snapshot rollback method and storage device
CN104598293B (en) * 2015-01-06 2018-04-06 新华三技术有限公司 A kind of method and apparatus of online snapshot
CN105988895B (en) * 2015-02-10 2020-11-03 中兴通讯股份有限公司 Snapshot processing method and device
CN106933699B (en) * 2015-12-30 2021-11-30 中移(苏州)软件技术有限公司 Snapshot deleting method and device
CN106959888B (en) * 2016-01-11 2020-09-04 杭州海康威视数字技术股份有限公司 Task processing method and device in cloud storage system
CN107179964A (en) * 2016-03-11 2017-09-19 中兴通讯股份有限公司 The reading/writing method and device of snapshot
CN106294026A (en) * 2016-08-19 2017-01-04 浪潮(北京)电子信息产业有限公司 Mapping table restoration methods after a kind of solid-state disk powered-off fault and system thereof
CN108874583A (en) * 2017-05-15 2018-11-23 中兴通讯股份有限公司 A kind of data guard method, device and computer readable storage medium
CN108846053A (en) * 2018-05-31 2018-11-20 郑州云海信息技术有限公司 Data copy management method, device, equipment, system and readable storage medium storing program for executing
CN109324929B (en) * 2018-09-17 2021-11-09 郑州云海信息技术有限公司 Snapshot creating method, device and equipment and readable storage medium
CN109614055B (en) * 2018-12-21 2022-11-04 杭州宏杉科技股份有限公司 Snapshot creation method, apparatus, electronic device, and machine-readable storage medium
CN111338850A (en) * 2020-02-25 2020-06-26 上海英方软件股份有限公司 Method and system for improving backup efficiency based on COW mode multi-snapshot
CN119415318B (en) * 2024-10-14 2025-07-18 广州鼎甲计算机科技有限公司 Virtual machine data recovery method, apparatus, computer device, readable storage medium, and program product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266654B2 (en) * 2003-03-18 2007-09-04 Hitachi, Ltd. Storage system, server apparatus, and method for creating a plurality of snapshots
US20060106893A1 (en) * 2004-11-02 2006-05-18 Rodger Daniels Incremental backup operations in storage networks
CN100533395C (en) * 2005-06-10 2009-08-26 北京艾德斯科技有限公司 Snapshot system and method in network storage
JP4668763B2 (en) * 2005-10-20 2011-04-13 株式会社日立製作所 Storage device restore method and storage device
CN100478904C (en) * 2007-07-18 2009-04-15 华为技术有限公司 Method and device for protecting snapshot

Also Published As

Publication number Publication date
CN101093459A (en) 2007-12-26
WO2009009979A1 (en) 2009-01-22

Similar Documents

Publication Publication Date Title
CN100478904C (en) Method and device for protecting snapshot
JP5124183B2 (en) Asynchronous remote copy system control method and asynchronous remote copy system
US7757057B2 (en) Optimized rollback of copy-on-write snapshot volumes
JP5346536B2 (en) Information backup / restore processing device and information backup / restore processing system
US8732121B1 (en) Method and system for backup to a hidden backup storage
CN107291883B (en) A snapshot method and device of a distributed storage system
JP5260802B2 (en) Method, system, and computer program product for operating a copy function
US8700570B1 (en) Online storage migration of replicated storage arrays
CN115098299B (en) Backup method, disaster recovery method, device and equipment of virtual machine
CN107003893B (en) Virtual machine backup method, backup device and host machine
JP2004258944A (en) Storage device and its management method
JP2007226347A (en) Computer system, computer system management apparatus, and data recovery management method
JP2004252686A (en) Information processing system
CN102999564B (en) Write the method for data, device and equipment
CN100504800C (en) Method for snapshot of magnetic disk
CN107402848A (en) A kind of implementation method of snapshot data uniformity
JP2004272854A (en) Storage system and snapshot management method in the system
CN104268097A (en) Metadata processing method and system
JP2006268139A (en) Data reproduction device, method and program and storing system
JP2006011811A (en) Storage control system and storage control method
US8131958B2 (en) Storage system, storage device, and data updating method using a journal volume
JP2014119851A (en) Information processing device, backup program, restore program, and method therefor
JP4915365B2 (en) Data storage method and apparatus, duplicate data storage method and apparatus, and control program thereof
CN101154172A (en) Method for centralized establishing dependent snapshot
JP2014038551A (en) Data storage device, method for controlling data storage device, and control program of data storage device

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