Skip to main content

Manage ONTAP consistency groups on ASA r2 storage systems

Contributors netapp-aherbin

A consistency group is a collection of storage units that are managed as a single unit. Use consistency groups for simplified storage management. For example, suppose you have a database consisting of 10 storage units in a consistency group, and you need to back up the entire database. Instead of backing up each storage unit, you can back up the entire database by simply adding snapshot data protection to the consistency group. Backing up the storage units as a consistency group instead of individually also provides a consistent backup of all the units, while backing up units individually could potentially create inconsistencies.

Beginning in ONTAP 9.16.1, you can use System Manager to create hierarchical consistency groups on your ASA r2 system. In an hierarchical structure, one or more consistency groups are configured as children under a parent consistency group.

Hierarchical consistency groups allow you to apply individual snapshot policies to each child consistency group and to replicate the snapshots of all the child consistency groups to a remote cluster as a single unit by replicating the parent. This simplifies data protection and management for complex data structures. For example, suppose you create a parent consistency group called SVM1_app which contains two child consistency groups: SVM1app_data for application data and SVM1app_logs for application logs. Snapshots of SVM1app_data are taken every 15 minutes and snapshots of SVM1app_logs are taken every hour. The parent consistency group, SVM1_app, has a SnapMirror policy that replicates the snapshots of both SVM1app_data and SVM1app_logs to a remote cluster every 24 hours. The parent consistency group SVM1_app is managed as a single unit and the child consistency groups are managed as separate units.

Add snapshot data protection to a consistency group

When you add snapshot data protection to a consistency group, local snapshots of the consistency group are taken at regular intervals based on a pre-defined schedule.

You can use snapshots to restore data that is lost or corrupted.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want to protect.

  3. Select three vertical blue dots; then select Edit.

  4. Under Local protection, select Schedule snapshots.

  5. Select a snapshot policy.

    Accept the default snapshot policy, select an existing policy, or create a new policy.

    Option Steps

    Select an existing snapshot policy

    Select downward pointing blue arrow next to the default policy; then select the existing policy that you want to use.

    Create a new snapshot policy

    1. Select blue plus sign followed by the word add; then enter the new policy name.

    2. Select the policy scope.

    3. Under Schedules select blue plus sign followed by the word add.

    4. Select the name that appears under Schedule name;

      then select blue arrow pointing in downward direction.

    5. Select the policy schedule.

    6. Under Maximum snapshots, enter the maximum number of snapshots that you want to retain of the consistency group.

    7. Optionally, under SnapMirror label enter a SnapMirror label.

    8. Select Save.

  6. Select Edit.

What's next

Now that your data is protected with snapshots, you should set up snapshot replication to copy your consistency groups to a geographically remote location for backup and disaster recovery.

Remove snapshot data protection from a consistency group

When you remove snapshot data protection from a consistency group, snapshots are disabled for all the storage units in the consistency group.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want to stop protecting.

  3. Select three vertical blue dots; then select Edit.

  4. Under Local protection, deselect Schedule snapshots.

  5. Select Edit.

Result

Snapshots will not be taken for any of the storage units in the consistency group.

Add storage units to a consistency group

Expand the amount of storage managed by a consistency group by adding storage units to the consistency group.

You can add existing storage units to your consistency group or you can create new storage units to add to the consistency group.

Add existing storage units
Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want to expand.

  3. Select three vertical blue dots; then select Expand.

  4. Select Using existing storage units.

  5. Select the storage units to add to the consistency group; then select Expand.

Add new storage units
Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want to expand.

  3. Select three vertical blue dots; then select Expand.

  4. Select Using new storage units.

  5. Enter the number of units you want to create and the capacity per unit.

    If you create more that one unit, each unit is created with the same capacity and the same host operating system. To assign a different capacity to each unit, select Add a different capacity to assign a different capacity to each unit.

  6. Select Expand.

What’s next

After you create a new storage unit, you should add host initiators and map the newly created storage unit to a host. Adding host initiators makes hosts eligible to access the storage units and perform data operations. Mapping a storage unit to a hosts allows the storage unit to begin serving data to the host it is mapped to.

What's next?

Existing snapshots of the consistency group won't include your newly added storage units. You should create an immediate snapshot of your consistency group to protect your newly added storage units until the next scheduled snapshot is automatically created.

Remove a storage unit from a consistency group

You should remove a storage unit from a consistency group if you want to delete the storage unit, if you want manage it as part of a different consistency group, or if you no longer need to protect the data it contains. Removing a storage unit from a consistency group breaks the relationship between the storage unit and the consistency group, but does not delete the storage unit.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Double-click the consistency group from which you want to remove a storage unit.

  3. In the Overview section, under Storage units, select the storage unit you want to remove; then select Remove from consistency group.

Result

The storage unit is no longer a member of the consistency group.

What's next

If you need to continue data protection for the storage unit, add the storage unit to another consistency group.

Convert an existing consistency group into a parent consistency group

Storage units cannot be directly associated with a parent consistency group. If you convert an existing consistency group to a parent, a new child consistency group is created and the storage units belonging to the converted consistency group are moved to the new child consistency group.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want convert into a parent consistency group.

  3. Select three vertical blue dots; then select Promote to parent consistency group.

  4. Enter a name for the parent consistency group or accept the default name; then select the consistency group component type.

  5. Select Promote.

What's next?

You can create additional child consistency groups under the parent consistency group. You can also set up snapshot replication to copy the parent consistency group to a geographically remote location for backup and disaster recovery.

Create a child consistency group

Creating child consistency groups allows you to apply individual snapshot policies to each child while applying a replication policy to all the child consistency groups at the parent level.

You can create a child consistency group from a new or existing consistency group.

From a new consistency group
Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the parent consistency group you want to add a child consistency group to.

  3. Select three vertical blue dots; then select Add a new child consistency group.

  4. Enter a name for the child consistency group or accept the default name; then select the consistency group component type.

  5. Select to add existing storage units to the child consistency group or to create new storage units.

    If you create new storage units, enter the number of units you want to create and the capacity per unit; then enter the host information.

    If you create more than one storage unit, each unit is created with the same capacity and the same host operating system. To assign a different capacity to each unit, select Add a different capacity.

  6. Select Add.

From an existing consistency group
Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Select the existing consistency group that you would like to make a child consistency group.

  3. Select three vertical blue dots; then select Move under different consistency group.

    If the consistency group you would like to use as already the child of another consistency group, you must detach it from the existing parent consistency group before you can move it to a new parent consistency group.

  4. Enter a new name for the child consistency group or accept the default name; then select the consistency group component type.

  5. Select the existing consistency group that you would like to make the parent consistency group or select to create a new parent consistency group.

    If you select to create a new parent consistency group, enter a name for the parent consistency group or accept the default name; then select the consistency application component type.

  6. Select Move.

What's next

After you create a child consistency group, you can apply individual snapshot protection policies to each child consistency group. You can also set up a replication policy on the parent consistency group to replicate the snapshots of all the child consistency groups to a remote cluster as a single unit.

Demote a parent consistency group to a single consistency group

When you demote a parent consistency group to a single consistency group, the storage units of the associated child consistency groups are added to the parent consistency group. The child consistency groups are deleted and the parent is then managed as a single consistency group.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the parent consistency group you want to demote.

  3. Select three vertical blue dots; then select Demote to a single consistency group.

  4. Select Demote

What's next?

Add a snapshot policy to the demoted consistency group to protect the storage units that were previously managed by the child consistency groups.

Detach a child consistency group from a parent consistency group

When you detach a child consistency group from a parent consistency group, the child consistency group is removed from the parent consistency group and is managed as a single consistency group. The replication policy applied to the parent are no longer applied to the detached child consistency group.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Select the parent consistency group.

  3. Select over the child consistency group you want to detach.

  4. Select three vertical blue dots; then select Detach from parent.

  5. Enter a new name for the consistency group you are detaching or accept the default name; then select the consistency group application type.

  6. Select Detach.

What's next?

Set up a replication policy to replicate the snapshots of the detached child consistency group to a remote cluster as a single consistency group.

Delete a consistency group

If you no longer need to manage the members of a consistency group as a single unit, you can delete the consistency group. After a consistency group is deleted, the storage units previously in the group remain active on the cluster.

Before you begin

If the consistency group you want to delete is in a replication relationship, you must break the relationship before you delete the consistency group. After you delete a replication consistency group, the storage units that were in the consistency group remain active on the cluster and their replicated copies remain on the remote cluster.

Steps
  1. In System Manager, select Protection > Consistency groups.

  2. Hover over the consistency group you want to delete.

  3. Select three vertical blue dots; then select Delete.

  4. Accept the warning, then select Delete.

What's next?

After you delete a consistency group, the storage units previously in the consistency group are no longer protected by snapshots. Consider adding these storage units to another consistency group to protect them against data loss.