Adding a HyperSwap relationship to an existing 3-site consistency group

You can add existing HyperSwap relationships that are configured between the near sites to an existing 3-site consistency group. If you are using Orchestrator 3.0, The HyperSwap relationship must be empty and cannot contain volumes with active data. HyperSwap relationships must be in the consistent synchronized state before they can be added to a 3-site consistency group.

Orchestrator 4.0 supports the ability to add a HyperSwap relationship with data to existing 3-site consistency group. If you are running Orchestrator 4.0, see Adding a HyperSwap relationship with data to 3-site consistency group.

Using the management GUI

You can view and manage HyperSwap relationships on the Remote Copy page, but HyperSwap relationships are created automatically during the HyperSwap volume creation. To view current HyperSwap relationships on the system, select Copy Services > Remote Copy > Independent Relationships. HyperSwap relationships are listed in the management GUI with the type, activeactive, and must be in the consistent_synchronized state before they can be converted to a 3-site consistency group.

To add an existing HyperSwap relationship to a 3-site consistency group, complete these steps:
  1. In the management GUI, select Copy Service > Remote Copy.
  2. Select Independent Relationships and right-click the relationship and select Convert to 3-site.
  3. Uncheck the This relationship contains data checkbox.
  4. Select the 3-site consistency group from the list that displays and select Next.
  5. Under Choose a pool, specify the numerical ID for the storage pool on the auxiliary-far site that provides capacity for the target volumes. To verify these details, select Launch the Aux-Far management GUI, and select Pools > Pools. If the selected pool is a data reduction pool, select This is a data reduction pool.
  6. Under Aux-Far pool settings, select the method for saving capacity that this pool uses.
  7. In the Volume base name field, enter a naming convention that identifies the volume as part of the 3-site consistency group. The names are automatically generated to include the specified base name, the name of the 3-site consistency group, and an incremental number.
  8. Click Convert.
  9. After the conversion completes, verify that the HyperSwap relationship is part of the 3-site consistency group. Select the 3-site consistency group and verify that the new relationship displays in the list of relationships.

Using the command line interface

To add a HyperSwap (activeactive) relationship to an existing 3-site consistency group, complete these steps:

  1. Run the mkvolume command to create an empty volume.
    # svctask mkvolume -pool Pool0:Pool1 -size 5048 -unit mb -name Hyperswap_Volume
    Volume, id [8], successfully created  
  2. Run the lsrcrelationship command on the HyperSwap relationship to verify that the state of the relationship is consistent_synchronized.
     lsrcrelationship rcrel0
    id 0
    name rcrel0
    master_cluster_id 0000000000000000
    master_cluster_name threesite_hs
    master_vdisk_id 0
    master_vdisk_name HYPERSWAP_0
    aux_cluster_id 0000000000000000
    aux_cluster_name threesite_hs
    aux_vdisk_id 1
    aux_vdisk_name vdisk1
    primary aux
    consistency_group_id
    consistency_group_name
    state consistent_synchronized
    bg_copy_priority 50
    progress
    freeze_time
    status online
    sync
    copy_type activeactive
    cycling_mode
    cycle_period_seconds 300
    master_change_vdisk_id 2
    master_change_vdisk_name vdisk2
    aux_change_vdisk_id 3
    aux_change_vdisk_name vdisk3
    previous_primary
    channel none
  3. Run the ls3sitercconsistgrp command to check the state of the 3-site consistency group where the stand-alone relationship is to be added.
    ls3sitercconsistgrp
    name state primary periodic_copy_source sync_copy_state periodic_copy_state freeze_time cycle_period status
    rccstgrp0 3site_consistent threesite_hs site1 consistent_synchronized copied 2021/12/28/09/29/11 301 online
    rccstgrp1 3site_consistent threesite_hs site1 consistent_synchronized copied 2021/12/28/09/24/11 302 online
    rccstgrp2 3site_consistent threesite_hs site1 consistent_synchronized stopped 2021/12/28/09/15/51 303 online
    rccstgrp3 3site_consistent threesite_hs site1 consistent_synchronized stopped 2021/12/28/09/26/46 304 online
    rccstgrp4 3site_consistent threesite_hs site1 consistent_synchronized stopped 2021/12/28/09/27/11 305 online
    rccstgrp5 3site_consistent threesite_hs site1 consistent_synchronized stopped 2021/12/28/09/28/11 306 online
    rccstgrp6 3site_consistent threesite_hs site1 consistent_synchronized copied 2021/12/28/09/27/01 307 online
    rccstgrp7 3site_consistent threesite_hs site1 consistent_synchronized stopped 2021/12/28/09/17/01 308 online
    rccstgrp8 3site_consistent threesite_hs site2 consistent_synchronized copied 2021/12/28/09/32/16 309 online
    rccstgrp9 3site_consistent threesite_hs site2 consistent_synchronized copied 2021/12/28/09/28/56 300 online
    rccstgrp10 3site_consistent threesite_hs site2 consistent_synchronized stopped 2021/12/28/09/30/01 500 online
    rccstgrp11 3site_consistent threesite_hs site2 consistent_synchronized stopped 2021/12/28/09/32/36 501 online
    rccstgrp12 3site_consistent threesite_hs site2 consistent_synchronized stopped 2021/12/28/09/33/46 502 online
    rccstgrp13 3site_consistent threesite_hs site2 consistent_synchronized stopped 2021/12/28/09/34/06 503 online
    rccstgrp14 3site_consistent threesite_hs site2 consistent_synchronized stopped 2021/12/28/09/15/16 504 online
    rccstgrp15 3site_consistent threesite_hs site2 consistent_synchronized copied 2021/12/28/09/38/16 505 online
  4. Run the ls3sitercrelationship command to check the state of the 3-site consistency group where the stand-alone relationship is to be added.
    # ls3sitercrelationship |grep -i rccstgrp0
    rcrel0 rccstgrp0 0 1 0 100 complete
    rcrel1 rccstgrp0 4 5 3 100 complete
    rcrel2 rccstgrp0 8 9 6 100 complete
    rcrel3 rccstgrp0 12 13 9 100 complete
    rcrel4 rccstgrp0 16 17 12 100 complete
    rcrel5 rccstgrp0 20 21 15 100 complete
    rcrel6 rccstgrp0 24 25 18 100 complete
    rcrel7 rccstgrp0 28 29 21 100 complete
    rcrel8 rccstgrp0 32 33 24 100 complete
    rcrel9 rccstgrp0 36 37 27 100 complete
    
  5. Run the addnewrcrelationship command to add the 2-site relationship to the 3-site consistency group.
    # addnewrcrelationship -pool 0 -iogrp 0 -consistgrpname rccstgrp0 rcrel10
    3-site RC relationship created with volume id [30]
  6. Run the ls3sitercrelationship command to check the state of the 3-site consistency group where the relationship is added. In the following output, the relationship is added to the consistency group identified as rcrel10.
    # ls3sitercrelationship | grep -i rccstgrp0
    rcrel0 rccstgrp0 0 1 0 complete
    rcrel1 rccstgrp0 4 5 3 complete
    rcrel2 rccstgrp0 8 9 6 complete
    rcrel3 rccstgrp0 12 13 9 complete
    rcrel4 rccstgrp0 16 17 12 complete
    rcrel5 rccstgrp0 20 21 15 complete
    rcrel6 rccstgrp0 24 25 18 complete
    rcrel7 rccstgrp0 28 29 21 complete
    rcrel8 rccstgrp0 32 33 24 complete
    rcrel9 rccstgrp0 36 37 27 complete
    rcrel10 rccstgrp0 40 41 30 complete