WO2015074260A1 - Data synchronization method and data synchronization system - Google Patents
Data synchronization method and data synchronization system Download PDFInfo
- Publication number
- WO2015074260A1 WO2015074260A1 PCT/CN2013/087721 CN2013087721W WO2015074260A1 WO 2015074260 A1 WO2015074260 A1 WO 2015074260A1 CN 2013087721 W CN2013087721 W CN 2013087721W WO 2015074260 A1 WO2015074260 A1 WO 2015074260A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- storage device
- data
- storage
- snapshot
- removable
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2056—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
- G06F11/2082—Data synchronisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2056—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
- G06F11/2071—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring using a plurality of controllers
- G06F11/2074—Asynchronous techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/84—Using snapshots, i.e. a logical point-in-time copy of the data
Definitions
- Embodiments of the present invention relate to the field of information technology, and more particularly, to a data synchronization method and a data synchronization system. Background technique
- the storage-based data replication technology implements remote replication and synchronization of data through the data replication software in the storage system, that is, the storage system copies the local storage update data to the storage system of the disaster recovery end and executes it to ensure data consistency. .
- the data replication software runs in the storage system. Therefore, it is easier to implement the real-time replication capability of the production and disaster recovery operating systems, databases, and files without affecting the performance of the production host system. A widely used program.
- Storage-based remote data replication requires the first data synchronization, which is to transfer the data on the original storage device to the remote storage device through a remote link (usually an IP link). Due to the high cost of long-distance link leases, the bandwidth of IP links is usually low, and the value is usually on the order of Mbps. The amount of data on the original storage devices is usually on the order of terabytes (terabytes). It takes a few months to transfer terabytes of data on this link, which takes too long.
- One solution is to relocate the disaster recovery storage device to the production data center, use the local high-bandwidth network to complete the first data synchronization, and then relocate the disaster recovery storage device to the remote disaster recovery data center.
- the present invention provides a data synchronization method and system, which can solve the data storage on the storage device of the production center and the storage device of the disaster recovery center by using the removable storage medium, and can solve the storage device and disaster recovery of the production center in the prior art.
- the central storage device takes too long to synchronize data or the risk of inconvenience and data loss due to relocation of the storage device.
- the embodiment of the present invention provides a data synchronization method and a data synchronization system, which can implement data synchronization between a first storage device and a second storage device located at the remote end of the first storage device and being used for disaster recovery storage of the first storage device. .
- a data synchronization method including: a first storage device generating a snapshot of data stored in a target logical unit number LU, and a transmission duration required for data stored in the target LU to be transmitted over a network exceeds a transmission duration Threshold; the first storage device writes the data in the snapshot to the removable storage medium; the second storage device reads and stores the data in the removable storage medium; wherein the second storage device is located in the first storage device
- the remote device and the second storage device are disaster recovery storage of the first storage device.
- the first storage device writes the data in the snapshot to the removable storage medium, including: the first storage device, the data in the snapshot, and the snapshot The storage location information of the data in the first storage device is written to the removable storage medium.
- the second storage device reads and stores data in the removable storage medium, including: the second storage device reads Data in the removable storage medium and storage location information of the data; the second storage device stores the data in a local storage area of the second storage device according to the storage location information of the data.
- the storage location information of the data includes: a world common name WWN of the LU to which the data belongs, and the data is in the The logical block location LBA in the home LUN.
- the method further includes: if the data stored in the first storage device is updated and updated The transmission duration required for data transmission using the network does not exceed the transmission duration threshold, and the first storage device transmits the updated data to the second storage device through the network.
- a data synchronization system including: a first storage device and a second storage device, where the second storage device is located at a remote end of the first storage device and the second storage device is the first storage device
- the disaster recovery storage the first storage device is configured to generate a snapshot of data stored in the target logical unit number LU, and the data stored in the target LU is transmitted by using the network. The duration exceeds the transmission duration threshold; the first storage device is further configured to write data in the snapshot to the removable storage medium; the second storage device is configured to read and store data in the removable storage medium.
- the first storage device is specifically configured to write the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the Move the storage media.
- the second storage device is specifically configured to: read data in the removable storage medium and storage location information of the data; The data is stored to a local storage area of the second storage device based on the storage location information of the data.
- the storage location information of the data includes: a world common name WWN of the LU to which the data belongs, and the data is in the The logical block location LBA in the home LUN.
- a fourth possible implementation if the data stored in the first storage device is updated and the updated data is transmitted by using the network The required transmission duration does not exceed the transmission duration threshold, and the first storage device is further configured to transmit the updated data to the second storage device over the network.
- the data synchronization method provided by the embodiment of the present invention, the data is written to the removable storage medium by the first storage device, and the second storage device reads and stores the data on the removable storage medium, wherein the second The storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented.
- the data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method, and the data synchronization method of the embodiment of the present invention is convenient to operate compared with the existing method for relocating the storage device, and Reduce the risk of data loss or damage.
- FIG. 1 is a schematic flowchart of a data synchronization method according to an embodiment of the present invention.
- FIG. 2 is another schematic flowchart of a data synchronization method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a data synchronization system according to an embodiment of the present invention. detailed description
- the technical solution of the embodiment of the present invention is mainly applied to the first data synchronization between the storage device of the production center and the storage device of the disaster recovery center, and can also be applied to the data that needs to be synchronized between the storage device of the production center and the storage device of the disaster recovery center.
- Other scenarios of larger amounts, but embodiments of the invention are not limited thereto.
- FIG. 1 is a schematic flow chart of a data synchronization method 100 in accordance with an embodiment of the present invention, which may be performed by a data synchronization system.
- the method 100 can be used to synchronously store data on the first storage device to the second storage device, where the second storage device is located at a remote end of the first storage device and the second storage device is the first storage device.
- Disaster recovery storage of the device may be a storage device of a production center, and the production center may include a network device such as a switch and a router, a server, and the first storage device to provide external services.
- the second storage device may be a storage device of the disaster recovery center of the production center, and the disaster recovery center is far away from the production center, but the embodiment of the present invention does not limit this.
- the method may also be used to damage or lose data on the first storage device.
- the data on the second storage device is synchronously stored on the first storage device, which is not limited in this embodiment of the present invention. As shown in FIG. 1, the method 100 includes:
- the first storage device generates a snapshot of the data stored in the target logical unit number (LU), and the data storage time of the data stored in the target LU exceeds the transmission duration threshold when the network transmission is performed.
- LU target logical unit number
- the transmission time threshold may be set by the user according to requirements, and may be a value or a numerical range or an expression.
- the embodiment of the present invention is not limited thereto.
- the working mode of the Fibre Channel (FC) port of the first storage device is a target mode, and in order to identify a removable storage medium, for example, a tape library,
- the working mode of the at least one FC port of the first storage device is In the Initiator mode.
- the removable storage medium may be in the same storage area network (SAN) as the first storage device, and the FC port of the removable storage device and the at least one FC port of the first storage device Located in the same area (Zoning) of the SAN, the first storage device can detect and identify the removable storage medium.
- SAN storage area network
- the first storage device may determine at least one target LU and generate the at least one target LU A snapshot of all the data stored in a moment.
- the first storage device may determine the at least one target LU according to a user instruction, but the embodiment of the present invention is not limited thereto.
- the first storage device writes the data in the snapshot to the removable storage medium.
- the removable storage medium is easier to relocate than the first storage device and the second storage device.
- the removable storage medium may be a tape library or a mobile disk, which is not limited in the embodiment of the present invention.
- the second storage device reads and stores data in the removable storage medium.
- the removable storage medium can be relocated to the second storage device end.
- the removable storage medium is accessible to the same SAN as the second storage device, and at least one operating mode of the FC port of the removable storage medium and the second storage device is set to an initiator
- the FC port is in the same Zoning zone of the SAN such that the second storage device can detect and identify the removable storage medium.
- the second storage device After the second storage device detects the removable storage medium, the second storage device can read data in the removable storage medium and store the read data to a local storage area of the second storage device.
- embodiments of the invention are not limited thereto.
- the data synchronization method of the embodiment of the present invention data is written to the removable storage medium by the first storage device and the second storage device reads and stores the data on the removable storage medium.
- the second storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented.
- the data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate, and Reduce the risk of data loss or damage.
- the first storage device writes the data in the snapshot to the removable storage medium, including:
- the first storage device writes the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the removable storage medium.
- the storage location information of the data may be used to mark the data, so that when the data is read and stored by the second storage device, the second storage device may store the data according to the storage location information, but the embodiment of the present invention is not limited thereto. this.
- the second storage device reads and stores data in the removable storage medium, including:
- the second storage device reads data in the removable storage medium and storage location information of the data.
- the second storage device stores the data to a local storage area of the second storage device according to the storage location information of the data.
- the second storage device may store the data according to the storage location information of the data, such that the storage location of the data on the second storage device corresponds to the storage location of the data on the first storage device, but the present invention The embodiment is not limited to this.
- the storage location information of the data includes: a world common name WWN of the LU to which the data belongs and a logical block location LBA of the data in the belonging LU.
- the storage location information of the data may also be other information that can determine the storage location of the data, and the embodiment of the present invention is not limited thereto.
- the first storage device may also encode data in the snapshot, for example, looping.
- a Cyclic Redundancy Check (CRC) code is encoded and the encoded data is written to the removable storage medium.
- the second storage device may decode the read data and store the decoded data to a local storage area of the second storage device, but The embodiment of the invention is not limited thereto.
- the data on the first storage device and the second storage device may be at intervals of a certain period. Incremental synchronization is performed, that is, the updated data on one of the first storage device and the second storage device is synchronized to another storage device. At this time, if the amount of data of the update data is small, the network synchronization may be used for incremental synchronization, and accordingly, the method 100 further Includes:
- the first storage device transmits the update to the second storage device through the network. The data.
- the first storage device may also establish a data replication correspondence relationship with the second storage device.
- the data replication software may be installed on the first storage device and the second storage device, and the data replication software is configured to make data replication of the first storage device and the second storage device as another device. Peer device. In this way, when there is data update in the first storage device or the second storage device, the updated data can be transmitted to the other party through the network, but the embodiment of the present invention is not limited thereto.
- data is written to the removable storage medium by the first storage device, and the second storage device reads and stores the data on the removable storage medium, where the second storage device is located
- the remote end of the first storage device and the second storage device are the disaster recovery storage of the first storage device, which can implement data synchronization between the first storage device and the second storage device, and is compatible with the existing network transmission mode.
- the data synchronization method of the embodiment of the present invention can shorten the data transmission time. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate and can reduce the risk of data loss or damage.
- FIG. 3 shows a schematic block diagram of a data synchronization system 200 according to an embodiment of the present invention.
- the data synchronization system 200 includes: a first storage device 210 and a second storage device 220, the second storage device 220 is located at the remote end of the first storage device 210 and the second storage device 220 is a disaster recovery storage of the first storage device 210;
- the first storage device 210 is configured to generate a snapshot of the data stored in the target logical unit number LUN, and the transmission time required for the data stored in the target LU to use the network transmission exceeds the transmission duration threshold;
- the first storage device 210 is further configured to write data in the snapshot to the removable storage medium; the second storage device 220 is configured to read and store data in the removable storage medium. Therefore, in the data synchronization system of the embodiment of the present invention, data is written to the removable storage medium by the first storage device and the second storage device reads and stores the data on the removable storage medium.
- the second storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented.
- the data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate, and Reduce the risk of data loss or damage.
- the first storage device 210 is specifically configured to write the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the removable storage medium.
- the second storage device 220 is specifically configured to:
- the data is stored to a local storage area of the second storage device based on the storage location information of the data.
- the storage location information of the data includes: a world common name WWN of the LU to which the data belongs and a logical block location LBA of the data in the belonging LU.
- the first storage device 210 if the data length of the updated data and the updated data stored in the first storage device 210 is not exceeded by the transmission time threshold, the first storage device 210 is further used.
- the updated data is transmitted to the second storage device 220 over the network.
- the first storage device 210 and the second storage device 220 are further used to interact with each other. Establish a data replication correspondence.
- the first storage device in the data synchronization system 200 may correspond to the first storage device in the data synchronization method according to an embodiment of the present invention
- the second storage device in the data synchronization system 200 may correspond to The second storage device in the data synchronization method of the embodiment of the present invention
- the above-mentioned and other operations and/or functions of the respective modules in the data synchronization system 200 are respectively implemented to implement the respective processes of the respective methods in FIG. 1 and FIG. For the sake of brevity, it will not be repeated here.
- the term "and/or" is merely an association relationship describing an associated object, indicating that there may be three relationships.
- a and / or B can mean: There are three cases where A exists separately, A and B exist at the same time, and B exists separately.
- the character "/" in this article generally means that the contextual object is an "or” relationship.
- the disclosed systems, devices, and methods may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
- the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
- Including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods of the various embodiments of the present invention Step by step.
- the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD.
- ROM Read-Only Memory
- RAM Random Access Memory
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Disclosed are a data synchronization method and a data synchronization system in the present invention. The data synchronization method comprises: a first storage device generates snapshots of data stored in a target logical unit number LUN; the first storage device writes the data of the snapshots into a removable storage medium; a second storage device reads and stores the data in the removable storage medium; the second storage device is located on the far-end of the first storage device, and is a disaster-recovery backup storage of the first storage device. The data synchronization method and system of embodiments of the present invention can realize the data synchronization between the first storage device and the second storage device, and can shorten data transmission time compared with the present network transmission mode. Compared with the present mode of moving the storage device, the data synchronization method of the present invention is more convenient in operation, and can reduce the risk of data loss or damage.
Description
数据同步方法和数据同步系统 技术领域 Data synchronization method and data synchronization system
本发明实施例涉及信息技术领域, 并且更具体地, 涉及数据同步方法和 数据同步系统。 背景技术 Embodiments of the present invention relate to the field of information technology, and more particularly, to a data synchronization method and a data synchronization system. Background technique
为了避免因灾难等因素而造成数据丟失, 容灾系统的建设尤为重要。 在 容灾系统的建设中, 最关键的是将现有生产中心的数据传输到远程的灾备数 据中心。 这种远程数据传输的方法通常釆用基于存储的复制方式。 该基于存 储的数据复制技术通过存储系统中的数据复制软件来实现数据的远程复制 和同步, 即存储系统将本地的存储更新数据复制到灾备端的存储系统中并执 行,来保证数据的一致性。在这种方式下,数据复制软件运行在存储系统内, 因此较容易实现生产端和灾备端操作系统、 数据库和文件的实时复制能力, 不会影响生产端主机系统的性能, 是一种被广泛釆用的方案。 In order to avoid data loss caused by disasters and other factors, the construction of disaster recovery systems is particularly important. In the construction of disaster recovery systems, the most critical is to transfer data from existing production centers to remote disaster recovery data centers. This method of remote data transfer typically uses a storage-based copying approach. The storage-based data replication technology implements remote replication and synchronization of data through the data replication software in the storage system, that is, the storage system copies the local storage update data to the storage system of the disaster recovery end and executes it to ensure data consistency. . In this mode, the data replication software runs in the storage system. Therefore, it is easier to implement the real-time replication capability of the production and disaster recovery operating systems, databases, and files without affecting the performance of the production host system. A widely used program.
基于存储的远程数据复制需要进行首次的数据同步, 就是将原有存储设 备上的数据通过远程链路(通常为 IP链路)传输到远端的存储设备中。 由 于长距离链路租用费用高的限制, IP链路的带宽通常比较低, 其数值一般为 Mbps的数量级, 而原有存储设备上的数据量通常为兆兆字节(terabyte, TB ) 的数量级, 在此链路上传输 TB数量级的数据通常需要耗费数月的时间, 耗 时太长。 一种解决方法是将灾备存储设备搬迁至生产数据中心, 利用本地的 高带宽网络完成首次数据同步, 然后再将灾备存储设备搬迁至远端灾备数据 中心。 然而, 由于存储系统体积庞大, 拆卸、 运输和安装存储设备可能会有 损坏存储设备并且丟失数据的风险。 此外, 在发生灾难或者进行演练时, 灾 备中心的存储设备上保留的是最新的数据, 需要反向同步到生产中心的存储 设备上。 由于此时存储设备已经部署到了数据中心, 搬迁更为复杂, 同时由 于此时用户的最新数据只有一份, 搬迁存储设备的风险更大。 本发明提供了 一种数据同步方法及系统,通过利用可移动存储介质实现生产中心的存储设 备与灾备中心的存储设备上的数据同步, 能够解决现有技术中生产中心的存 储设备与灾备中心的存储设备在进行数据同步时耗时太长或者由于搬迁存 储设备带来的不便和丟失数据的风险。
发明内容 Storage-based remote data replication requires the first data synchronization, which is to transfer the data on the original storage device to the remote storage device through a remote link (usually an IP link). Due to the high cost of long-distance link leases, the bandwidth of IP links is usually low, and the value is usually on the order of Mbps. The amount of data on the original storage devices is usually on the order of terabytes (terabytes). It takes a few months to transfer terabytes of data on this link, which takes too long. One solution is to relocate the disaster recovery storage device to the production data center, use the local high-bandwidth network to complete the first data synchronization, and then relocate the disaster recovery storage device to the remote disaster recovery data center. However, due to the large size of the storage system, disassembling, transporting, and installing storage devices can risk damaging the storage device and losing data. In addition, in the event of a disaster or a drill, the storage device on the disaster recovery center retains the latest data and needs to be reversely synchronized to the storage device in the production center. Since the storage device has been deployed to the data center at this time, the relocation is more complicated. At the same time, since the user has only one latest data, the risk of relocating the storage device is greater. The present invention provides a data synchronization method and system, which can solve the data storage on the storage device of the production center and the storage device of the disaster recovery center by using the removable storage medium, and can solve the storage device and disaster recovery of the production center in the prior art. The central storage device takes too long to synchronize data or the risk of inconvenience and data loss due to relocation of the storage device. Summary of the invention
本发明实施例提供一种数据同步方法和数据同步系统, 能够实现第一存 储设备与位于该第一存储设备的远端且为该第一存储设备的灾备存储的第 二存储设备的数据同步。 The embodiment of the present invention provides a data synchronization method and a data synchronization system, which can implement data synchronization between a first storage device and a second storage device located at the remote end of the first storage device and being used for disaster recovery storage of the first storage device. .
第一方面, 提供了一种数据同步方法, 包括: 第一存储设备生成目标逻 辑单元号 LU 中存储的数据的快照,该目标 LU 中存储的数据利用网络传 输时所需的传输时长超出传输时长门限; 该第一存储设备将该快照中的数据 写入可移动存储介质; 第二存储设备读取并存储该可移动存储介质中的数 据; 其中, 该第二存储设备位于该第一存储设备的远端且该第二存储设备为 该第一存储设备的灾备存储。 In a first aspect, a data synchronization method is provided, including: a first storage device generating a snapshot of data stored in a target logical unit number LU, and a transmission duration required for data stored in the target LU to be transmitted over a network exceeds a transmission duration Threshold; the first storage device writes the data in the snapshot to the removable storage medium; the second storage device reads and stores the data in the removable storage medium; wherein the second storage device is located in the first storage device The remote device and the second storage device are disaster recovery storage of the first storage device.
结合第一方面, 在第一种可能的实现方式中, 该第一存储设备将该快照 中的数据写入可移动存储介质, 包括: 该第一存储设备将该快照中的数据和 该快照中的数据在该第一存储设备中的存储位置信息写入该可移动存储介 质。 With reference to the first aspect, in a first possible implementation manner, the first storage device writes the data in the snapshot to the removable storage medium, including: the first storage device, the data in the snapshot, and the snapshot The storage location information of the data in the first storage device is written to the removable storage medium.
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 该第二存储设备读取并存储该可移动存储介质中的数据, 包括: 该第二存储 设备读取该可移动存储介质中的数据以及该数据的存储位置信息; 该第二存 储设备根据该数据的存储位置信息,将该数据存储至该第二存储设备的本地 存储区域。 In conjunction with the first possible implementation of the first aspect, in a second possible implementation, the second storage device reads and stores data in the removable storage medium, including: the second storage device reads Data in the removable storage medium and storage location information of the data; the second storage device stores the data in a local storage area of the second storage device according to the storage location information of the data.
结合第一方面的第一种或第二种可能的实现方式,在第三种可能的实现 方式中, 该数据的存储位置信息包括: 该数据所属的 LU 的世界通用名称 WWN和该数据在该归属的 LUN中的逻辑块位置 LBA。 In conjunction with the first or second possible implementation of the first aspect, in a third possible implementation, the storage location information of the data includes: a world common name WWN of the LU to which the data belongs, and the data is in the The logical block location LBA in the home LUN.
结合第一方面的第一种或第二种或第三种可能的实现方式,在第四种可 能的实现方式中, 该方法还包括: 若该第一存储设备中存储的数据更新且更 新的数据利用网络传输时所需的传输时长未超出该传输时长门限, 该第一存 储设备通过网络向该第二存储设备传输该更新的数据。 In conjunction with the first or second or third possible implementation of the first aspect, in a fourth possible implementation, the method further includes: if the data stored in the first storage device is updated and updated The transmission duration required for data transmission using the network does not exceed the transmission duration threshold, and the first storage device transmits the updated data to the second storage device through the network.
第二方面, 提供了一种数据同步系统, 包括: 第一存储设备和第二存储 设备, 该第二存储设备位于该第一存储设备的远端且该第二存储设备为该第 一存储设备的灾备存储; 该第一存储设备用于生成目标逻辑单元号 LU 中 存储的数据的快照, 该目标 LU 中存储的数据利用网络传输时所需的传输
时长超出传输时长门限; 该第一存储设备还用于将该快照中的数据写入可移 动存储介质; 第二存储设备用于读取并存储该可移动存储介质中的数据。 In a second aspect, a data synchronization system is provided, including: a first storage device and a second storage device, where the second storage device is located at a remote end of the first storage device and the second storage device is the first storage device The disaster recovery storage; the first storage device is configured to generate a snapshot of data stored in the target logical unit number LU, and the data stored in the target LU is transmitted by using the network. The duration exceeds the transmission duration threshold; the first storage device is further configured to write data in the snapshot to the removable storage medium; the second storage device is configured to read and store data in the removable storage medium.
结合第二方面, 在第一种可能的实现方式中, 该第一存储设备具体用于 将该快照中的数据和该快照中的数据在该第一存储设备中的存储位置信息 写入该可移动存储介质。 With reference to the second aspect, in a first possible implementation manner, the first storage device is specifically configured to write the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the Move the storage media.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 该第二存储设备具体用于: 读取该可移动存储介质中的数据以及该数据的存 储位置信息; 根据该数据的存储位置信息, 将该数据存储至该第二存储设备 的本地存储区域。 With reference to the first possible implementation of the second aspect, in a second possible implementation, the second storage device is specifically configured to: read data in the removable storage medium and storage location information of the data; The data is stored to a local storage area of the second storage device based on the storage location information of the data.
结合第二方面的第一种或第二种可能的实现方式,在第三种可能的实现 方式中, 该数据的存储位置信息包括: 该数据所属的 LU 的世界通用名称 WWN和该数据在该归属的 LUN中的逻辑块位置 LBA。 In conjunction with the first or second possible implementation of the second aspect, in a third possible implementation, the storage location information of the data includes: a world common name WWN of the LU to which the data belongs, and the data is in the The logical block location LBA in the home LUN.
结合第二方面的第一种或第二种或第三种可能的实现方式,在第四种可 能的实现方式中,若该第一存储设备中存储的数据更新且更新的数据利用网 络传输时所需的传输时长未超出该传输时长门限,该第一存储设备还用于通 过网络向该第二存储设备传输该更新的数据。 In conjunction with the first or second or third possible implementation of the second aspect, in a fourth possible implementation, if the data stored in the first storage device is updated and the updated data is transmitted by using the network The required transmission duration does not exceed the transmission duration threshold, and the first storage device is further configured to transmit the updated data to the second storage device over the network.
基于上述技术方案, 本发明实施例提供的数据同步方法, 通过第一存储 设备将数据写入可移动存储介质且第二存储设备读取并存储该移动存储介 质上的数据, 其中, 该第二存储设备位于该第一存储设备的远端且该第二存 储设备为该第一存储设备的灾备存储, 能够实现该第一存储设备和该第二存 储设备的数据同步。 并且与现有的网络传输方式相比, 本发明实施例的数据 同步方法能够缩短数据传输时间, 而与现有的搬迁存储设备的方式相比, 本 发明实施例的数据同步方法操作方便, 并且能够降低数据丟失或损坏的风 险。 附图说明 The data synchronization method provided by the embodiment of the present invention, the data is written to the removable storage medium by the first storage device, and the second storage device reads and stores the data on the removable storage medium, wherein the second The storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented. The data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method, and the data synchronization method of the embodiment of the present invention is convenient to operate compared with the existing method for relocating the storage device, and Reduce the risk of data loss or damage. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面所描述 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 还可以 根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention or the description of the prior art will be briefly described below. Obviously, the drawings described below are only the present invention. For some embodiments, other figures may also be obtained from those of ordinary skill in the art in view of these figures.
图 1是本发明实施例的数据同步方法的示意性流程图。
图 2是本发明实施例的数据同步方法的另一示意性流程图。 FIG. 1 is a schematic flowchart of a data synchronization method according to an embodiment of the present invention. FIG. 2 is another schematic flowchart of a data synchronization method according to an embodiment of the present invention.
图 3是本发明实施例的数据同步系统的示意性流程图。 具体实施方式 FIG. 3 is a schematic flowchart of a data synchronization system according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments.
应理解,本发明实施例的技术方案主要应用于生产中心的存储设备与其 灾备中心的存储设备的首次数据同步,也可以应用于生产中心的存储设备与 灾备中心的存储设备需要同步的数据量较大的其它场景,但本发明实施例不 限于此。 It should be understood that the technical solution of the embodiment of the present invention is mainly applied to the first data synchronization between the storage device of the production center and the storage device of the disaster recovery center, and can also be applied to the data that needs to be synchronized between the storage device of the production center and the storage device of the disaster recovery center. Other scenarios of larger amounts, but embodiments of the invention are not limited thereto.
图 1是本发明实施例的数据同步方法 100的示意性流程图, 该方法 100 可以由数据同步系统执行。该方法 100可以用于将第一存储设备上的数据同 步存储到第二存储设备上, 其中, 该第二存储设备位于该第一存储设备的远 端且该第二存储设备为该第一存储设备的灾备存储。 可选地, 该第一存储设 备可以为生产中心的存储设备, 该生产中心可以包括交换机、 路由器等网络 设备、 服务器和该第一存储设备等设备, 以对外提供服务。 相应地, 该第二 存储设备可以为该生产中心的灾备中心的存储设备,且该灾备中心与该生产 中心距离较远, 但本发明实施例对此不做限定。 可选地, 作为另一实施例, 当该第一存储设备和第二存储设备互为对方的灾备存储设备时, 该方法也可 以用于在该第一存储设备上的数据发生损坏或丟失时,将该第二存储设备上 的数据同步存储到该第一存储设备上, 本发明实施例对此不做限定。 如图 1 所示, 该方法 100包括: 1 is a schematic flow chart of a data synchronization method 100 in accordance with an embodiment of the present invention, which may be performed by a data synchronization system. The method 100 can be used to synchronously store data on the first storage device to the second storage device, where the second storage device is located at a remote end of the first storage device and the second storage device is the first storage device. Disaster recovery storage of the device. Optionally, the first storage device may be a storage device of a production center, and the production center may include a network device such as a switch and a router, a server, and the first storage device to provide external services. Correspondingly, the second storage device may be a storage device of the disaster recovery center of the production center, and the disaster recovery center is far away from the production center, but the embodiment of the present invention does not limit this. Optionally, in another embodiment, when the first storage device and the second storage device are each other's disaster recovery storage devices, the method may also be used to damage or lose data on the first storage device. The data on the second storage device is synchronously stored on the first storage device, which is not limited in this embodiment of the present invention. As shown in FIG. 1, the method 100 includes:
S110, 第一存储设备生成目标逻辑单元号 (Logic Unit Number, LU ) 中存储的数据的快照, 该目标 LU 中存储的数据利用网络传输时所需的传 输时长超出传输时长门限。 S110. The first storage device generates a snapshot of the data stored in the target logical unit number (LU), and the data storage time of the data stored in the target LU exceeds the transmission duration threshold when the network transmission is performed.
该传输时长门限可以由用户根据需求设置, 具体可以为一个数值, 也可 以为一个数值范围或表达式, 本发明实施例不限于此。 The transmission time threshold may be set by the user according to requirements, and may be a value or a numerical range or an expression. The embodiment of the present invention is not limited thereto.
当该第一存储设备进行正常工作时, 该第一存储设备的光纤通道(Fiber Channel, FC )端口的工作模式为目标( Target )模式, 而为了识别可移动存 储介质, 例如, 磁带库, 该第一存储设备的至少一个 FC端口的工作模式可
以处于初始器(Initiator )模式。 此外, 该可移动存储介质可以与该第一存储 设备处于相同的存储区域网 ( Storage Area Network, SAN ) 中, 且该可移动 存储设备的 FC端口与该第一存储设备的该至少一个 FC端口位于该 SAN的 同一个区域(Zoning ) 中, 使得该第一存储设备可以检测并识别该可移动存 储介质。 When the first storage device performs normal operation, the working mode of the Fibre Channel (FC) port of the first storage device is a target mode, and in order to identify a removable storage medium, for example, a tape library, The working mode of the at least one FC port of the first storage device is In the Initiator mode. In addition, the removable storage medium may be in the same storage area network (SAN) as the first storage device, and the FC port of the removable storage device and the at least one FC port of the first storage device Located in the same area (Zoning) of the SAN, the first storage device can detect and identify the removable storage medium.
在该第一存储设备检测到该可移动存储介质之后,或在该第一存储设备 检测到该可移动存储介质之前, 该第一存储设备可以确定至少一个目标 LU , 并生成该至少一个目标 LU 中存储的所有数据在某一时刻的快照。 可选地, 该第一存储设备可以根据用户指令确定该至少一个目标 LU , 但 本发明实施例不限于此。 After the first storage device detects the removable storage medium, or before the first storage device detects the removable storage medium, the first storage device may determine at least one target LU and generate the at least one target LU A snapshot of all the data stored in a moment. Optionally, the first storage device may determine the at least one target LU according to a user instruction, but the embodiment of the present invention is not limited thereto.
S120, 该第一存储设备将该快照中的数据写入可移动存储介质。 S120. The first storage device writes the data in the snapshot to the removable storage medium.
该可移动存储介质相比于该第一存储设备和该第二存储设备而言, 易于 搬迁。 可选地, 该可移动存储介质可以是磁带库, 也可以是移动磁盘, 本发 明实施例对此不做限制。 The removable storage medium is easier to relocate than the first storage device and the second storage device. Optionally, the removable storage medium may be a tape library or a mobile disk, which is not limited in the embodiment of the present invention.
S130, 第二存储设备读取并存储该可移动存储介质中的数据。 S130. The second storage device reads and stores data in the removable storage medium.
当该第一存储设备将该快照中的数据写入该可移动存储介质之后,该可 移动存储介质可以被搬迁至该第二存储设备端。 可选地, 该可移动存储介质 可以被接入到与该第二存储设备相同的 SAN, 并且该可移动存储介质的 FC 端口与该第二存储设备的至少一个工作模式被设置为初始器的 FC端口处于 该 SAN的同一个 Zoning区, 以使得该第二存储设备可以检测并识别该可移 动存储介质。 After the first storage device writes the data in the snapshot to the removable storage medium, the removable storage medium can be relocated to the second storage device end. Optionally, the removable storage medium is accessible to the same SAN as the second storage device, and at least one operating mode of the FC port of the removable storage medium and the second storage device is set to an initiator The FC port is in the same Zoning zone of the SAN such that the second storage device can detect and identify the removable storage medium.
在该第二存储设备检测到该可移动存储介质之后,该第二存储设备可以 读取该可移动存储介质中的数据, 并将读取的该数据存储至该第二存储设备 的本地存储区域, 但本发明实施例不限于此。 After the second storage device detects the removable storage medium, the second storage device can read data in the removable storage medium and store the read data to a local storage area of the second storage device. However, embodiments of the invention are not limited thereto.
因此, 本发明实施例的数据同步方法, 通过第一存储设备将数据写入可 移动存储介质且第二存储设备读取并存储该移动存储介质上的数据。 其中, 该第二存储设备位于该第一存储设备的远端且该第二存储设备为该第一存 储设备的灾备存储, 能够实现该第一存储设备和该第二存储设备的数据同 步。 并且与现有的网络传输方式相比, 本发明实施例的数据同步方法能够缩 短数据传输时间; 而与现有的搬迁存储设备的方式相比, 本发明实施例的数 据同步方法操作方便, 并且能够降低数据丟失或损坏的风险。
可选地, 作为另一实施例, 如图 2所示, S120, 第一存储设备将该快照 中的数据写入可移动存储介质, 包括: Therefore, in the data synchronization method of the embodiment of the present invention, data is written to the removable storage medium by the first storage device and the second storage device reads and stores the data on the removable storage medium. The second storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented. The data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate, and Reduce the risk of data loss or damage. Optionally, as another embodiment, as shown in FIG. 2, S120, the first storage device writes the data in the snapshot to the removable storage medium, including:
S121 ,该第一存储设备将该快照中的数据和该快照中的数据在该第一存 储设备中的存储位置信息写入该可移动存储介质。 S121. The first storage device writes the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the removable storage medium.
该数据的存储位置信息可以用于标记该数据, 以使得该数据被第二存储 设备读取并存储时, 该第二存储设备可以按照该存储位置信息存储该数据, 但本发明实施例不限于此。 The storage location information of the data may be used to mark the data, so that when the data is read and stored by the second storage device, the second storage device may store the data according to the storage location information, but the embodiment of the present invention is not limited thereto. this.
如图 2所示, S130, 该第二存储设备读取并存储该可移动存储介质中的 数据, 包括: As shown in FIG. 2, S130, the second storage device reads and stores data in the removable storage medium, including:
S131 ,该第二存储设备读取该可移动存储介质中的数据以及该数据的存 储位置信息; S131. The second storage device reads data in the removable storage medium and storage location information of the data.
S132, 该第二存储设备根据该数据的存储位置信息, 将该数据存储至该 第二存储设备的本地存储区域。 S132. The second storage device stores the data to a local storage area of the second storage device according to the storage location information of the data.
该第二存储设备可以根据该数据的存储位置信息存储该数据, 以使得该 数据在该第二存储设备上的存储位置与该数据在该第一存储设备上的存储 位置相对应, 但本发明实施例不限于此。 The second storage device may store the data according to the storage location information of the data, such that the storage location of the data on the second storage device corresponds to the storage location of the data on the first storage device, but the present invention The embodiment is not limited to this.
可选地, 该数据的存储位置信息包括: 该数据所属的 LU 的世界通用 名称 WWN和该数据在该归属的 LU 中的逻辑块位置 LBA。 Optionally, the storage location information of the data includes: a world common name WWN of the LU to which the data belongs and a logical block location LBA of the data in the belonging LU.
可选地, 作为另一实施例, 该数据的存储位置信息也可以为能够确定该 数据的存储位置的其它信息, 本发明实施例不限于此。 Optionally, as another embodiment, the storage location information of the data may also be other information that can determine the storage location of the data, and the embodiment of the present invention is not limited thereto.
可选地, 作为另一实施例, 该第一存储设备在将该快照中的数据写入该 可移动存储介质之前, 该第一存储设备也可以对该快照中的数据进行编码, 例如, 循环冗余码校验(Cyclic Redundancy Check, CRC )编码, 并将编码 后的数据写入该可移动存储介质。 相应地, 该第二存储设备在读取该可移动 存储介质中的数据之后, 可以对读取的数据进行解码, 并将解码后的数据存 储至该第二存储设备的本地存储区域, 但本发明实施例不限于此。 Optionally, as another embodiment, before the data in the snapshot is written to the removable storage medium, the first storage device may also encode data in the snapshot, for example, looping. A Cyclic Redundancy Check (CRC) code is encoded and the encoded data is written to the removable storage medium. Correspondingly, after reading the data in the removable storage medium, the second storage device may decode the read data and store the decoded data to a local storage area of the second storage device, but The embodiment of the invention is not limited thereto.
可选地, 作为另一实施例, 当该第一存储设备与该第二存储设备上的数 据首次同步后, 可以以一定周期为间隔将该第一存储设备与该第二存储设备 上的数据进行增量同步, 即将该第一存储设备和该第二存储设备中的一个存 储设备上更新的数据同步到另一个存储设备上。 此时, 如果更新数据的数据 量较少时, 可以釆用网络传输的方式进行增量同步, 相应地, 该方法 100还
包括: Optionally, as another embodiment, after the data on the first storage device and the second storage device are first synchronized, the data on the first storage device and the second storage device may be at intervals of a certain period. Incremental synchronization is performed, that is, the updated data on one of the first storage device and the second storage device is synchronized to another storage device. At this time, if the amount of data of the update data is small, the network synchronization may be used for incremental synchronization, and accordingly, the method 100 further Includes:
S140,若该第一存储设备中存储的数据更新且更新的数据量利用网络传 输时所需的传输时长未超出该传输时长门限, 该第一存储设备通过网络向该 第二存储设备传输该更新的数据。 S140. If the data length of the data stored in the first storage device is updated and the updated data volume is transmitted by the network does not exceed the transmission time threshold, the first storage device transmits the update to the second storage device through the network. The data.
在该 S140之前, 该第一存储设备还可以与该第二存储设备建立数据复 制对应关系。 具体地, 该第一存储设备与该第二存储设备上均可以安装数据 复制软件, 并且设置该数据复制软件使得该第一存储设备和第二存储设备的 其中一个设备为另一个设备的数据复制对端设备。 这样, 该第一存储设备或 该第二存储设备中有数据更新时, 就可以通过网络向对方传输该更新的数 据, 但本发明实施例不限于此。 Before the S140, the first storage device may also establish a data replication correspondence relationship with the second storage device. Specifically, the data replication software may be installed on the first storage device and the second storage device, and the data replication software is configured to make data replication of the first storage device and the second storage device as another device. Peer device. In this way, when there is data update in the first storage device or the second storage device, the updated data can be transmitted to the other party through the network, but the embodiment of the present invention is not limited thereto.
因此, 本发明实施例的数据同步方法, 通过第一存储设备将数据写入可 移动存储介质且第二存储设备读取并存储该移动存储介质上的数据, 其中, 该第二存储设备位于该第一存储设备的远端且该第二存储设备为该第一存 储设备的灾备存储, 能够实现该第一存储设备和该第二存储设备的数据同 步, 并且与现有的网络传输方式相比, 本发明实施例的数据同步方法能够缩 短数据传输时间, 而与现有的搬迁存储设备的方式相比, 本发明实施例的数 据同步方法操作方便, 并且能够降低数据丟失或损坏的风险。 Therefore, in the data synchronization method of the embodiment of the present invention, data is written to the removable storage medium by the first storage device, and the second storage device reads and stores the data on the removable storage medium, where the second storage device is located The remote end of the first storage device and the second storage device are the disaster recovery storage of the first storage device, which can implement data synchronization between the first storage device and the second storage device, and is compatible with the existing network transmission mode. The data synchronization method of the embodiment of the present invention can shorten the data transmission time. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate and can reduce the risk of data loss or damage.
应理解, 上述各过程的序号的大小并不意味着执行顺序的先后, 各过程 的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例的实施过程 构成任何限定。 It should be understood that the size of the sequence numbers of the above processes does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiments of the present invention.
上文中结合图 1和图 2,详细描述了根据本发明实施例的数据同步方法, 下面将结合图 3 , 描述根据本发明实施例的数据同步系统。 The data synchronization method according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 and 2, and a data synchronization system according to an embodiment of the present invention will be described below with reference to FIG.
图 3示出了根据本发明实施例的数据同步系统 200的示意性框图,如图 3所示, 该数据同步系统 200包括: 第一存储设备 210和第二存储设备 220, 该第二存储设备 220位于该第一存储设备 210的远端且该第二存储设备 220 为该第一存储设备 210的灾备存储; FIG. 3 shows a schematic block diagram of a data synchronization system 200 according to an embodiment of the present invention. As shown in FIG. 3, the data synchronization system 200 includes: a first storage device 210 and a second storage device 220, the second storage device 220 is located at the remote end of the first storage device 210 and the second storage device 220 is a disaster recovery storage of the first storage device 210;
该第一存储设备 210用于生成目标逻辑单元号 LUN中存储的数据的快 照, 该目标 LU 中存储的数据利用网络传输时所需的传输时长超出传输时 长门限; The first storage device 210 is configured to generate a snapshot of the data stored in the target logical unit number LUN, and the transmission time required for the data stored in the target LU to use the network transmission exceeds the transmission duration threshold;
该第一存储设备 210还用于将该快照中的数据写入可移动存储介质; 第二存储设备 220用于读取并存储该可移动存储介质中的数据。
因此, 本发明实施例的数据同步系统, 通过第一存储设备将数据写入可 移动存储介质且第二存储设备读取并存储该移动存储介质上的数据。 其中, 该第二存储设备位于该第一存储设备的远端且该第二存储设备为该第一存 储设备的灾备存储, 能够实现该第一存储设备和该第二存储设备的数据同 步。 并且与现有的网络传输方式相比, 本发明实施例的数据同步方法能够缩 短数据传输时间; 而与现有的搬迁存储设备的方式相比, 本发明实施例的数 据同步方法操作方便, 并且能够降低数据丟失或损坏的风险。 The first storage device 210 is further configured to write data in the snapshot to the removable storage medium; the second storage device 220 is configured to read and store data in the removable storage medium. Therefore, in the data synchronization system of the embodiment of the present invention, data is written to the removable storage medium by the first storage device and the second storage device reads and stores the data on the removable storage medium. The second storage device is located at the remote end of the first storage device, and the second storage device is the disaster recovery storage of the first storage device, and data synchronization between the first storage device and the second storage device can be implemented. The data synchronization method of the embodiment of the present invention can shorten the data transmission time compared with the existing network transmission method. Compared with the existing method for relocating the storage device, the data synchronization method of the embodiment of the present invention is convenient to operate, and Reduce the risk of data loss or damage.
可选地, 该第一存储设备 210具体用于将该快照中的数据和该快照中的 数据在该第一存储设备中的存储位置信息写入该可移动存储介质。 Optionally, the first storage device 210 is specifically configured to write the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the removable storage medium.
可选地, 作为另一实施例, 该第二存储设备 220具体用于: Optionally, in another embodiment, the second storage device 220 is specifically configured to:
读取该可移动存储介质中的数据以及该数据的存储位置信息; Reading data in the removable storage medium and storage location information of the data;
根据该数据的存储位置信息,将该数据存储至该第二存储设备的本地存 储区域。 The data is stored to a local storage area of the second storage device based on the storage location information of the data.
可选地, 作为另一实施例, 该数据的存储位置信息包括: 该数据所属的 LU 的世界通用名称 WWN 和该数据在该归属的 LU 中的逻辑块位置 LBA。 Optionally, as another embodiment, the storage location information of the data includes: a world common name WWN of the LU to which the data belongs and a logical block location LBA of the data in the belonging LU.
可选地, 作为另一实施例, 若该第一存储设备 210中存储的数据更新且 更新的数据利用网络传输时所需的传输时长未超出该传输时长门限,该第一 存储设备 210还用于通过网络向该第二存储设备 220传输该更新的数据。 Optionally, in another embodiment, if the data length of the updated data and the updated data stored in the first storage device 210 is not exceeded by the transmission time threshold, the first storage device 210 is further used. The updated data is transmitted to the second storage device 220 over the network.
可选地, 作为另一实施例, 该第一存储设备 210通过网络向该第二存储 设备 220传输该更新的数据之前,该第一存储设备 210和该第二存储设备 220 还用于与对方建立数据复制对应关系。 Optionally, as another embodiment, before the first storage device 210 transmits the updated data to the second storage device 220 through the network, the first storage device 210 and the second storage device 220 are further used to interact with each other. Establish a data replication correspondence.
根据本发明实施例的数据同步系统 200中的第一存储设备可对应于根据 本发明实施例的数据同步方法中的第一存储设备, 该数据同步系统 200中的 第二存储设备可对应于根据本发明实施例的数据同步方法中的第二存储设 备,并且该数据同步系统 200中的各个模块的上述和其它操作和 /或功能分别 为了实现图 1和图 2中的各个方法的相应流程, 为了简洁, 在此不再赘述。 The first storage device in the data synchronization system 200 according to the embodiment of the present invention may correspond to the first storage device in the data synchronization method according to an embodiment of the present invention, and the second storage device in the data synchronization system 200 may correspond to The second storage device in the data synchronization method of the embodiment of the present invention, and the above-mentioned and other operations and/or functions of the respective modules in the data synchronization system 200 are respectively implemented to implement the respective processes of the respective methods in FIG. 1 and FIG. For the sake of brevity, it will not be repeated here.
应理解, 在本发明实施例中, 术语"和 /或"仅仅是一种描述关联对象的关 联关系,表示可以存在三种关系。 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存在 A和 B, 单独存在 B这三种情况。 另外, 本文中字符" /", 一般表 示前后关联对象是一种"或"的关系。
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的 各方法步骤和单元, 能够以电子硬件、 计算机软件或者二者的结合来实现。 为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性 地描述了各实施例的步骤及组成。 这些功能究竟以硬件还是软件方式来执 行, 取决于技术方案的特定应用和设计约束条件。 本领域普通技术人员可以 对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应 认为超出本发明的范围。 It should be understood that in the embodiment of the present invention, the term "and/or" is merely an association relationship describing an associated object, indicating that there may be three relationships. For example, A and / or B, can mean: There are three cases where A exists separately, A and B exist at the same time, and B exists separately. In addition, the character "/" in this article generally means that the contextual object is an "or" relationship. Those of ordinary skill in the art will appreciate that the various method steps and elements described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the steps and components of the various embodiments have been described generally in terms of functionality in the foregoing description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Different methods may be used to implement the described functionality for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述 描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对 应过程, 在此不再赘述。 A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另夕卜, 所显示或讨论的相互之间的 耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或 通信连接, 也可以是电的, 机械的或其它的形式连接。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本发明实施例方案的目的。 The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件 功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方 案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在 一个存储介质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算 机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部
分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, 简称为 " ROM" )、 随机存取存储器( Random Access Memory, 简 称为" RAM" )、 磁碟或者光盘等各种可以存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. Including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods of the various embodiments of the present invention Step by step. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD. A variety of media that can store program code.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可想到 的各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之 内。 因此, 本发明的保护范围应以权利要求的保护范围为准。
The above description is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalents conceivable within the technical scope of the present invention are known to those skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.
Claims
1. 一种数据同步方法, 其特征在于, 包括: A data synchronization method, comprising:
第一存储设备生成目标逻辑单元号 LU 中存储的数据的快照, 所述目 标 LU 中存储的数据利用网络传输时所需的传输时长超出传输时长门限; 所述第一存储设备将所述快照中的数据写入可移动存储介质; 第二存储设备读取并存储所述可移动存储介质中的数据; The first storage device generates a snapshot of the data stored in the target logical unit number LU, and the transmission time required for the data stored in the target LU to use the network transmission exceeds the transmission duration threshold; the first storage device will be in the snapshot Data is written to the removable storage medium; the second storage device reads and stores the data in the removable storage medium;
其中, 所述第二存储设备位于所述第一存储设备的远端且所述第二存储 设备为所述第一存储设备的灾备存储。 The second storage device is located at a remote end of the first storage device, and the second storage device is a disaster recovery storage of the first storage device.
2. 根据权利要求 1 所述的方法, 其特征在于, 所述第一存储设备将所 述快照中的数据写入可移动存储介质, 包括: The method according to claim 1, wherein the first storage device writes the data in the snapshot to the removable storage medium, including:
所述第一存储设备将所述快照中的数据和所述快照中的数据在所述第 一存储设备中的存储位置信息写入所述可移动存储介质。 The first storage device writes the data in the snapshot and the storage location information of the data in the snapshot in the first storage device to the removable storage medium.
3. 根据权利要求 2所述的方法, 其特征在于, 所述第二存储设备读取 并存储所述可移动存储介质中的数据, 包括: 存储位置信息; The method according to claim 2, wherein the reading, by the second storage device, the data in the removable storage medium comprises: storing location information;
所述第二存储设备根据所述数据的存储位置信息,将所述数据存储至所 述第二存储设备的本地存储区域。 The second storage device stores the data to a local storage area of the second storage device according to the storage location information of the data.
4. 根据权利要求 2或 3所述的方法, 其特征在于, 所述数据的存储位 置信息包括: 所述数据所属的 LU 的世界通用名称 WWN和所述数据在所 述归属的 LU 中的逻辑块位置 LBA。 The method according to claim 2 or 3, wherein the storage location information of the data comprises: a world common name WWN of the LU to which the data belongs and a logic of the data in the belonging LU Block location LBA.
5. 根据权利要求 1至 4中任一项所述的方法, 其特征在于, 所述方法 还包括: 所需的传输时长未超出所述传输时长门限, 所述第一存储设备通过网络向所 述第二存储设备传输所述更新的数据。 The method according to any one of claims 1 to 4, wherein the method further comprises: the required transmission duration does not exceed the transmission duration threshold, and the first storage device The second storage device transmits the updated data.
6. 一种数据同步系统, 包括: 第一存储设备和第二存储设备, 所述第 二存储设备位于所述第一存储设备的远端且所述第二存储设备为所述第一 存储设备的灾备存储; A data synchronization system, comprising: a first storage device and a second storage device, wherein the second storage device is located at a remote end of the first storage device and the second storage device is the first storage device Disaster recovery storage;
所述第一存储设备用于生成目标逻辑单元号 LU 中存储的数据的快 照, 所述目标 LU 中存储的数据利用网络传输时所需的传输时长超出传输
时长门限; The first storage device is configured to generate a snapshot of data stored in the target logical unit number LU, and the transmission time required for the data stored in the target LU to be transmitted by using the network exceeds the transmission length Time threshold
所述第一存储设备还用于将所述快照中的数据写入可移动存储介质; 第二存储设备用于读取并存储所述可移动存储介质中的数据。 The first storage device is further configured to write data in the snapshot to a removable storage medium; the second storage device is configured to read and store data in the removable storage medium.
7. 根据权利要求 6所述的系统, 其特征在于, 所述第一存储设备具体 用于将所述快照中的数据和所述快照中的数据在所述第一存储设备中的存 储位置信息写入所述可移动存储介质。 The system according to claim 6, wherein the first storage device is specifically configured to store data in the snapshot and storage location information in the first storage device Write to the removable storage medium.
8. 根据权利要求 7所述的系统, 其特征在于, 所述第二存储设备具体 用于: 根据所述数据的存储位置信息,将所述数据存储至所述第二存储设备的 本地存储区域。 The system according to claim 7, wherein the second storage device is specifically configured to: store the data to a local storage area of the second storage device according to the storage location information of the data .
9. 根据权利要求 7或 8所述的系统, 其特征在于, 所述数据的存储位 置信息包括: 所述数据所属的 LU 的世界通用名称 WWN和所述数据在所 述归属的 LU 中的逻辑块位置 LBA。 The system according to claim 7 or 8, wherein the storage location information of the data comprises: a world common name WWN of the LU to which the data belongs and a logic of the data in the belonging LU Block location LBA.
10. 根据权利要求 6至 9中任一项所述的系统, 其特征在于, 若所述第 长未超出所述传输时长门限, 所述第一存储设备还用于通过网络向所述第二 存储设备传输所述更新的数据。
The system according to any one of claims 6 to 9, wherein, if the first length does not exceed the transmission time threshold, the first storage device is further configured to use the network to the second The storage device transmits the updated data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201380002761.4A CN103843309A (en) | 2013-11-22 | 2013-11-22 | Data synchronizing method and data synchronizing system |
PCT/CN2013/087721 WO2015074260A1 (en) | 2013-11-22 | 2013-11-22 | Data synchronization method and data synchronization system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/087721 WO2015074260A1 (en) | 2013-11-22 | 2013-11-22 | Data synchronization method and data synchronization system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015074260A1 true WO2015074260A1 (en) | 2015-05-28 |
Family
ID=50804814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/087721 WO2015074260A1 (en) | 2013-11-22 | 2013-11-22 | Data synchronization method and data synchronization system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103843309A (en) |
WO (1) | WO2015074260A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103843309A (en) * | 2013-11-22 | 2014-06-04 | 华为技术有限公司 | Data synchronizing method and data synchronizing system |
CN105808374B (en) | 2014-12-31 | 2019-02-05 | 华为技术有限公司 | A kind of snap processing method and relevant device |
CN106529261B (en) * | 2016-10-25 | 2020-07-07 | 公安部第三研究所 | UKey and method for synchronizing offline service data |
CN109614047B (en) * | 2018-12-10 | 2022-03-08 | 浪潮(北京)电子信息产业有限公司 | IO transmission method between hosts, storage system and readable storage medium |
CN113553005B (en) * | 2021-07-06 | 2023-12-22 | 杭州宏杉科技股份有限公司 | Data read-write method, device and equipment for simplifying LUN |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146285A (en) * | 2007-08-30 | 2008-03-19 | Tcl天一移动通信(深圳)有限公司 | A data backup method for mobile terminal |
CN101751393A (en) * | 2008-12-01 | 2010-06-23 | 宏碁股份有限公司 | System and method for synchronizing data |
CN102662991A (en) * | 2012-03-14 | 2012-09-12 | 北京邮电大学 | File-level synchronization method based on mobile storage devices |
US20130061335A1 (en) * | 2011-09-07 | 2013-03-07 | CloudPointe, LLC | Method, Apparatus, Computer Readable Media for a Storage Virtualization Middleware System |
CN103843309A (en) * | 2013-11-22 | 2014-06-04 | 华为技术有限公司 | Data synchronizing method and data synchronizing system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003076592A (en) * | 2001-09-04 | 2003-03-14 | Hitachi Ltd | Data storage system |
JP4419460B2 (en) * | 2003-08-04 | 2010-02-24 | 株式会社日立製作所 | Remote copy system |
CN101635638B (en) * | 2008-07-25 | 2012-10-17 | 中兴通讯股份有限公司 | Disaster tolerance system and disaster tolerance method thereof |
CN101359301A (en) * | 2008-08-19 | 2009-02-04 | 成都市华为赛门铁克科技有限公司 | Auto snapshot method and device |
-
2013
- 2013-11-22 CN CN201380002761.4A patent/CN103843309A/en active Pending
- 2013-11-22 WO PCT/CN2013/087721 patent/WO2015074260A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146285A (en) * | 2007-08-30 | 2008-03-19 | Tcl天一移动通信(深圳)有限公司 | A data backup method for mobile terminal |
CN101751393A (en) * | 2008-12-01 | 2010-06-23 | 宏碁股份有限公司 | System and method for synchronizing data |
US20130061335A1 (en) * | 2011-09-07 | 2013-03-07 | CloudPointe, LLC | Method, Apparatus, Computer Readable Media for a Storage Virtualization Middleware System |
CN102662991A (en) * | 2012-03-14 | 2012-09-12 | 北京邮电大学 | File-level synchronization method based on mobile storage devices |
CN103843309A (en) * | 2013-11-22 | 2014-06-04 | 华为技术有限公司 | Data synchronizing method and data synchronizing system |
Also Published As
Publication number | Publication date |
---|---|
CN103843309A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11734306B2 (en) | Data replication method and storage system | |
JP6344798B2 (en) | Data transmission method, data reception method, and storage device | |
US8521691B1 (en) | Seamless migration between replication technologies | |
US10896199B2 (en) | Apparatus and method for managing storage copy services systems | |
WO2016107220A1 (en) | Remote replication method and apparatus based on duplicated data deletion | |
US9390034B1 (en) | Unified SCSI target management for performing a delayed shutdown of a service daemon in a deduplication appliance | |
US20130007388A1 (en) | Storage system and controlling method of the same | |
JP2005292952A (en) | Storage system, storage device and remote copy method | |
WO2015074260A1 (en) | Data synchronization method and data synchronization system | |
CN108351821A (en) | Data reconstruction method and storage device | |
JP5706808B2 (en) | Improving network efficiency for continuous remote copy | |
US9384151B1 (en) | Unified SCSI target management for managing a crashed service daemon in a deduplication appliance | |
US20200097180A1 (en) | Storage system for remote replication | |
US9378160B1 (en) | Unified SCSI target management for shutting down and de-configuring a service daemon in a deduplication appliance | |
US12105982B1 (en) | Techniques for optimized data resynchronization between replication sites | |
JP4727190B2 (en) | Storage device system | |
CN113094207B (en) | Data backup method and system | |
US9378180B1 (en) | Unified SCSI target management for starting and configuring a service daemon in a deduplication appliance | |
US9916371B1 (en) | Methods computer readable media, and systems for copying data between mirrored systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13897878 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13897878 Country of ref document: EP Kind code of ref document: A1 |