FlashCopy consistency groups

A FlashCopy® consistency group is a container for FlashCopy mappings to help manage related copies and ensure consistency. You can add many mappings to a consistency group.

The consistency group is specified when the FlashCopy mapping is created. You can also add existing FlashCopy mappings to a new consistency group or change the consistency group later. When you use a consistency group, you prepare and start that group instead of the individual FlashCopy mappings. This process ensures that a consistent copy is made of all the source volumes. FlashCopy mappings to control at an individual level are known as stand-alone mappings. Do not place stand-alone mappings into a consistency group because they become controlled as part of that consistency group.

When you copy data from one volume to another, the data might not include all that you need to use the copy. In many applications, data spans multiple volumes and requires that data integrity is preserved across volumes. For example, the logs for a particular database usually reside on a different volume than the volume that contains the data.

FlashCopy consistency groups address the problem of applications having related data that spans multiple volumes. In this situation, copy operations must be initiated in a way that preserves data integrity across the multiple volumes. One requirement for preserving the integrity of data that is being written is to ensure that dependent writes are run in the intended sequence of the application.

You can set the autodelete attribute for FlashCopy consistency groups. If this attribute is set to on, the consistency group is automatically deleted when the last mapping in the group is deleted or moved out of the consistency group.

A FlashCopy consistency groups can be assigned to an ownership group. An ownership group defines a subset of users and objects within the system. You can create ownership groups to further restrict access to specific resources that are defined in the ownership group. Only users with Security Administrator roles can configure and manage ownership groups. Restricted users are those users who are defined to a specific ownership group and can only view or manage specific resources that are assigned to that ownership group. Unrestricted users are not defined to an ownership group and can manage any objects on the system based on their role on the system.

Ownership can be defined explicitly or it can be inherited from the user, user group, or from other parent resources, depending on the type of resource. FlashCopy consistency groups can be owned if they are assigned an ownership group explicitly or by inheritance from the user that created them. The following rules apply to a a FlashCopy consistency groups that are defined in ownership groups:

  • Users that are defined in ownership groups can add FlashCopy mappings to a consistency group if the volumes in the mapping and in the consistency group are within the same ownership group. For users that are not defined in an ownership group, no restriction for adding mappings to a FlashCopy consistency group. In this case, FlashCopy consistency groups are containers only and do not influence the ownership of the contents.
  • When you are migrating existing resources to ownership groups, a FlashCopy consistency group and its resources can belong to different ownership groups temporarily until the migration completes.
  • As with volume groups and volumes, the ownership of the consistency group has no impact in the ownership of the mappings it contains.

Multiple target FlashCopy mappings

Consistency groups aggregate FlashCopy mappings, not the volumes themselves. Therefore, a source volume with multiple FlashCopy mappings can be in different consistency groups. If a volume is the source volume for several FlashCopy mappings that are in the same consistency group, multiple identical copies of the source volume are created when the consistency group is started.

Cascaded FlashCopy mapping restrictions

To create a FlashCopy mapping in a consistency group, the source volume cannot be the target of a mapping in the same consistency group. In addition, the target volume cannot be the source of another FlashCopy mapping in the same consistency group. You cannot move a FlashCopy mapping into a consistency group that contains similar FlashCopy mappings in the cascade.

FlashCopy consistency group states

At any point in time, a FlashCopy consistency group is in one of the following states:
Idle_or_Copied
All FlashCopy mappings in this consistency group are in the Idle or Copied state.
Preparing
At least one FlashCopy mapping in this consistency group is in the Preparing state.
Prepared
The consistency group is ready to start. While in this state, the target volumes of all FlashCopy mappings in this consistency group are not accessible.
Copying
At least one FlashCopy mapping in the consistency group is in the Copying state and no FlashCopy mappings are in the Suspended state.
Stopping
At least one FlashCopy mapping in the consistency group is in the Stopping state and no FlashCopy mappings are in the Copying or Suspended state.
Stopped
The consistency group is stopped because either you entered entered a command or an I/O error occurred.
Suspended
At least one FlashCopy mapping in the consistency group is in the Suspended state.
Empty
The consistency group does not have any FlashCopy mappings.

Table 1 lists the FlashCopy consistency group states. At any point in time, a FlashCopy consistency group is in one of the listed states.

Table 1. FlashCopy consistency group states
Management GUI icon Command-line interface state Description
Icon that is used to identify the idled or copied state. Idle_or_Copied All FlashCopy mappings in this consistency group are in the idle or copied state.
Icon that is used to identify the preparing state. Preparing At least one FlashCopy mapping in the consistency group is in the preparing state.

Icon that is used to identify the prepared state. Prepared The consistency group is ready to start. The target volumes of all FlashCopy mappings in this consistency group are not accessible.
Icon that is used to identify the copying state. Copying At least one FlashCopy mapping in the consistency group is in the copying state and no FlashCopy mappings are in the suspended state.
Icon that is used to identify the stopping state. Stopping At least one FlashCopy mapping in the consistency group is in the stopping state and no FlashCopy mappings are in the copying or suspended state.
Icon that is used to identify the stopped state. Stopped The consistency group might be stopped because either you issued a command or an I/O error occurred.
Icon that is used to identify the suspended state. Suspended At least one FlashCopy mapping in the consistency group is in the suspended state.
Icon that is used to identify the empty state. Empty The consistency group does not have any FlashCopy mappings.
Individual FlashCopy mappings that are not in a consistency group (No state) Individual FlashCopy mappings that are not in a consistency group.