CN101819543A - Snapshot data processing method, system and storage device - Google Patents

Snapshot data processing method, system and storage device Download PDF

Info

Publication number
CN101819543A
CN101819543A CN 201010104453 CN201010104453A CN101819543A CN 101819543 A CN101819543 A CN 101819543A CN 201010104453 CN201010104453 CN 201010104453 CN 201010104453 A CN201010104453 A CN 201010104453A CN 101819543 A CN101819543 A CN 101819543A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
storage device
data
snapshot
volume
information
Prior art date
Application number
CN 201010104453
Other languages
Chinese (zh)
Inventor
欧阳戟
Original Assignee
成都市华为赛门铁克科技有限公司
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

Links

Abstract

The embodiment of the invention provides a snapshot data processing method, a system and a storage device, wherein the method comprises the following steps: receiving a writing request message carrying address information which needs to write data into a production volume; obtaining corresponding bitmap information according to the address information; and sending a data copying request to the storage device for copying snapshot data into a resource volume on the storage device if the obtained bitmap information is first identification information which needs to copy the snapshot data stored in the production volume currently into the resource volume on the storage device. The embodiment of the invention can reduce storage resources and memory resources of the main storage device occupied by snapshots and improve the service quality of the main storage device.

Description

快照数据处理方法和系统以及存储设备 Snapshot data processing method and system and a storage device

技术领域 FIELD

[0001] 本发明涉及数据存储技术领域,尤其涉及一种快照数据处理方法和系统以及存储设备。 [0001] The present invention relates to data storage technology, and particularly to a data processing method and system for snapshot and a storage device.

背景技术 Background technique

[0002] 随着存储应用需求的提高,用户需要采用在线方式进行数据保护,快照(Snapshot)就是在线存储设备防范数据丢失的有效方法之一。 [0002] With the increased storage requirements of the application, users need online data protection, snapshot (Snapshot) is an effective way to prevent online storage of data loss. 所谓快照,就是关于指定数据集合的一个完全可用拷贝,该拷贝包括相应数据在某个时间点,即拷贝开始的时间点的映像。 The so-called snapshot, the data set is specified on a fully available copy, the copying comprising a respective data point at a time, i.e. the time point of copy images. 快照的作用主要是能够进行在线数据恢复,当存储设备发生应用故障或者文件损坏时可以进行及时数据恢复,将数据恢复成快照产生时间点的状态。 The main role of the snapshot data recovery can be performed online, when the storage device or file corruption occurs application failure data recovery may be performed in a timely manner, to restore the data to generate a snapshot of the state point in time. 快照的另一个作用是为用户提供了另外一个数据访问通道,当原数据进行在线应用处理时,用户可以访问快照数据,还可以利用快照进行测试等工作。 Another function is to provide users snapshot another access channel data, when the original data-line application process, the user may access the snapshot data, the snapshot can also be used for testing work.

[0003] 在现有的多台设备协作提供服务的情况下,关键业务可以部署在主存储设备上, 次要业务可以部署在从存储设备上。 [0003] In the case of conventional multiple devices cooperate to provide services, the key service can be deployed on the primary storage device, the secondary service may be deployed on a storage device. 为了保护部署在主存储设备上的关键业务数据,需要对关键业务的数据进行快照,从而在主存储设备发生硬盘写错误、文件损坏或程序故障时, 可以恢复到与快照对应的数据存储状态。 In order to protect critical business data deployed in the primary storage device, we need data for business-critical snapshots, so the write error hard disk in the main storage device, file corruption or program malfunction, you can restore the data storage state snapshot corresponding. 即写即拷快照(copy-onirite)即为对主存储设备上的关键业务数据进行快照的一种实现方式。 Copy-on-write snapshot (copy-onirite) is the business-critical data on the primary storage device snapshot of an implementation. 在快照初始创建时,与快照对应的数据可以存放在主存储设备的生产卷中。 When initially created snapshot, and the snapshot data corresponding to the production volume can be stored in the main storage device. 在后续需要向生产卷中的某个地址写入数据之前,生产卷中该地址上与快照对应的数据需要先被拷贝到主存储设备的资源卷中,并且将该数据的映射信息指向资源卷中相应的位置,从而使得在向生产卷中写入数据时,不会修改与快照对应的数据,进而保证与快照对应的数据完整性,以便后续采用该数据进行恢复处理。 Prior to the subsequent production needs to write to an address in the volume, the production volume data of the snapshot address corresponding to the resource needs to be copied to the volume of the primary storage device, and the data points to a resource mapping information volume in the corresponding position, such that when data is written into volume production, and does not modify the snapshot corresponding to the data, thus ensuring data integrity snapshot corresponding to the subsequent use of the data recovery process.

[0004] 在实现本发明过程中,发明人发现现有技术中主存储设备的购置成本较高,快照会占用主存储设备的存储资源和内存资源,而且,访问快照也会占用主存储设备的处理器资源和内存资源,从而导致快照访问操作需要与主存储设备上的关键业务争用系统资源, 从而降低了主存储设备的服务质量。 [0004] In implementing the present invention, the inventors found that the higher acquisition costs in the prior art primary storage device, snapshots take up storage and memory resources of the main storage device, and access the snapshot will take up the primary storage device processor and memory resources, resulting in critical business operations require access to a snapshot on the primary storage device contention for system resources, thereby reducing the quality of service of the main storage device.

发明内容 SUMMARY

[0005] 本发明实施例提供一种快照数据处理方法和系统以及存储设备,以实现降低快照占用主存储设备的存储资源和内存资源,使得访问快照不会占用主存储设备的处理器资源和内存资源,提高主存储设备的服务质量。 [0005] An embodiment provides a snapshot of a data processing apparatus and a storage method and system of the present invention, in order to achieve a reduction in occupied primary storage device snapshot storage and memory resources, such access will not take a snapshot of the primary storage device memory and processor resources resources, improve service quality primary storage device.

[0006] 本发明实施例提供一种快照数据处理方法,包括: [0006] The present invention provides a snapshot data processing method, comprising:

[0007] 接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息; [0007] receiving the write request message carries the address information of the write data to be written to the volume production request message;

[0008] 根据所述地址信息获取所述地址信息对应的位图信息; [0008] acquiring the address information corresponding to the bitmap information according to the address information;

[0009] 若获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息,则向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 [0009] If the acquired bitmap information is required to copy the production volume snapshot data currently stored in the first identification information from the resource volumes on the storage device, the data is transmitted to the copy request from the storage device to the said snapshot data copied from the storage device to the resource volume. [0010] 本发明实施例提供另一种快照数据处理方法,包括: [0010] The present invention provides another snapshot data processing method, comprising:

[0011] 接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息; [0011] receiving the write request message, the first write address information request message carries the desired snapshot data is written;

[0012] 根据所述第一地址信息获取对应的第一映射信息; [0012] a first obtaining the mapping information corresponding to the address information according to the first;

[0013] 若所述第一映射信息与主存储设备中的生产卷对应,则将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 [0013] When the first mapping information corresponding to the production volume of the primary storage device, then the required resource data is written to write the snapshot volume corresponding to the primary storage device and said first address information modify bitmap information of the second identification information, the second identification information indicating the production volume on the primary storage device data with the first address information corresponding to the resource does not need to be copied to the volume.

[0014] 本发明实施例提供一种主存储设备,包括: [0015] 第一接收模块,用于接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息; [0014] An embodiment provides a primary storage device of the present invention, comprising: [0015] a first receiving module, configured to receive a write request message carries the address information of the write data to be written to the volume production request message;

[0016] 第一查询模块,用于根据所述地址信息获取所述地址信息对应的位图信息; [0016] The first query module, for acquiring the address information corresponding to the address information according to the bitmap information;

[0017] 第一处理模块,用于在获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息时,向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 [0017] The first processing module, configured to obtain information of the bitmap data is necessary to copy the snapshot volume production currently stored in the first identification information from the resource volumes on the storage device when the storage device from the sending a request to copy data to the snapshot copy of the data from the resource to the volumes on the storage device.

[0018] 本发明实施例提供一种快照数据处理系统,包括:上述主存储设备和从存储设备, [0018] An embodiment provides a snapshot of a data processing system of the present invention, comprising: a storage device and from said main storage device,

[0019] 所述从存储设备,用于接收主存储设备发送的数据拷贝请求,将所述快照数据存储在所述资源卷中。 [0019] The, the copy request for receiving data transmitted from the primary storage device the storage device, the snapshot data storage volume in the resource.

[0020] 本发明实施例提供另一种从存储设备,包括: [0020] The present invention provides another embodiment from the memory device, comprising:

[0021] 第三接收模块,用于接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息; [0021] The third receiving module, configured to receive a message write request, the write address information required for carrying the first snapshot of the data written in the request message;

[0022] 第三查询模块,用于根据所述第一地址信息获取对应的第一映射信息; [0022] The third query module, configured to obtain information corresponding to a first map in accordance with said first address information;

[0023] 第三处理模块,用于在所述第一映射信息与主存储设备中的生产卷对应时,将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 [0023] a third processing module, for the first mapping information in the main storage device when the production volume corresponding to the desired write data is written to the snapshot volume resource, and the primary storage device and first address information of the bitmap information corresponding to second identification information is modified, the second identification information indicating the production volume data corresponding to the address information on the first primary storage device does not need to copy the resource volume.

[0024] 本发明实施例提供另一种快照数据处理系统,包括:主存储设备和上述从存储设备, Example [0024] The present invention provides another snapshot data processing system, comprising: a primary storage device and a storage device from above,

[0025] 所述主存储设备,用于接收所述从存储设备发送的读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息,并将与所述第二地址信息对应的快照数据发送给所述从存储设备。 [0025] The primary storage device, for receiving the request message transmitted from the storage device, the read data of the read second address information of the snapshot request message carrying the desired, and the second address information corresponding to the snapshot data transmitted from the storage device.

[0026] 本发明实施例中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0026] The embodiments of the present invention, the production volume can be deployed on a main storage device, and a snapshot and resources volume can be deployed from the storage device, therefore, the resource volume deployed to the storage device can save primary storage device stores space, the snapshot deployed from the storage device, so that snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, and thus does not business-critical primary storage devices compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小,结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency. 附图说明 BRIEF DESCRIPTION

[0027] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0027] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings for illustrating the prior art described or needed to be used in an embodiment will be briefly introduced hereinafter, the description below the figures show some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and can obtain other drawings based on these drawings.

[0028] 图1为本发明快照数据处理方法一个实施例的流程图; [0028] FIG. 1 is a flow diagram of one embodiment of the invention snapshot data processing method;

[0029] 图2为本发明快照数据处理方法另一个实施例的流程图; [0029] FIG 2 is a flowchart of a snapshot to another embodiment of the invention the data processing method;

[0030] 图3为本发明快照数据处理方法再一个实施例的流程图; [0030] FIG. 3 is a flowchart of another embodiment of the invention, the data processing method embodiment snapshot;

[0031] 图4为本发明快照数据处理方法又一个实施例的流程图; [0031] FIG 4 is a flowchart of still another embodiment of the invention, the data processing method embodiment snapshot;

[0032] 图5为本发明快照数据处理方法还一个实施例的流程图; [0032] FIG 5 is a flowchart of a further embodiment of the invention snapshot data processing method;

[0033] 图6为本发明主存储设备一个实施例的结构示意图; [0033] FIG. 6 is a schematic structural diagram of the embodiment of the invention the primary storage device;

[0034] 图7为本发明主存储设备另一个实施例的结构示意图; [0034] Figure 7 is a schematic structural diagram of another embodiment of the invention, the primary storage device;

[0035] 图8为本发明从存储设备一个实施例的结构示意图; [0035] FIG. 8 is a schematic structural diagram from a memory device embodiment of the invention;

[0036] 图9为本发明从存储设备另一个实施例的结构示意图; [0036] FIG. 9 is a schematic configuration of another embodiment of the present invention from the storage device;

[0037] 图10为本发明从存储设备再一个实施例的结构示意图; [0037] FIG. 10 from the storage device a schematic structural diagram of another embodiment of the present invention;

[0038] 图11为本发明快照数据处理系统一个实施例的结构示意图。 [0038] Figure 11 a schematic structural diagram of the present embodiment of the invention is a snapshot of a data processing system.

具体实施方式 detailed description

[0039] 为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0039] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described the embodiment is an embodiment of the present invention is a part, but not all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, those of ordinary skill in the art to make all other embodiments without creative work obtained by, it falls within the scope of the present invention.

[0040] 图1为本发明快照数据处理方法一个实施例的流程图,如图1所示,本实施例的方法可以包括: [0040] FIG. 1 is a flow diagram of one embodiment of the invention snapshot data processing method, shown in Figure 1, the method according to the present embodiment may include:

[0041] 步骤101、接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址f曰息。 [0041] Step 101, receives the write request message carries the address of the write data to be written into said f production volume information request message.

[0042] 在本实施例中,生产卷可以部署在主存储设备上,而与该生产卷对应的快照、资源卷以及映射信息都可以部署在从存储设备上。 [0042] In the present embodiment, the production volume can be deployed on the primary storage device, while the production volume corresponding to the snapshot volumes, and mapping information resources can be deployed on a storage device. 其中生产卷是为应用的数据提供存储和访问的卷,资源卷用于存放生产卷中的旧数据。 Which production volume is to provide storage and access to application data volumes, the resource volume for storing production volume of old data. 在快照创建初始,从存储设备上的映射信息均指向主存储设备的生产卷,而从存储设备上没有任何数据。 In the initial snapshot creation, mapping information from the storage device is directed to the production volume of the primary storage device, without any data from the storage device. 而且,主存储设备可以为与各个地址信息对应的快照数据分别生成位图信息,该位图信息用于标记生产卷中与各个地址信息对应的存储位置上存储的数据是否需要拷贝到从存储设备上的资源卷中,由于在快照创建初始,生产卷中存储的数据均为快照数据,因此,此时与所有地址信息对应的位图信息均为表示需要将对应地址信息上的快照数据拷贝到从存储设备上的资源卷中的标识信息。 Further, the main storage device may generate respective bitmap information is a snapshot of the data corresponding to the address information, the bitmap information for determining whether the data stored in the storage location of the respective mark production volume corresponding to the address information needs to be copied from the storage device to the resources on the volume, since the initial snapshot created, the production volume data are stored in the snapshot data, and therefore, when all the address information corresponding to the bitmap information are indicated the need to copy the snapshot data corresponding to the address information identification information from the resource volumes on the storage device.

[0043] 为了保证在后续再向生产卷中写入新的数据时,该新写入的数据不会将原先存储在对应位置上的快照数据覆盖,避免出现由于快照数据被覆盖而造成无法恢复到原来的数据状态的问题,在向生产卷中写入该新的数据之前,主存储设备需要先将该快照数据拷贝到从存储设备上的资源卷中,然后再向生产卷中写入新的数据。 [0043] In order to ensure that the new data is written again in a subsequent production volume, the data will not be written to the new snapshot data previously stored in the corresponding position on the cover, to avoid since the snapshot data is covered and may result in unrecoverable problems to original data state, before the new data is written to production volumes, the primary storage device need to copy the data from the snapshot volume on the resources of the storage device, and then again writes new production volume The data.

[0044] 具体地,主存储设备可以接收写请求消息,该写请求消息可以由任一需要向主存储设备上的生产卷中写入数据的网络实体发送。 [0044] Specifically, the main storage device may receive a write request message, a write request message to the network entity data may be written by any desired production volume on the primary storage device. 该写请求消息中可以携带所需写入数据的地址信息,该地址信息即与所需写入数据在主存储设备上的生产卷中的存储位置相对应。 In the write request message may carry the information required to write data address, i.e. the address information written into the desired memory location of the production volume data on the primary storage device corresponds.

[0045] 步骤102、根据所述地址信息获取对应的位图信息。 [0045] Step 102, the bitmap information corresponding to the acquired according to the address information.

[0046] 主存储设备在接收该写请求消息后,可以查询对应的位图信息。 [0046] The main storage device receives the write request message, bitmap information can query corresponding.

[0047] 举例来说,在该主存储设备中可以存储一个位图信息表,该位图信息表中包括与各个地址信息对应的位图信息。 [0047] For example, the primary storage device may store a bitmap information table, the bitmap information table includes bit map information corresponding to the respective address information. 在快照创建初始,与各个地址信息对应的位图信息均为表示需要将对应地址信息上的快照数据拷贝到从存储设备上的资源卷中的标识信息,而一旦将某一地址信息上的快照数据拷贝到从存储设备上的资源卷中后,与该地址信息对应的位图信息即可被修改为表示不需要将对应地址信息上的快照数据拷贝到从存储设备上的资源卷中的标识信息,也即生产卷中在某个地址信息上存储的快照数据一旦被拷贝到从存储设备上的资源卷后,生产卷上该地址信息上后续写入的数据均不是快照数据,无需拷贝到从存储设备的资源卷中。 In the initial snapshot creation, and the bitmap information corresponding to the respective address information are indicated the need to copy the snapshot data corresponding to the address information to the identification information from the resource volumes on the storage device, and once on a snapshot of the address information to copy data from the volumes on the storage device resource, the bitmap information corresponding to the address information does not need to be modified to represent a snapshot of data on the copy corresponding to the identification address information from the resource volumes on the storage device information, i.e. the production volume snapshot data stored in the address information once a resource is copied from the storage device volume, subsequent writes to the address on the information on the production volume data is not snapshot data, without the need to copy from the resource volume storage device.

[0048] 步骤103、若获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息,则向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 [0048] Step 103, if the bitmap information acquired need to copy the production volume snapshot data currently stored in the first identification information from the resource volumes on the storage device, the data is transmitted to the copy request from the storage device in the snapshot data copied to the resource from the volumes on the storage device.

[0049] 举例来说,若位图信息表中与某一地址信息对应的位图信息为0,则可以表示生产卷中该地址信息上存储的数据已经不是快照数据,因此可以在写入新数据时被覆盖;若位图信息表中与某一地址信息对应的位图信息为1,也即第一标识信息为1,则可以表示生产卷中该地址信息上存储的数据为快照数据,在进行数据恢复处理时,该地址信息上存储的快照数据需要被使用,因此,在向生产卷中该地址信息对应的位置处写入新的数据时,需要将当前存储的快照数据先拷贝到从存储设备上的资源卷中,然后再向生产卷中该地址信息处写入新的数据,即需要完成快照数据的写前拷贝操作才能写入新的数据,从而保证了快照数据不被覆盖或者修改,以便在后续发生存储错误等问题时,可以利用从存储设备上的资源卷中存储的快照数据进行数据恢复处理。 [0049] For example, if the bitmap information table and an address information corresponding to the bitmap information is 0, it may represent the data stored on the production volume in the snapshot data is not the address information, it can be written in the new when data is overwritten; and if the address information corresponding to a bitmap information is bitmap information table 1, i.e. the first identification information is 1, it may represent the data stored on the production volume in the snapshot data address information, during data restoration-processing, the snapshot of the data stored on the address information needs to be used, therefore, when a new data is written to the address location information corresponding to the production volume, it is necessary to first snapshot data copied to the currently stored from the resource volumes on the storage device, and then again to write new data production volume at the address information that needs to be completed before the write operation to the snapshot copy of the data written to the new data, thus ensuring the snapshot data is not covered or modified, so that when the follow-up error or the like occurs is stored, the stored data may be utilized from the resource snapshot volumes on the storage device, the data recovery process.

[0050] 在将快照数据从主存储设备中的生产卷拷贝到从存储设备中的资源卷后,主存储设备可以将从存储设备中与该快照数据对应的快照的映射信息修改为指向所述从存储设备中的资源卷。 [0050] from the storage device resource volume from the primary storage device may modify the data storage device with the snapshot corresponding to the snapshot copy the snapshot map information data from the primary storage device is directed to the production volume resource volume from the storage device. 具体来说,当主存储设备上的生产卷中的快照数据被拷贝到从存储设备中的资源卷后,该快照数据的快照的映射地址即发生变化,快照数据原先存储在主存储设备的生产卷中时,该映射地址指向主存储设备的生产卷,而当该快照数据从主存储设备的生产卷中拷贝的从存储设备的资源卷后,该映射地址即需要指向从存储设备的资源卷中,从而对该快照数据的映射地址进行更新,以便后续调用该快照数据进行数据恢复等操作。 Specifically, when a snapshot data production volume on the primary storage device is copied to from the storage device resource volume mapped address snapshot of the snapshot data change that is occurring, snapshot data previously stored in the production volume of the primary storage device when the mapping address points to the production volume of the primary storage device, and when the snapshot copy of the data from the production volume of the primary storage device from the resource volume storage device, the mapped address the need to point from the resource volume of the storage device thereby update the address mapping data snapshot, the snapshot data so that subsequent calls for data recovery operations.

[0051] 本实施例中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0051] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot and resource volumes can deploy storage space from the storage device, therefore, the resource volume deployed to the storage device can save the primary storage device , will be deployed from the snapshot storage, such that the snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, and thus does not the main on business-critical storage devices compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小, 结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency. [0052] 图2为本发明快照数据处理方法另一个实施例的流程图,如图2所示,本实施例的方法可以包括: [0052] FIG 2 is a flowchart of a snapshot to another embodiment of the invention the data processing method, shown in Figure 2, the method of the present embodiment may include:

[0053] 步骤201、在所述从存储设备中创建所述主存储设备中的生产卷的快照,并生成所述位图信息。 [0053] Step 201, from the storage device to create a snapshot of the production volume in the primary storage device, and generating the bitmap information.

[0054] 主存储设备中可以存储该位图信息,该位图信息可以包括与生产卷中存储的快照数据对应的第一标识信息和与非快照数据对应的第二标识信息。 [0054] The primary storage device may store the bitmap information, the bitmap information may include data storage and the production of a snapshot volume corresponding to the first identification information and a second non-snapshot data corresponding to the identification information.

[0055] 举例来说,若该生产卷中某一地址上存储的是快照数据,也即存储的快照数据需要被写前拷贝,则与该地址对应的位图信息即为第一标识信息,若该生产卷中某一地址上存储的不是快照数据,也即存储的数据可以被覆盖,则与该地址对应的位图信息即为第二标识信息。 [0055] For example, if the production volume is an address stored in the snapshot data, the snapshot data that is written to be stored before the copying, the bitmap information corresponding to the address is the first identification information, If the production volume stored in the address is not a snapshot of data, i.e. the data stored may be covered, the bitmap information corresponding to the address is a second identification information.

[0056] 步骤202、接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址f曰息。 [0056] Step 202 receives the write request message carries the address of the write data to be written into said f production volume information request message.

[0057] 主存储设备可以接收写请求消息,该写请求消息可以由任一需要向主存储设备上的生产卷中写入数据的网络实体发送。 [0057] The main storage device may receive a write request message, a write request message to the network entity data may be written by any desired production volume on the primary storage device. 该写请求消息中可以携带所需写入数据的地址信息,该地址信息即与所需写入数据在主存储设备上的生产卷中的存储位置相对应。 In the write request message may carry the information required to write data address, i.e. the address information written into the desired memory location of the production volume data on the primary storage device corresponds.

[0058] 步骤203、根据所述地址信息获取对应的位图信息。 [0058] Step 203, the bitmap information corresponding to the acquired according to the address information.

[0059] 在快照创建初始,与各个地址信息对应的位图信息均为表示需要将对应地址信息上的快照数据拷贝到从存储设备上的资源卷中的标识信息,而一旦将某一地址信息上的快照数据拷贝到从存储设备上的资源卷中后,与该地址信息对应的位图信息即可被修改为表示不需要将对应地址信息上的快照数据拷贝到从存储设备上的资源卷中的标识信息,也即生产卷中在某个地址信息上存储的快照数据一旦被拷贝到从存储设备上的资源卷后,生产卷上该地址信息上后续写入的数据均不是快照数据,无需拷贝到从存储设备的资源卷中。 [0059] In creating the initial snapshot bitmap information corresponding to the respective address information are indicated the need to copy the snapshot data corresponding to the address information to the identification information from the resource volumes on the storage device, and once an address information the snapshot data copied to the resource from the volumes on the storage device, the bitmap information corresponding to the address information does not need to be modified to represent a snapshot copy of data corresponding to the address information to the resource from the storage device volume the identification information, i.e., the production volume snapshot data stored in an address information is copied once into the resource from the volumes on the storage device, the data on the subsequent write address information on the production volumes are not snapshot data, no need to copy the resource from the roll storage device.

[0060] 步骤204、判断获取的位图信息是否为第一标识信息,若不是,则执行步骤205,若是执行步骤206。 [0060] Step 204, it is determined whether the acquired bitmap information as the first identification information, if yes, perform step 205, if step 206 is performed.

[0061] 主存储设备可以通过判断获取的位图信息是否是第一标识信息来确定存储的数据是否为快照数据,也即是否需要进行写前拷贝。 [0061] The main storage device may be determined by determining whether the acquired bitmap information is the first identification information is a snapshot of data stored in the data, i.e. whether written before copy.

[0062] 步骤205、将所需写入的数据写入所述生产卷中,结束。 [0062] Step 205, the data to be written, the required production volume, end.

[0063] 如果不是第一标识信息,则当前存储的数据不是快照数据,该存储的数据可以被新写入的数据覆盖,因此,主存储设备可以将需要写入的数据直接写入生产卷中。 [0063] If data coverage is not the first identification information, the data is not currently stored in the snapshot data, the stored data can be newly written, and therefore, the data storage master device may need to be written is written directly to the production volume .

[0064] 步骤206、向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中,并将所述从存储设备中的与所述快照数据对应的快照的映射信息修改为指向所述从存储设备中的资源卷。 [0064] Step 206, the resource from the volumes on the storage device and the snapshot data corresponding to the storage device from the request to transmit data from the storage device to copy the snapshot data copied to mapping information of the snapshot is modified to point to the resource volume from the storage device.

[0065] 若获取的位图信息为第一标识信息,则表示生产卷中该地址信息上存储的数据为快照数据,在进行数据恢复处理时,该地址信息上存储的快照数据需要被使用,因此,在向生产卷中该地址信息对应的位置处写入新的数据时,需要将当前存储的快照数据先拷贝到从存储设备上的资源卷中,然后再向生产卷中该地址信息处写入新的数据,即需要完成快照数据的写前拷贝操作才能写入新的数据,从而保证了快照数据不被覆盖或者修改,以便在后续发生存储错误等问题时,可以利用从存储设备上的资源卷中存储的快照数据进行数据恢复处理。 [0065] If the bitmap information acquired first identification information indicates that the data stored on the production volume in the snapshot data address information, during the data recovery process, the snapshot of the data stored on the address information needs to be used, Thus, when a new data is written to the address location information corresponding to the production volume, it is necessary to store the current snapshot data copied to the first volume on the resource from the storage device, and then to the production volume information at the address write new data, i.e. the data needs to be done before writing the snapshot copy operation to write new data, thus ensuring the snapshot data is not overwritten or modified, so that when the follow-up error or the like occurs is stored, the storage device may be utilized from volume snapshot data resources stored in data recovery process. [0066] 在将快照数据从主存储设备中的生产卷拷贝到从存储设备中的资源卷后,主存储设备可以将从存储设备中与该快照数据对应的快照的映射信息修改为指向所述从存储设备中的资源卷。 [0066] from the storage device resource volume from the primary storage device may modify the data storage device with the snapshot corresponding to the snapshot copy the snapshot map information data from the primary storage device is directed to the production volume resource volume from the storage device. 具体来说,当主存储设备上的生产卷中的快照数据被拷贝到从存储设备中的资源卷后,该快照数据的快照的映射地址即发生变化,快照数据原先存储在主存储设备的生产卷中时,该映射地址指向主存储设备的生产卷,而当该快照数据从主存储设备的生产卷中拷贝的从存储设备的资源卷后,该映射地址即需要指向从存储设备的资源卷中,从而对该快照数据的映射地址进行更新,以便后续调用该快照数据进行数据恢复等操作。 Specifically, when a snapshot data production volume on the primary storage device is copied to from the storage device resource volume mapped address snapshot of the snapshot data change that is occurring, snapshot data previously stored in the production volume of the primary storage device when the mapping address points to the production volume of the primary storage device, and when the snapshot copy of the data from the production volume of the primary storage device from the resource volume storage device, the mapped address the need to point from the resource volume of the storage device thereby update the address mapping data snapshot, the snapshot data so that subsequent calls for data recovery operations.

[0067] 步骤207、将与所述地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示不需要将存储的非快照数据拷贝到从存储设备上的资源卷中。 [0067] Step 207, the address information corresponding to the bitmap information is a modified second identification information, the second identification information indicating no need to copy data stored in non-snapshot volume to the resource from the storage device in.

[0068] 主存储设备还需要将该地址信息对应的位图信息修改为第二标识信息。 [0068] The main storage device further required to modify the address information of the bitmap information corresponding to second identification information. 由于快照数据已经被拷贝到从存储设备的资源卷中,因此,后续再向该地址上写入数据时,均不需要再拷贝到资源卷中,因此,主存储设备可以将第一标识信息修改为第二标识信息,从而避免主存储设备将非快照数据也写入资源卷中影响快照数据。 Since the data has been copied to the snapshot of the resource from the roll storage device, therefore, when data is written again on a subsequent address, not need to be copied to the resource volume, therefore, the primary storage device identification information may be a first modified for the second identification information, so as to avoid the non-main storage device resource snapshot data is also written snapshot data volume impact.

[0069] 本实施例中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0069] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot and resource volumes can deploy storage space from the storage device, therefore, the resource volume deployed to the storage device can save the primary storage device , will be deployed from the snapshot storage, such that the snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, and thus does not the main on business-critical storage devices compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小, 结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency. 而且,主存储设备还可以通过修改位图信息,避免主存储设备将非快照数据也写入资源卷中影响快照数据。 Further, the primary storage device may also modify the bitmap information, the primary storage device to avoid the non-write snapshot data also affect the volume snapshot data resource.

[0070] 图3为本发明快照数据处理方法再一个实施例的流程图,如图3所示,本实施例的方法可以包括: [0070] FIG. 3 is a flowchart of a further embodiment of a data processing method snapshot invention, shown in Figure 3, the method of the present embodiment may include:

[0071] 步骤301、接收主存储设备发送的数据拷贝请求,所述数据拷贝请求中携带需要从所述主存储设备上的生产卷中拷贝到从存储设备上的资源卷中的快照数据。 [0071] Step 301, the data copy request transmitting apparatus receives the main storage, the data copy request carries on the production volume needs to be copied from the snapshot to the primary storage device from the data volumes on the storage resource of the device.

[0072] 举例来说,从存储设备可以接收主存储设备发送的数据拷贝请求。 [0072] For example, data may be received copy request sent by the primary storage device from the storage device.

[0073] 具体地,主存储设备可以接收写请求消息,该写请求消息可以由任一需要向主存储设备上的生产卷中写入数据的网络实体发送。 [0073] Specifically, the main storage device may receive a write request message, a write request message to the network entity data may be written by any desired production volume on the primary storage device. 该写请求消息中可以携带所需写入数据的地址信息,该地址信息即与所需写入数据在主存储设备上的生产卷中的存储位置相对应。 In the write request message may carry the information required to write data address, i.e. the address information written into the desired memory location of the production volume data on the primary storage device corresponds. 主存储设备可以根据存储的位图信息获知需要写入的数据对应的地址信息上目前是否存储的是快照数据,如果是,则在主存储设备向生产卷中该地址信息对应的位置处写入新的数据时,需要将当前存储的快照数据拷贝到从存储设备上的资源卷中,然后再向生产卷中该地址信息处写入新的数据。 The main storage device may store the address information of the data to be written informed bitmap information corresponding to whether the current snapshot data is stored, if so, to write to the address information at a position corresponding to the production volume in the primary storage device when new data needs to be copied to a snapshot of data currently stored from the resource volumes on the storage device, and then to the production of new data is written at the address information volume. 此时,主存储设备即可向从存储设备发送数据拷贝请求,该数据拷贝请求中携带的数据,即为在即将写入数据的位置上存储的快照数据。 In this case, the snapshot data in the primary storage device to transmit data from the storage device to the copy request, the copy of the data carried in the request data, that is stored in the position data to be written on.

[0074] 步骤302、将所述快照数据存储在所述资源卷中,并将与所述快照数据对应的快照的映射信息修改为指向所述从存储设备中的资源卷。 [0074] Step 302, the resource data stored in the snapshot volume, and the snapshot corresponding to the snapshot data is modified to point mapping information from the resource volume of the storage device.

[0075] 在本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息均可以部署在从存储设备上。 [0075] In the present embodiment, the production volume can be deployed on a main storage device, the snapshot volumes, and mapping information resources can be deployed on a storage device. 因此,从存储设备在将快照数据存储在资源卷中之后,还需要将与该快照数据对应的快照的映射信息修改为指向该从存储设备的资源卷。 Thus, from the storage device when the volume after the resource, a snapshot of data storage required mapping information corresponding to the snapshot data is modified to point to the snapshot volume from the storage device resource. 该过程即为对该快照数据的快照的映射地址进行更新的过程,快照数据原先存储在主存储设备的生产卷中时,该映射地址指向主存储设备的生产卷,而当该快照数据从主存储设备的生产卷中拷贝的从存储设备的资源卷后,该映射地址即需要指向从存储设备的资源卷中,从而对该快照数据的映射地址进行更新,以便后续调用该快照数据进行数据恢复等操作。 Mapping the address of a snapshot of the snapshot of the data is the process of updating, a snapshot of the data originally stored when the production volume of the primary storage device, the mapping address points to the production volume of the primary storage device, and when the snapshot data from the host production volumes of the storage device copies of resources from the roll storage device, i.e., the address needs to point to the mapping from the resource volume storage device, to map the address of the snapshot data is updated, the snapshot data so that subsequent calls for data recovery and other operations.

[0076] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0076] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot, the resource volume and mapping information can be deployed from the storage device, therefore, to deploy the resource volume and mapping information to be saved from the memory device storage space in the main storage device will be deployed in a snapshot from the storage device, so that the snapshot itself will not take up storage resources to the primary storage device and memory resources, access operation will not take a snapshot of the primary storage device of the processor and memory resources and therefore does not compete for resources with key business on the main storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services.

[0077] 图4为本发明快照数据处理方法又一个实施例的流程图,如图4所示,本实施例的方法可以包括: [0077] FIG 4 is a flowchart of still another embodiment of the invention, a data processing method snapshot embodiment, shown in Figure 4, the method of the present embodiment may include:

[0078] 步骤401、接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址fn息ο [0078] Step 401, receives the write request message, the first address in the write request message carrying the desired information fn write snapshot data ο

[0079] 在本实施例中,生产卷可以部署在主存储设备上,而与该生产卷对应的快照、资源卷以及映射信息都可以部署在从存储设备上。 [0079] In the present embodiment, the production volume can be deployed on the primary storage device, while the production volume corresponding to the snapshot volumes, and mapping information resources can be deployed on a storage device. 其中生产卷是为应用的数据提供存储和访问的卷,资源卷用于存放生产卷中的旧数据。 Which production volume is to provide storage and access to application data volumes, the resource volume for storing production volume of old data. 在快照创建初始,从存储设备上的映射信息均指向主存储设备的生产卷,而从存储设备上没有任何数据。 In the initial snapshot creation, mapping information from the storage device is directed to the production volume of the primary storage device, without any data from the storage device.

[0080] 举例来说,从存储设备可以接收写请求消息,该写请求消息可以由任一需要写入快照数据的网络实体发送。 [0080] By way of example, may receive a write request message from the storage device, the write request message to the network entity may be a snapshot of the data written by any desired. 该写请求消息中可以携带所需写入快照数据的第一地址信息, 该第一地址信息即与所需写入快照数据所需存储的位置相对应。 In the write request message may carry the address information required for the first snapshot data is written, the first write address information, i.e., the desired snapshot data corresponding to the desired storage location.

[0081] 步骤402、根据所述第一地址信息获取对应的第一映射信息。 [0081] Step 402, obtaining according to the first mapping information corresponding to said first address information.

[0082] 从存储设备可以根据该第一地址信息获取对应的第一映射信息。 [0082] may be obtained from the first mapping information corresponding to the storage device based on the first address information. 举例来说,从存储设备中可以存储地址信息和映射信息之间的对应关系。 For example, from the storage device may store a correspondence between the address information and mapping information.

[0083] 当从存储设备接收获取该第一地址信息后,即可查询该对应关系,从而可以获取与该第一地址信息对应的第一映射信息。 [0083] After receiving the first address information is acquired from the storage device, the correspondence to the query, which can acquire mapping information of the first information corresponding to the first address.

[0084] 步骤403、若所述第一映射信息与主存储设备中的生产卷对应,则将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 [0084] Step 403, if the production volume corresponding to the first mapping information in the main storage device, then writing the desired data is written to the snapshot volume resource, and the primary storage device and the first bitmap information corresponding to the address information of a second modified identification information, the second identification information indicating the production volume data corresponding to the address information on the first primary storage device does not need to be copied to the resource volume .

[0085] 从存储设备在获知该第一映射信息与主存储设备中的生产卷对应,也即所需写入快照数据需要写入主存储设备中的生产卷。 [0085] needs to be written in the main storage device in the known storage device the production volume corresponding to the volume production of the first mapping information in the primary storage device, i.e., the desired data is written from the snapshot. 则由于从存储设备上部署了资源卷,则从存储设备可以将需要写入主存储设备的生产卷中的快照数据存储在资源卷中。 Since the deployment of resources from the storage volume from the storage device may need to be written to the snapshot volume production data storage device in the primary storage volume in the resource. 从存储设备还可以向主存储设备发送位图修改请求,从而使得主存储设备可以将与该第一地址信息对应的位图信息修改为第二标识信息。 From a storage device may also modify the request to the primary storage device sending the bitmap so that the primary storage device bitmap information corresponding to the first address information may be modified to second identification information. 具体来说,由于从存储设备已经将快照数据存储在资源卷中,以后主存储设备就不能再将数据拷贝到资源卷中的该第一地址信息对应的位置上,因为一旦拷贝,则主存储设备的拷贝操作将修改资源卷中已经存储的快照数据。 More specifically, since from the snapshot data storage device has stored in the resource volume, after the primary storage device can not then copies the data to the resource position of the first address information corresponding to the volume on, because once the copy, the primary storage modifying the copy operation device resource volume snapshot data already stored. 因此,主存储设备需要将与该第一地址信息对应的位图信息修改为第二标识信息,该第二标识信息可以表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 Thus, the primary storage device needs to be corresponding to the first address information is the bitmap information modification second identification information, the second identification information may indicate the production of the corresponding volume on the primary storage device and said first address information the data need not be copied to the resource volume.

[0086] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,在从存储设备接收向主存储设备的生产卷中写入快照数据的写请求消息时,从存储设备可以将该快照数据写入资源卷中,而主存储设备仅需要修改其对应的位图信息即可。 [0086] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot volume resource mapping information and can be deployed from the storage device, the snapshot is written in the storage device receives from the primary storage device to the production volume of write data request message may be written to the data from the snapshot volume in the storage device resource, and only need to modify the main storage device corresponding to the bitmap information. 因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 Thus, to deploy the resource and volume mapping information from the storage device to save memory space in the main storage device, a snapshot will be deployed from the storage device, so that snapshot itself will not take up storage resources of the primary storage device and memory resources, access to the snapshot the operation will not occupy a primary storage device of the processor and memory resources, it will not compete with business-critical resources on the primary storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of critical business services .

[0087] 图5为本发明快照数据处理方法还一个实施例的流程图,如图5所示,本实施例的方法可以包括: [0087] FIG 5 is a flowchart of a further embodiment, the data processing method of FIG. 5 snapshot invention, the method of this embodiment may include:

[0088] 步骤501、接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址fn息ο [0088] Step 501 receives the write request message, the first address in the write request message carrying the desired information fn write snapshot data ο

[0089] 步骤502、根据所述第一地址信息获取对应的第一映射信息。 [0089] Step 502, obtaining according to the first mapping information corresponding to said first address information.

[0090] 步骤503、判断该第一映射信息是否与主存储设备中的生产卷对应,若不是,则执行步骤504,若是执行步骤505。 [0090] Step 503, determining whether the first mapping information corresponding to the production volume of the primary storage device and, if not, proceed to step 504, if step 505 is performed.

[0091] 步骤504、将所需写入快照数据写入所述资源卷中,结束。 [0091] Step 504, the desired write data is written to the snapshot volume of the resource, is completed.

[0092] 步骤505、将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息。 [0092] Step 505, the resources required to write data is written to the snapshot volume, and the primary storage device to the first address information of the bitmap information corresponding to second identification information is modified.

[0093] 步骤501〜步骤505可以的实现原理与图4所示的方法实施例的实现原理相同, 此处不再赘述。 505 can be achieved [0093] Step 501~ Step achieve the same principles and the principles of the method shown in FIG 4 embodiment, it is not described herein.

[0094] 步骤506、将所述第一映射信息修改为指向所述从存储设备的资源卷的第二映射fn息ο [0094] Step 506, the first mapping information is modified to point ο of the resource information from the second mapping fn volumes in the storage device

[0095] 从存储设备在将快照数据存储在资源卷中后,其可以将与该第一地址信息对应的第一映射信息修改为指向资源卷的第二映射信息,以便后续进行快照数据访问时,可以通过该第二映射信息从资源卷中获取该快照数据。 [0095] from the storage device when the data stored in the snapshot volume after the resources, which may be the first mapping information and the first address information corresponding to the second modification to the resource mapping information volume for subsequent access snapshot data , you can obtain the data from the snapshot volume by the second resource mapping information.

[0096] 步骤507、接收读请求消息,所述读请求消息中携带所需读取快照数据的第二地址fn息ο [0096] Step 507 receives a read request message, the second read address fn information request message carries the data required to read the snapshot ο

[0097] 从存储设备还可以接收读请求消息,该读请求消息可以由任一需要读取快照数据的网络实体发送。 [0097] may also receive the request message from the storage device is read, the read request message network entity snapshot data can be read by any desired transmission.

[0098] 步骤508、根据所述第二地址信息获取对应的第三映射信息。 [0098] Step 508, the mapping information corresponding to the third acquiring according to said second address information.

[0099] 举例来说,从存储设备可以查询存储的地址信息和映射信息之间的对应关系,获取与该第二地址信息对应的第三映射信息。 [0099] For example, the storage device can be queried from the correspondence between the address information and the mapping information stored, obtaining the second address information corresponding to the third mapping information.

[0100] 步骤509、判断第三映射信息是否与主存储设备中的生产卷对应,若是,则执行步骤510,否则执行步骤511。 [0100] Step 509, it is determined whether the third mapping information corresponding to the production volume of the primary storage device, if yes, perform step 510, otherwise step 511.

[0101] 步骤510、将所述读请求消息发送给所述主存储设备中的生产卷。 [0101] Step 510, the read request message to the primary storage device of the production volume.

[0102] 从存储设备在获知该第三映射信息与主存储设备中的生产卷对应,也即所需读取的快照数据存储在主存储设备中的生产卷中,则从存储设备可以将该读请求消息进行重定向处理,即将该读请求消息发送给主存储设备,从而使主存储设备将该快照数据存储在生产卷中,该过程可以采用图1所示方法实施例的实现过程,此处不再赘述。 [0102] Production snapshot volume from the production volume data storage in the corresponding storage device knows that the third mapping information in the primary storage device, i.e. the desired read in the main storage device, the storage device may be from the read request message redirection processing, i.e. the read request message is sent to the primary storage device, the storage device so that the main data is stored in the snapshot volume production, the process may implemented method shown in FIG. 1 one embodiment of the process employed, this at not repeat them.

[0103] 步骤511、从所述资源卷中读取所述快照数据。 [0103] Step 511, the read data from the snapshot volume resource.

[0104] 从存储设备在获知该第三映射信息与从存储设备中的资源卷对应,也即所需读取的快照数据存储在从存储设备中的资源卷中,此时,从存储设备即可直接从资源卷中读取快照数据。 [0104] from the storage device knows that the third mapping information from the resource store snapshot data corresponding to the volume of the storage device, i.e. the desired read from the storage device resource volume, time, i.e., from the storage device data can be read directly from the resource snapshot volume.

[0105] 需要说明的是,步骤501〜步骤506为从存储设备处理写请求消息的处理过程,步骤507〜步骤511为从存储设备处理读请求消息的处理过程,本领域技术人员可以理解的是,读操作和写操作可以为同时进行,也可以有先后顺序,因此,本实施例的方法并不限定步骤501〜步骤506与步骤507〜步骤511之间的具体执行顺序。 [0105] Incidentally, the step 501~ step 506 the processing request message from the storage device to write the processing step 507~ step 511 to process the request message reading process from the storage device, those skilled in the art will be appreciated that the , read operation and write operation can be performed simultaneously, the order can also, therefore, the method according to the present embodiment is not limited to the specific order of execution between step 511 and step 506 501~ step 507~ step.

[0106] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,在从存储设备接收向主存储设备的生产卷中写入快照数据的写请求消息时,从存储设备可以将该快照数据写入资源卷中,而主存储设备仅需要修改其对应的位图信息即可,在从存储设备接收从主存储设备的生产卷中读出快照数据的读请求消息时,从存储设备可以将该读请求消息重定向到主存储设备,从而使得主存储设备可以进行快照数据的读取操作。 [0106] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot volume resource mapping information and can be deployed from the storage device, the snapshot is written in the storage device receives from the primary storage device to the production volume of the message data write request, the memory device may write data resource snapshot volume, and the primary storage device only need to modify their corresponding information to a bitmap, from the storage device is received from the primary storage device from the production volume of read snapshot data read request message, the request message may be read from the storage device redirect to the primary storage device, such that the primary storage device may be a read operation of the snapshot data. 因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 Thus, to deploy the resource and volume mapping information from the storage device to save memory space in the main storage device, a snapshot will be deployed from the storage device, so that snapshot itself will not take up storage resources of the primary storage device and memory resources, access to the snapshot the operation will not occupy a primary storage device of the processor and memory resources, it will not compete with business-critical resources on the primary storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of critical business services .

[0107] 本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:R0M、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0107] Those of ordinary skill in the art will be understood: the hardware implementing the above method can be accomplished by a program instructing relevant to all or part of the steps embodiment, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of medium may store program codes R0M, RAM, magnetic disk, or optical disk.

[0108] 图6为本发明主存储设备一个实施例的结构示意图,如图6所示,本实施例的主存储设备可以包括:第一接收模块11、第一查询模块12以及第一处理模块13,其中,第一接收模块11用于接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息;第一查询模块12用于根据所述地址信息获取对应的位图信息;第一处理模块13用于在获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息时,向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 [0108] FIG. 6 is a schematic structural diagram of a main storage device embodiment of the invention, shown in FIG. 6, a main storage device of the present embodiment may include: a first receiving module 11, a first query module 12 and a first processing module 13, wherein the first receiving module 11 for receiving the write request message, a write request message carries the address information required for writing data to production volumes; 12 a first query module is configured to obtain, according to the address information corresponding to bitmap information; first processing module 13 is used to produce the data needed to copy the snapshot volume currently stored in the first identification information from the resource to the volumes on the storage device in the bitmap information acquired to the slave storage apparatus for transmitting data copy request to the snapshot data copied to the resource from the volumes on the storage device.

[0109] 本实施例的主存储设备,其实现原理与图1所示的方法实施例的实现原理类似, 此处不再赘述。 [0109] a main storage device of the present embodiment, the implementation principle of the method shown in FIG. 1 embodiment similar to the implementation of the principles of the embodiments is not repeated here.

[0110] 本实施例中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0110] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot and resource volumes can deploy storage space from the storage device, therefore, the resource volume deployed to the storage device can save the primary storage device , will be deployed from the snapshot storage, such that the snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, and thus does not the main on business-critical storage devices compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小, 结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency.

[0111] 图7为本发明主存储设备另一个实施例的结构示意图,如图7所示,本实施例的主存储设备在图6所示的主存储设备的基础上,可以进一步包括:第一修改模块14和创建生成模块15,其中,第一修改模块14用于将与所述地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示不需要将存储的非快照数据拷贝到从存储设备上的资源卷中;创建生成模块15用于在所述从存储设备中创建所述主存储设备中的生产卷的快照, 并生成所述位图信息,所述位图信息包括与生产卷中存储的快照数据对应的第一标识信息和与非快照数据对应的第二标识信息。 [0111] Figure 7 is a schematic structural diagram of another embodiment of the invention, a main storage device, shown in Figure 7, a main storage device of the present embodiment is based on the primary storage device shown in FIG. 6, the may further comprise: a first and creating a modification module 14 generating module 15, wherein a first module 14 for modifying the address information of the bitmap information corresponding to second identification information is modified, the second identification information indicating no need to store non snapshot data copied to the resource from the volumes on the storage device; Create generating module 15 for creating a snapshot of the production volume of the primary storage device from the storage device, and generates the bitmap information, the said snapshot bitmap information includes data storage and the production volume corresponding to the first identification information and a second non-snapshot data corresponding to the identification information.

[0112] 本实施例的主存储设备,其实现原理与图2所示的方法实施例的实现原理类似, 此处不再赘述。 [0112] a main storage device of the present embodiment, the implementation principle of the method shown in FIG. 2 embodiment is similar to the implementation principle embodiment is not repeated here.

[0113] 本实施例中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0113] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot and resource volumes can deploy storage space from the storage device, therefore, the resource volume deployed to the storage device can save the primary storage device , will be deployed from the snapshot storage, such that the snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, and thus does not the main on business-critical storage devices compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小, 结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency. 而且,主存储设备还可以通过修改位图信息,避免主存储设备将非快照数据也写入资源卷中影响快照数据。 Further, the primary storage device may also modify the bitmap information, the primary storage device to avoid the non-write snapshot data also affect the volume snapshot data resource.

[0114] 图8为本发明从存储设备一个实施例的结构示意图,如图8所示,本实施例的从存储设备可以包括:第二接收模块21以及第二处理模块22,其中,第二接收模块21用于接收主存储设备发送的数据拷贝请求,所述数据拷贝请求中携带需要从所述主存储设备上的生产卷中拷贝到从存储设备上的资源卷中的快照数据;第二处理模块22用于将所述快照数据存储在所述资源卷中,并将与所述快照数据对应的快照的映射信息修改为指向所述从存储设备中的资源卷。 Schematic structural diagram of the embodiment from a memory device, shown in Figure 8 [0114] FIG. 8 of the present invention, the embodiment of the present embodiment from the storage device may include: a second receiving module 21 and the second processing module 22, wherein the second a data receiving module 21 receives the copy request transmitting primary storage device, a copy of the data to be copied from the request carries the production volume on the primary storage device to the volume snapshot data from the resource storage device; a second processing module 22 for the resource in volume, and the snapshot corresponding to the snapshot data mapping information of the snapshot data storage modifying the resource to point to the volume from the storage device.

[0115] 本实施例的从存储设备,其实现原理与图3所示的方法实施例的实现原理类似, 此处不再赘述。 Method from the storage device, which implements the principles illustrated in FIG. 3 embodiment [0115] The present embodiment is similar to the principles of the implement, is not repeated here.

[0116] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 [0116] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot, the resource volume and mapping information can be deployed from the storage device, therefore, to deploy the resource volume and mapping information to be saved from the memory device storage space in the main storage device will be deployed in a snapshot from the storage device, so that the snapshot itself will not take up storage resources to the primary storage device and memory resources, access operation will not take a snapshot of the primary storage device of the processor and memory resources and therefore does not compete for resources with key business on the main storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services.

[0117] 图9为本发明从存储设备另一个实施例的结构示意图,如图9所示,本实施例的从存储设备可以包括:第三接收模块31、第三查询模块32以及第三处理模块33,其中,第三接收模块31用于接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息;第三查询模块32用于根据所述第一地址信息获取对应的第一映射信息;第三处理模块33用于在所述第一映射信息与主存储设备中的生产卷对应时,将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 Schematic structural diagram of another embodiment of the apparatus shown from the storage [0117] FIG. 9 of the present invention, FIG. 9, the present embodiment from the storage device may include: a third receiving module 31, and a third third query processing module 32 module 33, wherein the third receiving module 31 for receiving the write request message, a write request message carries the address information required for the first snapshot of the data written to; third query module 32 according to the first address information obtaining mapping information corresponding to the first; the third processing module 33 for the first mapping information in the primary storage device corresponding to the volume of production, desired data is written to write the snapshot volume resource, and the the primary storage device to the bitmap information corresponding to the address information of the first modification of the second identification information, the second identification information indicating a corresponding production volume on the primary storage device and said first address information the data need not be copied to the resource volume.

[0118] 本实施例的从存储设备,其实现原理与图4所示的方法实施例的实现原理类似, 此处不再赘述。 Method from the storage device, which implements the principles illustrated in FIG. 4 embodiment [0118] The present embodiment is similar to the principles of the implement, is not repeated here.

[0119] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,在从存储设备接收向主存储设备的生产卷中写入快照数据的写请求消息时,从存储设备可以将该快照数据写入资源卷中,而主存储设备仅需要修改其对应的位图信息即可。 [0119] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot volume resource mapping information and can be deployed from the storage device, the snapshot is written in the storage device receives from the primary storage device to the production volume of write data request message may be written to the data from the snapshot volume in the storage device resource, and only need to modify the main storage device corresponding to the bitmap information. 因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 Thus, to deploy the resource and volume mapping information from the storage device to save memory space in the main storage device, a snapshot will be deployed from the storage device, so that snapshot itself will not take up storage resources of the primary storage device and memory resources, access to the snapshot the operation will not occupy a primary storage device of the processor and memory resources, it will not compete with business-critical resources on the primary storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of critical business services .

[0120] 图10为本发明从存储设备再一个实施例的结构示意图,如图10所示,本实施例的从存储设备在图9所示的从存储设备的基础上,可以进一步包括:第三修改模块34 ;第三处理模块33还用于在所述第一映射信息与资源卷对应时,将所需写入快照数据写入所述资源卷中。 [0120] FIG. 10 from the storage device a schematic structural diagram of another embodiment of the present invention shown in Figure 10, the present embodiment from the storage device from the storage device based on, may further comprise as shown in FIG. 9: first three modification module 34; a third processing module 33 is also configured to, when the first mapping information and resources corresponding to the volume, write the desired data is written to the snapshot volume resource. 另外,第三接收模块31还用于接收读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息;第三查询模块32还用于根据所述第二地址信息获取对应的第三映射信息;第三处理模块33还用于在所述第三映射信息与主存储设备中的生产卷对应时,将所述读请求消息发送给所述主存储设备中的生产卷,在所述第三映射信息与所述资源卷对应时,从所述资源卷中读取所述快照数据。 Further, a third receiving module 31 is further configured to receive the read request message, read the snapshot data read second address information request message carries desired; third query module 32 is further configured to obtain second address information in accordance with the corresponding to the third mapping information; third processing module 33 is further configured in the third mapping information in the main storage device corresponding to the volume production, the read request message to the primary storage device of the production volume , when the third mapping information corresponding to the volume of the resource, the resource is read from the volume snapshot data.

[0121] 本实施例的从存储设备,其实现原理与图5所示的方法实施例的实现原理类似, 此处不再赘述。 Method from the storage device, which implements the principles illustrated in FIG. 5 of the embodiment of [0121] embodiment of the present embodiment is similar to the implementation principle, are not repeated herein.

[0122] 本实施例中,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,在从存储设备接收向主存储设备的生产卷中写入快照数据的写请求消息时,从存储设备可以将该快照数据写入资源卷中,而主存储设备仅需要修改其对应的位图信息即可,在从存储设备接收从主存储设备的生产卷中读出快照数据的读请求消息时,从存储设备可以将该读请求消息重定向到主存储设备,从而使得主存储设备可以进行快照数据的读取操作。 [0122] In this embodiment, the production volume can be deployed on a main storage device, and a snapshot volume resource mapping information and can be deployed from the storage device, the snapshot is written in the storage device receives from the primary storage device to the production volume of the message data write request, the memory device may write data resource snapshot volume, and the primary storage device only need to modify their corresponding information to a bitmap, from the storage device is received from the primary storage device from the production volume of read snapshot data read request message, the request message may be read from the storage device redirect to the primary storage device, such that the primary storage device may be a read operation of the snapshot data. 因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 Thus, to deploy the resource and volume mapping information from the storage device to save memory space in the main storage device, a snapshot will be deployed from the storage device, so that snapshot itself will not take up storage resources of the primary storage device and memory resources, access to the snapshot the operation will not occupy a primary storage device of the processor and memory resources, it will not compete with business-critical resources on the primary storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of critical business services .

[0123] 图11为本发明快照数据处理系统一个实施例的结构示意图,如图11所示,本实施例的系统可以包括:主存储设备1和从存储设备2,其中主存储设备1可以采用图6或图7 所示的主存储设备,具体地,该主存储设备1可以用于接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息;根据所述地址信息获取对应的位图信息;若获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备2上的资源卷中的第一标识信息,则向从存储设备2发送数据拷贝请求以将所述快照数据拷贝到从存储设备2上的资源卷中,并将从存储设备2中的与所述快照数据对应的快照的映射信息修改为指向从存储设备2中的资源卷;从存储设备2用于接收主存储设备1发送的数据拷贝请求, 将所述快照数据存储在所述资源卷中。 A schematic structural diagram of a snapshot of the data processing system embodiment [0123] FIG. 11 of the present invention, shown in Figure 11, the system according to the present embodiment may include: a main storage device from the storage device 1 and 2, wherein the main storage apparatus 1 may be employed primary storage apparatus shown in FIG. 6 or FIG. 7, specifically, the main storage device may be configured to receive a write request message, the message carries address information of the write needs to write data to the volume production request; according to the the address information acquisition information corresponding to the bitmap; bitmap information if the obtained copy is required production volume snapshot data currently stored in the first identification information from the resource volume on the second storage device, the storage device 2 transmits from data copy request to the copy of the data from the snapshot volume on the resources in the storage device 2, and the snapshot data storage device 2 from the mapping information corresponding to the snapshot modified to point to the resource from the storage apparatus 2 volume; master copy of the data storage device receiving a request from the storage device 2 for transmission 1, the resource data stored in the snapshot volume.

[0124] 本实施例中,主存储设备1的实现原理与图1和图2所示的方法实施例的实现原理类似,从存储设备的实现原理与图3所示的方法实施例的实现原理类似此处不再赘述。 [0124] In this embodiment, the primary storage device 1 embodying the principles of the method shown in FIG. 1 and FIG. 2 embodiment similar to the implementation of the principles of the implementation principle from the embodiment shown in the method embodying the principles of the storage device 3 of FIG. similar to not repeat them here.

[0125] 本实施例的系统中,生产卷可以部署在主存储设备上,而快照和资源卷可以部署在从存储设备上,因此,将资源卷部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 The system [0125] according to the present embodiment, the production volume can be deployed on a main storage device, and a snapshot and resources volume can be deployed on a storage device from, and therefore, the resource volume deployed to the storage device can save the primary storage device storage space, will be deployed from the snapshot storage, such that the snapshot itself will not take up storage and memory resources of a main storage device, the operation does not access the snapshot processor and memory resources occupied by the primary storage device, it will not and key business on the primary storage device to compete for resources, thus ensuring the operation of key businesses on the main storage device, improving the quality of business-critical services. 而且,在主存储设备上对生产卷进行写操作处理时,只需查询主存储设备内的位图信息即可确定是否需要进行快照数据的写前拷贝,位图信息不需要记录地址,因此占用的资源较小,结构简单,访问效率高。 Further, the production volumes on a primary storage device when a write operation processing, query the bitmap information within the primary storage device to determine whether pre-write snapshot copy data, bitmap information need not be recorded address, so use smaller resources, simple structure, high access efficiency.

[0126] 本发明快照数据处理系统另一个实施例也可以采用图11所示的结构示意图,其中从存储设备2可以采用图9或10所示的从存储设备,具体地,该从存储设备2可以用于接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息;根据所述第一地址信息获取对应的第一映射信息;若所述第一映射信息与主存储设备1中的生产卷对应,则将所需写入快照数据写入资源卷中,并将主存储设备1中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示主存储设备1上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中;主存储设备1用于接收从存储设备2发送的读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息,并将与所述第二地址信息对应的快照数据发送给从存储设备2。 From a storage device, in particular, from the storage device 2 [0126] The data processing system of the present invention is a snapshot of another embodiment of a schematic structure shown in FIG. 11 may be employed, which can be used from the storage device 2 shown in FIG. 9 or 10 may be used for receiving the write request message, the first write address information request message carries the data required for the write snapshot; obtaining a first mapping information corresponding to the address information according to the first; and if the first mapping information production in volume corresponds to a primary storage device, then the required resource write data is written to the snapshot volume, the first address information corresponding to a primary storage device and modify the second bitmap information identification information, the second identification information indicating production volumes on a primary storage device in the data with the first address information corresponding to the resource does not need to be copied to the volume; a main storage device for receiving the transmitted read from the storage device 2 request message, read the snapshot data read second address information request message carrying the desired, and sent from the storage device 2 and the second snapshot data corresponding to the address information.

[0127] 本实施例中,从存储设备的实现原理与图4和图5所示的方法实施例的实现原理类似此处不再赘述。 [0127] In this embodiment, to achieve the principles of the embodiments from the storage device to achieve the principles of the method shown in FIGS. 4 and 5 is similar to FIG omitted here.

[0128] 本实施例的系统,生产卷可以部署在主存储设备上,而快照、资源卷以及映射信息可以部署在从存储设备上,在从存储设备接收向主存储设备的生产卷中写入快照数据的写请求消息时,从存储设备可以将该快照数据写入资源卷中,而主存储设备仅需要修改其对应的位图信息即可。 [0128] system of the present embodiment, the production volume can be deployed on a main storage device, and a snapshot, a volume of resources and mapping information on the storage device can be deployed from, write to the storage device receives from the production volume of the primary storage device write snapshot data request message may be written to the data from the snapshot volume in the storage device resource, and only need to modify the main storage device corresponding to the bitmap information. 因此,将资源卷以及映射信息部署到从存储设备上可以节约主存储设备的存储空间,将快照部署在从存储设备上,使得快照本身不会占用主存储设备的存储资源和内存资源,访问快照的操作也不会占用主存储设备的处理器资源和内存资源,因此不会与主存储设备上的关键业务争夺资源,从而保证了主存储设备上关键业务的运行,提高了关键业务的服务质量。 Thus, to deploy the resource and volume mapping information from the storage device to save memory space in the main storage device, a snapshot will be deployed from the storage device, so that snapshot itself will not take up storage resources of the primary storage device and memory resources, access to the snapshot the operation will not occupy a primary storage device of the processor and memory resources, it will not compete with business-critical resources on the primary storage device, thus ensuring the operation of key businesses on the main storage device, improving the quality of critical business services .

[0129] 最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 [0129] Finally, it should be noted that: the above embodiments are intended to illustrate the present invention, rather than limiting;. Although the present invention has been described in detail embodiments, those of ordinary skill in the art should be understood: may still be made to the technical solutions described in each embodiment of the modified or part of the technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the technical solutions of the embodiments of the present invention and scope.

Claims (12)

  1. 一种快照数据处理方法,其特征在于,包括:接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息;根据所述地址信息获取所述地址信息对应的位图信息;若获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息,则向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 A type of snapshot data processing method, comprising: receiving a write request message carries the address information of the write data to be written to the volume production request message; acquiring information corresponding to said address bits from the address information map information; bitmap information if the obtained copy is required production volume snapshot data currently stored in the first identification information from the resource volumes on the storage device, the data is transmitted to the copy request from the storage device to the said snapshot data copied from the storage device to the resource volume.
  2. 2.根据权利要求1所述的快照数据处理方法,其特征在于,在向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中之后,还包括:将与所述地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示不需要将存储的非快照数据拷贝到从存储设备上的资源卷中。 The snapshot data processing method according to claim 1, wherein, in transmitting data to copy from the storage device a request to copy the data to the snapshot volume after the resource from the storage device, further comprising: the bitmap information corresponding to the address information of the second identification information is modified, the second identification information indicating no need to copy the stored data to non-snapshot from the storage device resource volume.
  3. 3.根据权利要求2所述的快照数据处理方法,其特征在于,所述接收写请求消息之前, 还包括:生成所述位图信息,所述位图信息表示是否将主存储设备中的生产卷中的数据拷贝到从存储设备上的资源卷中。 3. snapshot data processing method according to claim 2, wherein, before receiving the write request message, further comprising: generating the bitmap information and the bitmap information indicating whether the primary storage device production volume data copied to the volume from the resource storage device.
  4. 4. 一种快照数据处理方法,其特征在于,包括:接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息;根据所述第一地址信息获取对应的第一映射信息;若所述第一映射信息与主存储设备中的生产卷对应,则将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息, 所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 A snapshot data processing method, comprising: receiving a write request message, the first write address information request message carries the data required for the write snapshot; obtaining a corresponding second address information according to the first a mapping information; if the first mapping information corresponding to the production volume of the primary storage device, then writing the desired data is written to the snapshot volume resource, and the primary storage device to the first address information bitmap information corresponding to second identification information is modified, the second identification information indicating the production volume on the primary storage device to the first address information corresponding to data need not be copied to the resource volume.
  5. 5.根据权利要求4所述的快照数据处理方法,其特征在于,还包括:接收读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息;根据所述第二地址信息获取对应的第三映射信息;当所述第三映射信息与主存储设备中的生产卷对应时,将所述读请求消息发送给所述主存储设备中的生产卷。 The snapshot of the data processing method according to claim 4, characterized in that, further comprising: receiving a read request message, the message read request to read a second snapshot data carrying the desired address information; according to the second acquiring address information corresponding to the third mapping information; when the third mapping information from the primary storage device corresponding to the volume of production, the read request message to the primary storage device of the production volume.
  6. 6. 一种主存储设备,其特征在于,包括:第一接收模块,用于接收写请求消息,所述写请求消息中携带需要向生产卷中写入数据的地址信息;第一查询模块,用于根据所述地址信息获取所述地址信息对应的位图信息;第一处理模块,用于在获取的位图信息为需要将生产卷中当前存储的快照数据拷贝到从存储设备上的资源卷中的第一标识信息时,向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中。 A main storage device, characterized by comprising: a first receiving module, configured to receive a message write request, the write request message carries the address information required for writing data to production volumes; a first query module, the address information for obtaining the address information corresponding to the bitmap information; a first processing module, configured to obtain information of the bitmap data is necessary to copy the snapshot volume production resources from the currently stored on the storage device the first volume identification information, the request to transmit data from the storage device to copy the snapshot data copied to the resource from the volumes on the storage device.
  7. 7.根据权利要求6所述的主存储设备,其特征在于,还包括:第一修改模块,用于在第一处理模块向所述从存储设备发送数据拷贝请求以将所述快照数据拷贝到所述从存储设备上的资源卷中之后,将与所述地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示不需要将存储的非快照数据拷贝到从存储设备上的资源卷中。 The primary storage apparatus according to claim 6, characterized in that, further comprising: a first modifying module, a first processing module configured to copy the snapshot data to the requesting data copy from the storage device to send after the resource from the volumes on the storage device, the address information corresponding to the bitmap information is a modified second identification information, the second identification information indicating no need to copy the stored data to non-snapshot from resource volumes on the storage device.
  8. 8.根据权利要求6所述的主存储设备,其特征在于,还包括:创建生成模块,用于生成所述位图信息,所述位图信息表示是否将主存储设备中的生产卷中的数据拷贝到从存储设备上的资源卷中。 The primary storage apparatus according to claim 6, characterized in that, further comprising: creating a generating module for generating the bitmap information, the bitmap information indicating whether the primary storage device production volume volume data is copied to the resource from the storage device.
  9. 9. 一种从存储设备,其特征在于,包括:第三接收模块,用于接收写请求消息,所述写请求消息中携带所需写入快照数据的第一地址信息;第三查询模块,用于根据所述第一地址信息获取对应的第一映射信息;第三处理模块,用于在所述第一映射信息与主存储设备中的生产卷对应时,将所需写入快照数据写入资源卷中,并将所述主存储设备中与所述第一地址信息对应的位图信息修改为第二标识信息,所述第二标识信息用于表示所述主存储设备上的生产卷中与所述第一地址信息对应的数据不需要拷贝到资源卷中。 A from the storage device, characterized by comprising: a third receiving module, configured to receive a message write request, the write request message carries the address information required for the first snapshot of the data written to; third query module, for acquiring information corresponding to a first map in accordance with said first address information; a third processing module, for the first mapping information in the main storage device when the production volume corresponding to the desired write snapshot data write the volume of resources, and the bitmap information in the primary storage device to the first address information corresponding to second identification information is modified, the second identification information indicating said production volume on the primary storage device with the first address information corresponding to data need not be copied to the resource volume.
  10. 10.根据权利要求9所述的从存储设备,其特征在于,所述第三接收模块还用于接收读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息;所述第三查询模块还用于根据所述第二地址信息获取对应的第三映射信息;所述第三处理模块还用于在所述第三映射信息与主存储设备中的生产卷对应时,将所述读请求消息发送给所述主存储设备中的生产卷,在所述第三映射信息与所述资源卷对应时,从所述资源卷中读取所述快照数据。 According to claim 9 from a storage device, characterized in that, the third receiving module is further configured to receive a read request message, reads the snapshot data in the second message carries address information of the read request required; when the third processing module is further used in the third mapping information in the primary storage device corresponding to the production volume; the third query module is further configured to obtain a corresponding third mapping information according to the second address information , the read request message to the primary storage device of the production volume, reading the data from said resource snapshot volume when the third mapping information corresponding to the volume with the resource.
  11. 11. 一种快照数据处理系统,其特征在于,包括:如权利要求6-8任一权利要求所述的主存储设备和从存储设备;所述从存储设备,用于接收所述主存储设备发送的数据拷贝请求,将所述快照数据存储在资源卷中。 A snapshot of a data processing system comprising: a primary storage device of any of claims 6-8 from a storage device and as claimed in claim; from the storage device, for receiving the primary storage device copying data transmission request, the resource data stored in the snapshot volume.
  12. 12. 一种快照数据处理系统,其特征在于,包括:主存储设备和如权利要求9或10所述的从存储设备;所述主存储设备,用于接收所述从存储设备发送的读请求消息,所述读请求消息中携带所需读取快照数据的第二地址信息,并将与所述第二地址信息对应的快照数据发送给所述从存储设备。 A snapshot of a data processing system comprising: a storage device from 9 or 10 and the main storage device as claimed in claim; primary storage device, a read request sent from the storage device for receiving message, the read request message carrying the desired snapshot data read second address information, and transmits the second snapshot data corresponding to the address information from the storage device.
CN 201010104453 2010-02-01 2010-02-01 Snapshot data processing method, system and storage device CN101819543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010104453 CN101819543A (en) 2010-02-01 2010-02-01 Snapshot data processing method, system and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010104453 CN101819543A (en) 2010-02-01 2010-02-01 Snapshot data processing method, system and storage device

Publications (1)

Publication Number Publication Date
CN101819543A true true CN101819543A (en) 2010-09-01

Family

ID=42654656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010104453 CN101819543A (en) 2010-02-01 2010-02-01 Snapshot data processing method, system and storage device

Country Status (1)

Country Link
CN (1) CN101819543A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033793A (en) * 2010-12-14 2011-04-27 成都市华为赛门铁克科技有限公司 Snapshot method and solid-state hard disk
CN102426552A (en) * 2011-10-31 2012-04-25 成都市华为赛门铁克科技有限公司 Storage system service quality control method, device and system
CN102541461A (en) * 2010-12-31 2012-07-04 阿里巴巴集团控股有限公司 Data reading-writing method and device for remote data storage and system thereof
WO2012167582A1 (en) * 2011-07-01 2012-12-13 Huawei Technologies Co., Ltd. System and method for making snapshots of storage devices
WO2013029434A1 (en) * 2011-08-31 2013-03-07 华为数字技术(成都)有限公司 Method and device for writing data into production volume
CN102971698A (en) * 2012-06-29 2013-03-13 华为技术有限公司 Snapshot data-processing method and system, storage system and snapshot agency
CN103049349A (en) * 2012-11-29 2013-04-17 记忆科技(深圳)有限公司 Snapshot method and system based on tiered storage
CN103777897A (en) * 2012-10-17 2014-05-07 国际商业机器公司 Method and system for copying data between primary and secondary storage locations
CN103793291A (en) * 2012-11-01 2014-05-14 华为技术有限公司 Distributed data copying method and apparatus
US9026849B2 (en) 2011-08-23 2015-05-05 Futurewei Technologies, Inc. System and method for providing reliable storage
US9335931B2 (en) 2011-07-01 2016-05-10 Futurewei Technologies, Inc. System and method for making snapshots of storage devices
WO2017054636A1 (en) * 2015-09-30 2017-04-06 中兴通讯股份有限公司 Method and apparatus for processing virtual machine snapshots
CN106796545A (en) * 2014-12-28 2017-05-31 斯特拉托斯卡莱有限公司 Recovery synchronization in a distributed storage system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033793A (en) * 2010-12-14 2011-04-27 成都市华为赛门铁克科技有限公司 Snapshot method and solid-state hard disk
CN102541461A (en) * 2010-12-31 2012-07-04 阿里巴巴集团控股有限公司 Data reading-writing method and device for remote data storage and system thereof
CN102541461B (en) * 2010-12-31 2014-11-19 阿里巴巴集团控股有限公司 Data reading-writing method and device for remote data storage and system thereof
CN103814359A (en) * 2011-07-01 2014-05-21 华为技术有限公司 System and method for making snapshots of storage devices
US9335931B2 (en) 2011-07-01 2016-05-10 Futurewei Technologies, Inc. System and method for making snapshots of storage devices
WO2012167582A1 (en) * 2011-07-01 2012-12-13 Huawei Technologies Co., Ltd. System and method for making snapshots of storage devices
CN103814359B (en) * 2011-07-01 2017-12-12 华为技术有限公司 Systems and methods for fabricating the memory device snapshots
US9026849B2 (en) 2011-08-23 2015-05-05 Futurewei Technologies, Inc. System and method for providing reliable storage
WO2013029434A1 (en) * 2011-08-31 2013-03-07 华为数字技术(成都)有限公司 Method and device for writing data into production volume
US9594518B2 (en) 2011-10-31 2017-03-14 Huawei Technologies Co., Ltd. Method, apparatus and system for controlling quality of service of storage system
CN102426552A (en) * 2011-10-31 2012-04-25 成都市华为赛门铁克科技有限公司 Storage system service quality control method, device and system
CN102426552B (en) 2011-10-31 2014-06-04 华为数字技术(成都)有限公司 Storage system service quality control method, device and system
CN102971698A (en) * 2012-06-29 2013-03-13 华为技术有限公司 Snapshot data-processing method and system, storage system and snapshot agency
CN102971698B (en) 2012-06-29 2014-07-09 华为技术有限公司 Snapshot data-processing method and system, storage system and snapshot agency
WO2014000249A1 (en) * 2012-06-29 2014-01-03 华为技术有限公司 Snapshot data processing method and system, storage system and snapshot agency
US9483366B2 (en) 2012-10-17 2016-11-01 International Business Machines Corporation Bitmap selection for remote copying of updates
CN103777897A (en) * 2012-10-17 2014-05-07 国际商业机器公司 Method and system for copying data between primary and secondary storage locations
CN103777897B (en) * 2012-10-17 2017-03-22 国际商业机器公司 A method for replicating data between the primary system and the secondary storage location and
CN103793291A (en) * 2012-11-01 2014-05-14 华为技术有限公司 Distributed data copying method and apparatus
CN103049349A (en) * 2012-11-29 2013-04-17 记忆科技(深圳)有限公司 Snapshot method and system based on tiered storage
CN103049349B (en) * 2012-11-29 2016-02-24 记忆科技(深圳)有限公司 Based snapshot method and system for tiered storage
CN106796545A (en) * 2014-12-28 2017-05-31 斯特拉托斯卡莱有限公司 Recovery synchronization in a distributed storage system
WO2017054636A1 (en) * 2015-09-30 2017-04-06 中兴通讯股份有限公司 Method and apparatus for processing virtual machine snapshots

Similar Documents

Publication Publication Date Title
US8627012B1 (en) System and method for improving cache performance
US7054960B1 (en) System and method for identifying block-level write operations to be transferred to a secondary site during replication
US20050071393A1 (en) Data storage subsystem
US8725692B1 (en) Replication of xcopy command
US20020103980A1 (en) Method, system, and program for discarding data in a storage system where uptdates to a primary storage device are shadowed in a secondary storage device
US6701455B1 (en) Remote copy system with data integrity
US20120016840A1 (en) Virtual machine aware replication method and system
US20130024722A1 (en) Virtual disk replication using log files
US7127578B2 (en) Storage device and information management system
US20140089730A1 (en) Storage control device and method for controlling storages
US20080016300A1 (en) Asynchronous replication with write concurrency grouping
US20070022144A1 (en) System and method for creating an application-consistent remote copy of data using remote mirroring
US20060047926A1 (en) Managing multiple snapshot copies of data
US8977826B1 (en) Extent commands in replication
US8898112B1 (en) Write signature command
US20060075200A1 (en) Snapshot system
US20010049749A1 (en) Method and system for storing duplicate data
US20050210210A1 (en) Storage subsystem and storage system
US20050071386A1 (en) Method, system, and program for data synchronizatiom
US20050086432A1 (en) Disk array device having snapshot simulation function
US9158630B1 (en) Testing integrity of replicated storage
US20090006794A1 (en) Asynchronous remote copy system and control method for the same
US20040181642A1 (en) Storage system and snapshot management method thereof
US20080034176A1 (en) Computer system and snapshot creation method thereof
EP1424632A2 (en) Storage system snapshot creating method and apparatus

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent