Making an existing disk group site consistent

The site consistency feature requires that a license enabling the site awareness feature has been purchased for all hosts at all sites that participate in the configuration.

To make an existing disk group site consistent

  1. Ensure that the disk group is updated to at least version 140 by running the vxdg upgrade command on it:

    # vxdg upgrade diskgroup
  2. On each host that can access the disk group, define the site name:

    # vxdctl set site=sitename
  3. Tag all the disks in the disk group with the appropriate site name:

    # vxdisk [-g diskgroup] settag site=sitename disk1 disk2

    Or, to tag all the disks in a specified enclosure, use the following command:

    # vxdisk [-g diskgroup] settag site=sitename
    		encl:encl_name
  4. Use the vxdg move command to move any unsupported RAID-5 volumes to another disk group. Alternatively, use the vxassist convert commands to convert the volumes to a supported layout such as mirror or mirror-stripe. You can use the site and mirror=site storage allocation attribute to ensure that the plexes are created on the correct storage.

  5. Use the vxevac command to ensure that the volumes have at least one plex at each site. You can use the site and mirror=site storage allocation attribute to ensure that the plexes are created on the correct storage.

    See the vxevac(1m) manual page.

  6. Register a site record for each site with the disk group:

    # vxdg -g diskgroup addsite sitename
  7. Turn on site consistency for the disk group:

    # vxdg -g diskgroup set siteconsistent=on
  8. Turn on the allsites flag for the volume which requires data replication to each site:

    # vxvol [-g diskgroup] set allsites=on volume
  9. Turn on site consistency for each existing volume in the disk group for which site consistency is needed. You also need to attach DCOv20 if it is not attached already. DCOv20 is required to ensure that site detach and reattach are instantaneous.

    # vxvol [-g diskgroup] set siteconsistent=on volume ...

More Information

Preparing a volume for DRL and instant snapshots