Synchronous and asynchronous replication migration

By receiving synchronous replication and asynchronous replication roles during the storage system switching process, and using the conversion information, the problem of the second storage system taking over the asynchronous replication process is solved, and efficient asynchronous replication of data to the third storage system is achieved, ensuring that after the switch data integrity and resource utilization efficiency.

CN114860155BActive Publication Date: 2024-10-11HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111269090.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-02-04
Filing Date
2021-10-29
Publication Date
2024-10-11
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

During the storage system switching process, it is difficult for the second storage system to efficiently take over the asynchronous replication process, resulting in resource waste and data synchronization problems.

Method used

By receiving the synchronous replication role and the asynchronous replication role of the second storage system at the first storage system, and using the conversion information to identify the data storage object, the conversion of asynchronous replication of data from the first storage system to the third storage system is achieved.

Benefits of technology

This ensures the smooth takeover of the asynchronous replication process and the latest asynchronous replication of data to the third storage system after the storage system is switched, avoiding resource waste and data synchronization problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860155B_ABST
    Figure CN114860155B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the transfer of synchronous replication and asynchronous replication. In some examples, a first storage system receives a transfer of a synchronous replication role and an asynchronous replication role of a second storage system to the first storage system, wherein, as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and as the asynchronous replication role, the second storage system is used to asynchronously replicate a first data storage object to a third storage system. The first storage system uses conversion information at the first storage system to identify a second data storage object that the second storage system is to asynchronously replicate to the third storage system after the transfer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to migration of synchronous replication and asynchronous replication. Background Art

[0002] A storage system (storage) can be used to store data. In some examples, in order to prevent data stored at a first storage system from being lost due to a failure or other problem, the data stored at the first storage system can be copied to a second storage system. If the first storage system becomes inaccessible or unavailable for any reason, the copied data stored at the second storage system can be accessed. Summary of the invention

[0003] According to one aspect of the present disclosure, a non-transitory machine-readable storage medium is provided, comprising instructions, which when executed cause a first storage system to perform the following operations: as part of a switching process from a second storage system to the first storage system, receiving a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system, wherein before the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and as the asynchronous replication role, the second storage system is used to asynchronously replicate a first data storage object to a third storage system different from the first storage system; in response to the transfer, performing the following two operations at the first storage system: synchronously replicating data from the first storage system to the second storage system or another storage system according to the synchronous replication role, and asynchronously replicating data from the first storage system to the asynchronous replication role according to the asynchronous replication role. step replication role, asynchronously replicating data from the first storage system to the third storage system; as part of performing the asynchronous replication, after the transfer, at the first storage system: accessing conversion information for converting between a first identifier of the first data storage object used by the first storage system and a different second identifier of the first data storage object, wherein the conversion information includes a plurality of mapping entries, wherein each mapping entry in the conversion information converts between an identifier of the corresponding data storage object used by the first storage system and an identifier of a corresponding different identifier of the corresponding data storage object used by the third storage system, using the conversion information at the first storage system to identify a second data storage object, the second data storage object being subject to a suspended asynchronous replication at the second storage system before the switching process, and based on the identification, asynchronously replicating the second data storage object from the first storage system to the third storage system.

[0004] According to another aspect of the present disclosure, a first storage system is provided, comprising: a processor; and a non-transitory storage medium comprising instructions, wherein the instructions are executable on the processor to perform the following operations: when the second storage system has a leading role and the first storage system has a partner role for the second storage system, receiving a synchronous replication of a first data storage object from the second storage system; and as part of a switching process from the second storage system to the first storage system, receiving a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system, wherein before the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and as the asynchronous replication role, the second storage system is used to asynchronously replicate data to a third storage system different from the first storage system; in response to the transfer, performing the following two operations at the first storage system: according to the synchronous replication role, Synchronously copy data from the first storage system to the second storage system or another storage system, and asynchronously copy data from the first storage system to the third storage system according to the asynchronous replication role; as part of performing the asynchronous replication, after the transfer, at the first storage system: use conversion information to identify a second data storage object, which is subordinate to the suspended asynchronous replication at the second storage system before the switching process, wherein the conversion information converts between a first identifier of the second data storage object used by the first storage system and a different second identifier of the second data storage object used by the third storage system, the conversion information includes multiple mapping entries, wherein each mapping entry in the conversion information converts between an identifier of the corresponding data storage object used by the first storage system and an identifier of the corresponding different identifiers of the corresponding data storage object used by the third storage system, and based on the identification, asynchronously copy the second data storage object from the first storage system to the third storage system.

[0005] According to another aspect of the present disclosure, a method for utilizing a first storage system is provided, comprising: as part of a switching process from a second storage system to the first storage system, receiving at the first storage system a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system, wherein before the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and as the asynchronous replication role, the second storage system is used to asynchronously replicate a first data storage object to a third storage system different from the first storage system; in response to the transfer, performing the following two operations at the first storage system: synchronously replicating data from the first storage system to the second storage system or another storage system according to the synchronous replication role, and replicating data from the first storage system to the second storage system or another storage system according to the asynchronous replication role. system asynchronously replicates to the third storage system; as part of performing the asynchronous replication, after the transfer, at the first storage system: access conversion information for converting between a first identifier of a corresponding data storage object used by the first storage system and a corresponding different second identifier of the corresponding data storage object used by the third storage system, the conversion information comprising a plurality of mapping entries, wherein each mapping entry in the conversion information converts between a certain identifier of the identifiers of the corresponding data storage object used by the first storage system and a certain identifier of the corresponding different second identifiers of the corresponding data storage object used by the third storage system, use the conversion information at the first storage system to identify a second data storage object, the second data storage object being subject to a suspended asynchronous replication at the second storage system before the switching process, and based on the identification, asynchronously replicate the second data storage object from the first storage system to the third storage system. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Some embodiments of the disclosure are described with respect to the following figures.

[0007] Figure 1 is a block diagram of an arrangement including storage systems according to some examples with which synchronous and asynchronous replication of data is performed.

[0008] Figure 2 is a flow chart of a data replication process according to some examples.

[0009] Figure 3 is a block diagram of a storage medium having machine-readable instructions stored thereon, according to some examples.

[0010] Figure 4 is a block diagram of a storage system according to some examples.

[0011] Figure 5 is a flow diagram of a process according to some examples.

[0012] In all drawings, the same reference numerals refer to similar, but not necessarily identical, elements. The drawings are not necessarily to scale, and the dimensions of some parts may be exaggerated to more clearly illustrate the examples shown. In addition, the drawings provide examples and / or implementations consistent with the description; however, the description is not limited to the examples and / or implementations provided in the drawings. DETAILED DESCRIPTION

[0013] In the present disclosure, unless the context clearly indicates otherwise, the use of the terms "a / an" or "the" is intended to include the plural forms as well. Similarly, when used in the present disclosure, the terms "includes / including / comprises / comprising", "have / having" specify the presence of stated elements, but do not exclude the presence or addition of other elements.

[0014] Examples of storage systems include storage arrays, storage devices, etc. A storage system may include one or more storage devices. Examples of storage devices include disk-based storage devices, solid-state drives, and / or other types of storage devices capable of persistently storing data. A storage device may store data persistently if the data stored in the storage device is retained (i.e., not lost) even when the storage device is powered off.

[0015] A storage system may store data in a data volume. A "data volume" refers to a logical collection of data. Logical data blocks may be written to a data volume in response to a write request sent over a network from a requesting device such as a server computer, a desktop computer, a notebook computer, a tablet computer, a smart phone, or any other type of electronic device.

[0016] Data replication is a technology that replicates (copies) data stored at a source storage system to a destination storage system (or multiple destination storage systems). Data replication can include synchronous replication or asynchronous replication. With synchronous replication, the data at the source storage system is synchronized with the data at the destination storage system. For example, when a write operation writes given data to a source storage system (e.g., writes to a data volume), the given data is copied to the destination storage system. For synchronous replication, the write operation is considered to have been successfully completed only when the given data is written to both the source storage system and the destination storage system. When synchronous replication is active, if a write operation successfully writes the given data to the source storage system, but fails to successfully write a copy of the given data to the destination storage system, the write operation is not considered to have been successfully completed.

[0017] As another example, a data snapshot taken at a source storage system may be synchronously replicated to a second storage system. A "snapshot of data" or "data snapshot" may refer to a point-in-time representation of data (e.g., a data volume) at a particular point in time. Thus, for a given data volume, a first data snapshot of the given data volume is taken at a first point in time, a second data snapshot of the given volume is taken at a second point in time, and so on. The first data snapshot may include all of the data in the given data volume, while the second data snapshot may include data that has been modified relative to the first data snapshot (i.e., the second data snapshot stores the modified data, but does not store any data of the first data snapshot that has not been modified since the first data snapshot was taken). More generally, any subsequent data snapshot after a first data snapshot contains only incremental data relative to the data snapshot immediately preceding it, where "incremental data" refers to data that is different between consecutive data snapshots. If no intermediate data snapshots are taken between a previous data snapshot and a subsequent data snapshot, then the previous data snapshot is immediately before the subsequent data snapshot.

[0018] The data snapshot is an example of backup data generated for a given data set (such as a data volume). In other examples, other data backups may be used for data volumes or other data sets.

[0019] Asynchronous replication means that replication from a source storage system to a destination storage system can be performed asynchronously, that is, after data is modified or new data is created at the source storage system, the modified data or new data at the first storage system can be copied to the destination storage system at a later point in time. Asynchronous replication can be performed at a specified time (e.g., periodically or intermittently) or in response to other events. As an example, in response to a time event or other event, a data snapshot created at the source storage system can be asynchronously replicated to the destination storage system.

[0020] In some cases, the source storage system can perform synchronous data replication and asynchronous data replication for a data volume set or other data set. In the following discussion, reference will be made to data replication performed for a data volume. More generally, data replication can be applied to any data set.

[0021] The first storage system can synchronously replicate data of a data volume set (including a single data volume or multiple data volumes) to a second storage system. In addition, the first storage system can asynchronously replicate data of the data volume set to a third storage system different from the second storage system. For example, the first storage system can synchronously replicate a data snapshot (taken from a data volume in the data volume set) to the second storage system, and asynchronously replicate the same data snapshot to a third storage system.

[0022] More generally, the first storage system may synchronously replicate the data storage object to the second storage system, and the first storage system may asynchronously replicate the data storage object to the third storage system. A "data storage object" may refer to a data volume or a data snapshot or any other data unit.

[0023] In the above example of synchronous replication from a first storage system to a second storage system, and asynchronous replication from the first storage system to a third storage system, the first storage system may be referred to as a "leader" storage system or a "primary" storage system, and the second storage system may be referred to as a "partner" storage system or a "secondary" storage system. The partner storage system or the secondary storage system is the target of data of a set of data storage objects that are synchronously replicated from the leader storage system or the primary storage system.

[0024] For asynchronous replication, the first storage system may be referred to as an "upstream" storage system, and the third storage system may be referred to as a "downstream" storage system. The upstream storage system asynchronously replicates data of a data storage object set to a downstream storage system.

[0025] The first storage system in the above example has both a synchronous replication role and an asynchronous replication role.

[0026] In some cases, a switching process may be performed from a first storage system to a second storage system, wherein the switching process causes the second storage system to become the leading storage system for a set of data storage objects. The switching process may be performed for various reasons. For example, maintenance may be performed on the first storage system, wherein the maintenance may include any one or some combination of the following: upgrading machine-readable instructions (e.g., operating system, firmware, etc.) of the first storage system, upgrading or replacing hardware components of the first storage system, and the like. In other examples, an error or other failure may occur in the first storage system, rendering the first storage system inaccessible, unavailable, or unreliable, which may trigger the switching process.

[0027] In some examples, the switching process may cause the first storage system to transition from a leader storage system to a partner storage system, such that the leader and partner roles of the first storage system and the second storage system are swapped. In other examples, the switching process may cause the second storage system to become the leader storage system, and another storage system (different from the first storage system) to become the partner storage system.

[0028] After the switch is performed, the second storage system also becomes an upstream storage system that performs asynchronous replication to the third storage system (downstream storage system). Before the switch, the second storage system may not be aware that asynchronous replication is occurring from the first storage system to the third storage system. After the switch is completed, the second storage system takes over the role of the upstream storage system and asynchronously replicates the data storage objects to the third storage system. The challenge of the second storage system taking over the asynchronous replication role of the first storage system is that the second storage system may not know which data storage objects have been replicated to the third storage system, and therefore, the second storage system may not be able to efficiently take over the asynchronous replication process. For example, if the second storage system does not know which data snapshots have been asynchronously replicated to the third storage system, the second storage system may attempt to asynchronously replicate all data snapshots of the data volume set to the third storage system, which may waste system resources.

[0029] In addition, the first storage system and the second storage system may use different identifiers for the data storage object synchronously copied from the first storage system to the second storage system. For the data storage object synchronously copied from the first storage system to the second storage system before the switching process, the first storage system may use the first identifier of the data storage object, while the second storage system may use a different second identifier of the data storage object. Examples of the identifier of the data storage object may include any one of the following or some combination thereof: a unique identifier (UID), a name, an address, etc.

[0030] In an asynchronous replication session between the first storage system and the third storage system, the third storage system may use the same identifier of the data storage object used by the first storage system. Therefore, due to the different identifiers of the same data storage object used between the first storage system and the second storage system, the second storage system may not be able to successfully interact with the third storage system to perform the asynchronous replication of the data storage object.

[0031] According to some embodiments of the present disclosure, when switching replication from a first storage system to a second storage system, both the synchronous replication role and the asynchronous replication role of the first storage system are transferred to the second storage system, and conversion information is provided to identify the data storage object to be asynchronously replicated from the second storage system to the third storage system after the transfer. In some examples, the simultaneous transfer of the synchronous replication role and the asynchronous replication role enables the asynchronous replication to be maintained even when a failure or error occurs in the first storage system, so that the latest data can be asynchronously replicated to the third storage system.

[0032] Figure 1 is a block diagram of an example arrangement including a first storage system 102-1, a second storage system 102-2, and a third storage system 102-3. Figure 1 Only three storage systems are shown in FIG. 1 , but in other examples, there may be more than three storage systems. Storage systems 102-1 to 102-3 can communicate with each other via a network 103, which may be a storage area network (SAN), a local area network (LAN), a wide area network (WAN), a public network (e.g., the Internet), etc.

[0033] Initially, the first storage system 102-1 is the leader storage system and the second storage system 102-2 is the partner storage system, wherein the first storage system 102-1 synchronously replicates data of a set of data volumes 104 (a single data volume or multiple data volumes) to the second storage system 102-2. Similarly, initially, the first storage system 102-1 is the upstream storage system and the third storage system 102-3 is the downstream storage system, wherein the first storage system 102-1 asynchronously replicates data of a set of data volumes 104 to the third storage system 102-3.

[0034] In some examples, the switching control engine 114 may perform a switching process from the first storage system 102-1 to the second storage system 102-2. The switching control engine 114 may interact with the storage systems 102-1 and 102-2 via the network 103. An "engine" may refer to a hardware processing circuit, which may include any one or some combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, a digital signal processor, or other hardware processing circuits. Alternatively, an "engine" may refer to a combination of a hardware processing circuit and machine-readable instructions (software and / or firmware) that may be executed on the hardware processing circuit.

[0035] Although the switch control engine 114 is shown as being separate from the storage systems 102-1 through 102-3, in other examples, the switch control engine may be part of any one or some combination of the storage systems 102-1 through 102-3. A user, a program, or a machine may request the switch process.

[0036] According to some embodiments of the present disclosure, when a switching process is performed from the first storage system 102-1 to the second storage system 102-2 so that the second storage system becomes the leading storage system, both the synchronous replication role and the asynchronous replication role of the first storage system 102-1 are transferred to the second storage system 102-2. After the switching, the second storage system 102-2 as the leading storage system performs synchronous replication and asynchronous replication on a set of data volumes 104', which is a copy (a complete copy or a partial copy) of the set of data volumes 104 at the first storage system 102-1.

[0037] The set of data volumes 104' can be synchronously replicated from the second storage system 102-2 to a partner storage system, which can be the first storage system 102-1 or another storage system. After the switch, the second storage system 102-2 becomes the upstream storage system for asynchronously replicating the data of the set of data volumes 104' to the third storage system 102-3 as the downstream storage system.

[0038] For example, before switching, the first storage system 102-1 synchronously replicates the data snapshot 116 to the second storage system 102-2, and the first storage system 102-1 asynchronously replicates the data snapshot 116 to the third storage system 102-3. The data snapshot 116 is obtained by taking (multiple) data volumes of the set of data volumes 104 at corresponding time points.

[0039] After the switch, the second storage system 102-2 synchronously replicates the data snapshot 116' to the partner storage system (e.g., 102-1), and the second storage system 102-2 asynchronously replicates the data snapshot 116' to the third storage system 102-3. Some of the data snapshots 116' may be copies of corresponding data snapshots 116 from the first storage system 102-1 (copied during synchronous replication before the switch), while other data snapshots in the data snapshots 116' are obtained by the second storage system 102-2 taking (multiple) data volumes of the set of data volumes 104' at corresponding points in time.

[0040] The first storage system 102-1 includes a storage controller 106-1, the second storage system 102-2 includes a storage controller 106-2, and the third storage system 102-3 includes a storage controller 106-3. The storage controllers manage access (reading or writing) to data stored in a collection of storage devices of the corresponding storage system. A "collection" of storage devices may refer to a single storage device or multiple storage devices. A collection of data volumes 104 and corresponding data snapshots 116 are stored on a collection of storage devices 108-1 of the first storage system 102-1. The collection of storage devices 108-1 may also store other types of data storage objects.

[0041] A "controller" may refer to a hardware processing circuit, which may include any one or some combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, a digital signal processor, or other hardware processing circuits. Alternatively, a "controller" may refer to a combination of a hardware processing circuit and machine-readable instructions (software and / or firmware) that may be executed on the hardware processing circuit.

[0042] The storage controller 106-1 may include replication management logic 110-1 and translation layer 112-1. The replication management logic 110-1 and translation layer 112-1 may be implemented using a portion of the hardware processing circuitry of the storage controller 106-1, or may be implemented as machine-readable instructions executed by the storage controller 106-1. The replication management logic 110-1 manages synchronous and asynchronous replication of data of the set of data volumes 104.

[0043] As discussed further below, the translation layer 112 - 1 manages translation of identifiers of data storage objects (eg, data volumes, data snapshots, etc.) stored by the first storage system 102 - 1 .

[0044] The first storage system 102-1 also includes a memory 118-1. The memory may include one memory device or multiple memory devices. The memory device may be implemented with any one or some combination of the following: a volatile memory device such as a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, etc. Alternatively or additionally, the memory 118-1 may include a non-volatile memory device, such as a flash memory device or other types of non-volatile memory devices.

[0045] The memory 118 - 1 may store translation information 120 - 1 used by the translation layer 112 - 1 to translate between identifiers of data storage objects.

[0046] In some examples, the conversion information 120-1 may include mapping information that maps a local object identifier 122-1 (OBJ ID) of a data storage object used by the first storage system 102-1 to a corresponding replicated object identifier 124-1 (REPL OBJ ID).

[0047] Table 1 below gives an example of conversion information 120 - 1 .

[0048] Table 1

[0049] Volume ID 1 Copy Volume ID A Snapshot ID 2 Copy snapshot ID B Snapshot ID 3 Copy snapshot ID C · · Volume ID 25 Replication Volume IDP Snapshot ID 45 Copy snapshot IDT

[0050] Table 1 above maps various local object identifiers of data storage objects (including volumes and snapshots) to corresponding replication object identifiers. Although the example of Table 1 lists identifiers of data volumes and data snapshots, it should be noted that there may be identifiers of other types of data storage objects, such as branches, etc.

[0051] For example, a local object identifier (e.g., volume ID 1) of a given data volume at the first storage system 102-1 may be mapped to a replication object identifier (e.g., replication volume ID A) of the given data volume by the conversion information 120-1. As another example, a local object identifier (e.g., snapshot ID 45) of a given data snapshot at the first storage system 102-1 may be mapped to a replication object identifier (e.g., replication volume ID T) of the given data snapshot by the conversion information 120-1.

[0052] More generally, the translation information 120 - 1 includes a plurality of mapping entries, wherein each mapping entry of the translation information 120 - 1 maps a local object identifier of a corresponding data storage object to a replicated object identifier of the corresponding data storage object.

[0053] In some examples, the replicated object identifier refers to an intermediate object identifier that is common to corresponding data storage objects across multiple storage systems. Any given storage system can use the replacement object identifier to obtain the corresponding local object identifier of the corresponding data storage object used by the given storage system using the corresponding conversion information at the given storage system. For example, during synchronous replication of a particular data storage object, the first storage system 102-1 (using the conversion information 120-1) converts the local object identifier of the particular data storage object used at the first storage system 102-1 into a replicated object identifier, and the first storage system 102-1 provides the replicated object identifier of the particular data storage object to the second storage system 102-2. The translation layer 112-2 of the second storage system 102-2 converts the replicated object identifier of the particular data storage object into a local object identifier of the particular data storage object used by the second storage system 102-2. When the second storage system 102-2 receives the new data storage object and metadata of the new data storage object, the translation layer 112-2 may add a mapping entry to the translation information 120-2 stored in the memory 118-2 of the second storage system 102-2, which maps between the copied object identifier of the new data storage object and the local object identifier of the new data storage object used by the second storage system 102-2.

[0054] Generally speaking, between two storage systems, the conversion of data storage object identifiers is performed in two steps. First, the initiator storage system that initiates data replication (whether synchronous replication or asynchronous replication) uses the conversion layer of the initiator storage system to convert the local object identifier of the data storage object used at the initiator storage system into the corresponding replication object identifier. At the target storage system that is the target of data replication, the conversion layer at the target storage system is used to convert the replication object identifier received from the initiator storage system into the local object identifier of the data storage object used at the target storage system.

[0055] The storage controller 106-2 of the second storage system 102-2 similarly includes replication management logic 110-2 and translation layer 112-2. The second storage system 102-2 includes a set of storage devices 108-2 to store a set of data volumes 104' and data snapshots 116' (and / or other data storage objects).

[0056] Similarly, the storage controller 106-3 of the third storage system 102-3 includes a replication management logic 110-3 and a translation layer 112-3. The third storage system 102-3 also includes a memory 118-3 storing translation information 120-3. The third storage system 102-3 includes a collection of storage devices 108-3 to store data volumes and data snapshots (and / or other data storage objects) (not shown).

[0057] According to some embodiments of the present disclosure, after switching from the first storage system 102-1 to the second storage system 102-2, the second storage system 102-2 (as the newly designated upstream storage system due to the switch from the first storage system 102-1) uses the conversion information 120-2 to identify the data storage objects already existing at the third storage system 102-3, including the data snapshot 116. These identified data storage objects include the data storage objects asynchronously copied from the first storage system 102-1 to the third storage system 102-3.

[0058] Figure 2 is a flow diagram of a process involving the first storage system 102 - 1 , the second storage system 102 - 2 , and the third storage system 102 - 3 , according to some examples.

[0059] The first storage system 102-1 is initially a leading storage system that synchronously replicates data storage objects to the second storage system 102-2, and the first storage system 102-1 is initially an upstream storage system that asynchronously replicates data storage objects to the third storage system 102-3. In the following discussion, it is assumed that the synchronously replicated and asynchronously replicated data storage objects include data snapshots. In other examples, other types of data storage objects can be replicated.

[0060] The first storage system 102-1 synchronously copies (at 202) the data snapshot S1 of the data volume to the second storage system 102-2. Figure 2 In the example of FIG. 1 , it is assumed that the data snapshot S1 will not be asynchronously replicated to the third storage system 102-3. The metadata for the data snapshot S1 sent by the first storage system 102-1 to the second storage system 102-2 may include a replication object identifier of the data snapshot S1, wherein the replication object identifier is generated by the conversion layer 112-1 based on the conversion information 120-1 ( Figure 1 ). The metadata may also include information indicating that the data snapshot S1 will not be asynchronously replicated and other information. When receiving the data snapshot S1 from the first storage system 102-2, the translation layer 112-2 of the second storage system 102-2 may generate a local object identifier for the data snapshot S1 and may add a mapping entry that maps the local object identifier for the data snapshot S1 to the replicated object identifier for the data snapshot S1.

[0061] At a later time after the first storage system 102-1 takes the data snapshot S2 of the data volume, the first storage system 102-1 synchronously replicates (at 204) the data snapshot S2 to the second storage system 102-2. The first storage system 102-1 may also send metadata of the data snapshot S2 to the second storage system 102-2. Assuming that the data snapshot S2 will be asynchronously replicated to the third storage system 102-3, the metadata of the data snapshot S2 may include a replication object identifier of the data snapshot S2, information identifying a downstream storage system (which may be the third storage system 102-3) for the asynchronous replication of the data snapshot S2, and other information.

[0062] In response to an event (a timed event or another event), the first storage system 102 - 1 asynchronously copies (at 206 ) the data snapshot S2 to the third storage system 102 - 3 .

[0063] At a later time after the first storage system 102-1 takes the data snapshot S3 of the data volume, the first storage system 102-1 synchronously replicates (at 208) the data snapshot S3 to the second storage system 102-2. The metadata of the data snapshot S3 sent by the first storage system 102-1 to the second storage system 102-2 may include a replication object identifier of the data snapshot S3, information identifying a downstream storage system (which may be the third storage system 102-3) for asynchronous replication of the data snapshot S3, and other information.

[0064] After synchronous replication (at 204) and asynchronous replication (at 206) of the data snapshot S2, and after synchronous replication of the data snapshot S3 to the second storage system 102-2, but before asynchronous replication of the data snapshot S3 to the third storage system 102-3, a switch from the first storage system 102-1 to the second storage system 102-2 is performed (at 210).

[0065] When the switch occurs (at 210), the asynchronous replication of the data snapshot S3 is suspended. After the switch, the first storage system 102-1 cannot perform the suspended asynchronous replication of the data snapshot S3. After the switch, the second storage system 102-2 takes over as the leader storage system for synchronous replication and the upstream storage system for asynchronous replication.

[0066] The target of the synchronous replication of the second storage system 102-2 may be the first storage system 102-1 or another storage system. The target of the asynchronous replication of the second storage system 102-2 may be the third storage system 102-3 (as indicated by the metadata sent from the first storage system 102-1 to the second storage system 102-2 together with the data snapshots S2 and S3).

[0067] After the switch (at 210), the second storage system 102-2 stores data snapshots S1, S2, and S3, while the third storage system 102-3 stores data snapshot S2.

[0068] The second storage system 102-2 determines (at 212) a data snapshot (to be asynchronously replicated) that is already stored in the third storage system 102-3. The data snapshot to be asynchronously replicated is referred to as an "asynchronously replicated" data snapshot. Figure 2 In the example, data snapshots S2 and S3 are shown. Note that data snapshot S1 is not an asynchronously replicated data snapshot because it is not asynchronously replicated.

[0069] In some examples, to make the determination (at 212), second storage system 102-2 may generate information identifying an asynchronously replicated data snapshot stored at second storage system 102-2. Figure 2 In the example of , such asynchronously replicated data snapshots include data snapshots S2 and S3, which are synchronously replicated from the first storage system 102-1 to the second storage system 102-2 before switching (at 210). The information may be in the form of a list of identifiers of the asynchronously replicated data snapshots at the second storage system 102-2.

[0070] The second storage system 102-2 may identify the asynchronously replicated data snapshot at the second storage system 102-2 (eg, Figure 2 The information of S2 and S3 in the asynchronous replication data snapshot is sent to the third storage system 102-3, where the information can be sent as part of a request (at 214), and the third storage system 102-3 responds to the request with an indication of whether any asynchronously replicated data snapshots are stored at the third storage system 102-3.

[0071] Note that the data snapshot at the storage system 102-2 has a local object identifier that is different from the local object identifier used by the third storage system 102-3 because, for example, the third storage system 102-3 uses the local object identifier of the data snapshot used by the first storage system 102-1. Therefore, before sending the information identifying the asynchronously replicated data snapshot, the second storage system 102-2 (more specifically, the translation layer 112-2) converts the local object identifier of the asynchronously replicated data snapshot at the second storage system 102-2 into a replicated object identifier using the conversion information 120-2. The replicated object identifiers of the asynchronously replicated data snapshots (e.g., S2 and S3) are sent in the request (at 214) to the third storage system 102-3. The third storage system 102-3 (more specifically, the translation layer 112-3) attempts to convert from the replicated identifier of the asynchronously replicated data snapshot into a corresponding local object identifier of the asynchronously replicated data snapshot using the conversion information 120-3.

[0072] Note that the conversion information 120-3 stored in the memory 118-3 of the third storage system 102-3 includes a mapping entry for data snapshot S2, but not S3. Thus, the third storage system 102-3 determines that it has data snapshot S2, but not data snapshot S3.

[0073] The third storage system 102-3 sends a response (at 216) to the second storage system 102-2 by indicating which asynchronously replicated data snapshots (if any) identified by the request (at 214) are stored in the third storage system 102-3. Figure 2 In the example of , the response (at 216) may include an indication that the data snapshot S2 is stored at the third storage system 102-3. For example, the response (at 216) may include a replication object identifier of the data snapshot S2.

[0074] Based on the response (at 216) from the first storage system 102-3, the second storage system 102-2 may identify (at 218) a common asynchronously replicated data snapshot residing at both the second storage system 102-2 and the third storage system 102-3. Figure 2 In the example, the public asynchronously replicated data snapshot is S2.

[0075] The second storage system 102-2 may resume (at 220) the asynchronous replication of the data snapshots starting from the data snapshots taken after the common data snapshot. Figure 3 In the example of , the next data snapshot that will be asynchronously copied by the second storage system 102-2 to the third storage system 102-3 is S3. Note that the second storage system 102-2 can also take data snapshots, which can also be asynchronously copied to the third storage system 102-3.

[0076] Figure 3 is a block diagram of a non-transitory machine-readable or computer-readable storage medium 300 having stored thereon machine-readable instructions that, when executed, cause a storage system (e.g., Figure 1 102-2) performs various tasks.

[0077] The machine-readable instructions include replication role transfer instructions 302 to receive a second storage system (e.g., Figure 1 The second storage system is used to synchronously replicate data to the first storage system as a synchronous replication role, and asynchronously replicate data to the third storage system as an asynchronous replication role (e.g., Figure 1 102-3).

[0078] The machine-readable instructions include conversion information access instructions 304 to access conversion information for converting between a first identifier of a first data storage object used by a first storage system and a different second identifier (eg, a replacement object identifier or an intermediate identifier) ​​of the first data storage object.

[0079] The machine-readable instructions include asynchronously replicated object identification instructions 306 to use the conversion information at the first storage system to identify a second data storage object that the second storage system is to asynchronously replicate to the third storage system after the transfer.

[0080] In some examples, the second data storage object is a copy of the first data storage object that was synchronously copied from the second storage system to the first storage system prior to the transfer.

[0081] In a further example, the second data storage object is generated at the first storage system (eg, a data snapshot of the data volume taken at the first storage system after the transfer).

[0082] In some examples, the transfer of the synchronous replication role and the asynchronous replication role of the second storage system to the first storage system is part of a switch process that designates the first storage system as a leader storage system for performing synchronous replication and an upstream storage system for performing asynchronous replication. In some examples, the switch process designates the second storage system as a partner storage system for synchronous replication from the first storage system after the transfer.

[0083] In some examples, the machine-readable instructions, when executed, cause the first storage system to use the conversion information to determine that a third data storage object had been previously copied from the second storage system to the third storage system, and to determine to resume asynchronous replication of the data storage object from the first storage system to the third storage system, starting from a data storage object created after the third data storage object that had been previously copied to the third storage system.

[0084] In some examples, the machine-readable instructions, when executed, cause the first storage system to determine not to asynchronously copy the third data storage object to the third storage system based on determining that the third data storage object had been previously copied to the third storage system.

[0085] In some examples, the machine-readable instructions, when executed, cause the first storage system to send information identifying a data storage object at the first storage system to a third storage system, and receive from the third storage system an indication of whether any data storage object identified by the information is stored at the third storage system. Determining that the third data storage object has been previously copied to the third storage system is based on the indication.

[0086] In some examples, the machine-readable instructions, when executed, cause the first storage system, as part of asynchronously copying the second data storage object from the first storage system to a third storage system, to convert, at the first storage system, an identifier of the second data storage object used at the first storage system into an intermediate identifier using the conversion information, and to send the intermediate identifier to the third storage system. The intermediate identifier may be used at the third storage system to convert the intermediate identifier into an identifier of the second data storage object used at the third storage system, wherein the identifier of the second data storage object used at the first storage system is different from the identifier of the second data storage object used at the third storage system.

[0087] Figure 4 A first storage system 400 (eg, Figure 1 The hardware processor may include a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, or another hardware processing circuit.

[0088] The first storage system 400 includes a storage medium 404 that stores machine-readable instructions executable on the hardware processor 402 to perform various tasks. The machine-readable instructions executable on the hardware processor may refer to instructions executable on a single hardware processor or instructions executable on multiple hardware processors.

[0089] The machine-readable instructions include synchronous replication receiving instructions 406 for when a second storage system (e.g., Figure 1 When 102-1) in has a leading role and the first storage system 400 has a partner role, a synchronous copy of the first data storage object is received from the second storage system.

[0090] The machine-readable instructions include role switch instructions 408 , asynchronous replicated data storage object determination instructions 410 , and asynchronous replicated resume instructions 412 that are executed on the hardware processor 402 in response to the switching process.

[0091] The role switch instruction 408 is executable to switch the first storage system 400 from the partner role to the leader role.

[0092] The asynchronously replicated data storage object determination instructions 410 are executable to use the transformation information 414 to determine that the second data storage object has been previously asynchronously replicated from the second storage system having the leader role to the third storage system (eg, Figure 1 102-3).

[0093] Asynchronous replication resume instructions 412 are executable to, in response to the determination, resume asynchronous replication of data storage objects including the first data storage object to the third storage system.

[0094] In some examples, before the switching process, the first storage system 400 is used to perform asynchronous replication of data storage objects to the third storage system.

[0095] In some examples, the switching process is initiated for maintenance (eg, upgrading machine-readable instructions or upgrading / replacing hardware components) or repair of the second storage system (eg, resolving a failure or error).

[0096] In some examples, the first storage system 400 is used to receive metadata of a first data storage object in association with synchronous replication, wherein the metadata includes information indicating that asynchronous replication is to be performed on the first data storage object.

[0097] Figure 5 5 is a flow diagram of a process 500 according to some examples. The process 500 includes specifying (at 502) a first storage system (e.g., Figure 1 102-1) as the leading storage system for synchronous replication of the data volume set, and as the upstream storage system for asynchronous replication of the data volume set. The designation may be performed by the storage controller of the first storage system, or may be performed by other computers.

[0098] Process 500 includes executing (at 504) a switch process to designate a second storage system (eg, Figure 1 102-2) as the leading storage system for synchronous replication of the data volume set, and as the upstream storage system for asynchronous replication of the data volume set. For example, the switching process can be performed by Figure 1 The switching control engine 114 is initiated.

[0099] Process 500 includes, after the switching process, using the conversion information to identify (at 506) a data storage object that had been asynchronously replicated from the first storage system to the third storage system before the switching process, and resuming (at 508) asynchronous replication for the data volume set based on the identified data storage object.

[0100] Storage media (e.g. Figure 3 300 or Figure 4404) may include any one or some combination of the following: semiconductor memory devices, such as dynamic or static random access memory (DRAM or SRAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), and flash memory or other types of non-volatile memory devices; disks, such as fixed disks, floppy disks, and removable disks; another magnetic medium, including tape; optical media, such as compact disks (CDs) or digital video disks (DVDs); or another type of storage device. Note that the instructions discussed above may be provided on one computer-readable or machine-readable storage medium, or alternatively, may be provided on multiple computer-readable or machine-readable storage media distributed in a large system with possibly multiple nodes. Such one or more computer-readable or machine-readable storage media are considered to be part of an article (or product). An article or product may refer to any manufactured single component or multiple components. One or more storage media may be located in a machine running machine-readable instructions, or at a remote site, from which machine-readable instructions may be downloaded over a network for execution.

[0101] In the foregoing description, many details are set forth to enable an understanding of the subject matter disclosed herein. However, embodiments may be practiced without some of these details. Other embodiments may include modifications and variations of the details discussed above. The appended claims are intended to cover such modifications and variations.

Claims

1. A non-transitory machine-readable storage medium comprising instructions, which when executed cause a first storage system to perform the following operations: receiving, as part of a switching process from a second storage system to the first storage system, a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system, wherein prior to the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein, as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and, as the asynchronous replication role, the second storage system is used to asynchronously replicate a first data storage object to a third storage system different from the first storage system; In response to the transfer, performing both of the following at the first storage system: synchronously replicate data from the first storage system to the second storage system or another storage system according to the synchronous replication role, and According to the asynchronous replication role, asynchronously replicating data from the first storage system to the third storage system; As part of performing the asynchronous replication, at the first storage system after the transfer: accessing conversion information for converting between a first identifier of the first data storage object used by the first storage system and a different second identifier of the first data storage object, wherein the conversion information comprises a plurality of mapping entries, wherein each mapping entry in the conversion information converts between one of the identifiers of the corresponding data storage object used by the first storage system and one of the corresponding different identifiers of the corresponding data storage object used by the third storage system, using the conversion information at the first storage system to identify a second data storage object that was subject to a suspended asynchronous replication at the second storage system prior to the switching process, and Based on the identifying, the second data storage object is asynchronously copied from the first storage system to the third storage system.

2. The non-transitory machine-readable storage medium of claim 1, wherein: The second data storage object is a copy of the first data storage object that was synchronously copied from the second storage system to the first storage system prior to the transferring.

3. The non-transitory machine-readable storage medium of claim 1, wherein: The identification of the second data storage object that is subject to the suspended asynchronous replication at the second storage system before the switching process is part of the following process: the system identifies which data storage objects are asynchronously replicated from the second storage system to the third storage system before the switching process and which other data storage objects are subject to the suspended asynchronous operation at the second storage system but have not been asynchronously replicated from the second storage system to the third storage system before the switching process.

4. The non-transitory machine-readable storage medium of claim 1, wherein: The switching process designates the first storage system as a leader storage system for performing the synchronous replication and an upstream storage system for performing the asynchronous replication.

5. The non-transitory machine-readable storage medium of claim 1, wherein: When the instruction is executed, the first storage system performs the following operations: using the conversion information to determine that a third data storage object has previously been asynchronously copied from the second storage system to the third storage system; as well as It is determined that starting from the second data storage object created after the third data storage object, asynchronous replication of the data storage object from the first storage system to the third storage system is resumed.

6. The non-transitory machine-readable storage medium of claim 5, wherein: When the instruction is executed, the first storage system performs the following operations: Based on determining that the third data storage object has been previously asynchronously copied to the third storage system, determining not to asynchronously copy the third data storage object to the third storage system.

7. The non-transitory machine-readable storage medium of claim 5, wherein: When the instruction is executed, the first storage system performs the following operations: After the transfer, sending information identifying the data storage object at the first storage system to the third storage system; as well as receiving from the third storage system an indication of whether any of the data storage objects identified by the information is stored at the third storage system, Wherein, the determining that the third data storage object has been previously asynchronously copied to the third storage system is based on the indication.

8. The non-transitory machine-readable storage medium of claim 1, wherein: When the instruction is executed, the first storage system performs the following operations: As part of asynchronously copying the second data storage object from the first storage system to the third storage system: using the conversion information at the first storage system to convert an identifier of the second data storage object used at the first storage system into an intermediate identifier, and The intermediate identifier is sent to the third storage system, where the intermediate identifier can be used at the third storage system to convert the intermediate identifier into an identifier of the second data storage object used at the third storage system, wherein the identifier of the second data storage object used at the first storage system is different from the identifier of the second data storage object used at the third storage system.

9. A first storage system, comprising: processor; as well as A non-transitory storage medium comprising instructions executable on the processor to: When the second storage system has a leader role and the first storage system has a partner role with respect to the second storage system, receiving a synchronous copy of the first data storage object from the second storage system; as well as receiving, as part of a switching process from the second storage system to the first storage system, a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system, wherein prior to the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein, as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and as the asynchronous replication role, the second storage system is used to asynchronously replicate data to a third storage system different from the first storage system; In response to the transfer, performing both of the following at the first storage system: synchronously replicate data from the first storage system to the second storage system or another storage system according to the synchronous replication role, and According to the asynchronous replication role, asynchronously replicating data from the first storage system to the third storage system; As part of performing the asynchronous replication, at the first storage system after the transfer: identifying a second data storage object using conversion information, the second data storage object being subject to the suspended asynchronous replication at the second storage system prior to the switching process, wherein the conversion information converts between a first identifier of the second data storage object used by the first storage system and a different second identifier of the second data storage object used by the third storage system, the conversion information comprising a plurality of mapping entries, wherein each mapping entry in the conversion information converts between one of the identifiers of the corresponding data storage object used by the first storage system and one of the corresponding different identifiers of the corresponding data storage object used by the third storage system, and Based on the identifying, the second data storage object is asynchronously copied from the first storage system to the third storage system.

10. The first storage system according to claim 9, wherein: The identification of the second data storage object that is subject to the suspended asynchronous replication at the second storage system before the switching process is part of the following process: the first storage system identifies which data storage objects are asynchronously replicated from the second storage system to the third storage system before the switching process and which other data storage objects are subject to the suspended asynchronous operation at the second storage system but have not been asynchronously replicated from the second storage system to the third storage system before the switching process.

11. The first storage system according to claim 9, wherein: The switching process is initiated to maintain or repair the second storage system.

12. The first storage system according to claim 9, wherein: The synchronous replication performed at the first storage system is for data of a data volume set, and the asynchronous replication performed at the first storage system is for data of the data volume set.

13. The first storage system according to claim 9, wherein: The instructions are executable on the processor to perform the following operations: In association with the synchronous replication of the first data storage object, metadata of the first data storage object is received, wherein the metadata includes information indicating that asynchronous replication is to be performed on the first data storage object.

14. The first storage system according to claim 13, wherein: The instructions are executable on the processor to perform the following operations: receiving an intermediate identifier of the first data storage object from the second storage system, the intermediate identifier being converted by the second storage system from a first local identifier of the first data storage object; as well as A second local identifier of the first data storage object is generated for use by the first storage system, the second local identifier being different from the first local identifier.

15. The first storage system according to claim 14, wherein: The instructions are executable on the processor to perform the following operations: An entry is added to the translation information, the entry associating the intermediate identifier with the second local identifier of the first data storage object.

16. The first storage system according to claim 9, wherein: The instructions are executable on the processor to perform the following operations: creating a third data storage object at the first storage system; and The third data storage object is asynchronously copied to the third storage system.

17. A method of using a first storage system, comprising: receiving, at the first storage system, a transfer of both a synchronous replication role and an asynchronous replication role of the second storage system to the first storage system as part of a switching process from the second storage system to the first storage system, wherein before the transfer, both synchronous replication according to the synchronous replication role and asynchronous replication according to the asynchronous replication role are active at the second storage system, and wherein, as the synchronous replication role, the second storage system is used to synchronously replicate data to the first storage system, and, as the asynchronous replication role, the second storage system is used to asynchronously replicate a first data storage object to a third storage system different from the first storage system; In response to the transfer, performing both of the following at the first storage system: synchronously replicate data from the first storage system to the second storage system or another storage system according to the synchronous replication role, and According to the asynchronous replication role, asynchronously replicating data from the first storage system to the third storage system; As part of performing the asynchronous replication, at the first storage system after the transfer: accessing conversion information for converting between a first identifier of a corresponding data storage object used by the first storage system and a corresponding different second identifier of the corresponding data storage object used by the third storage system, the conversion information comprising a plurality of mapping entries, wherein each mapping entry in the conversion information converts between one of the identifiers of the corresponding data storage object used by the first storage system and one of the corresponding different second identifiers of the corresponding data storage object used by the third storage system, using the conversion information at the first storage system to identify a second data storage object that was subject to a suspended asynchronous replication at the second storage system prior to the switching process, and Based on the identifying, the second data storage object is asynchronously copied from the first storage system to the third storage system.

18. The method of claim 17, wherein: The identified second data storage object is a data snapshot created at the second storage system before the switching process.