Configuring VxVM disk groups for campus cluster configuration

Configure the campus cluster sites and configure VxVM disk groups for remote mirroring. You can also configure VxVM disk groups for remote mirroring using Veritas InfoScale Operations Manager.

Note:

In AWS environments where nodes span multiple Availability Zones, FSS volumes in campus cluster configurations can be used as an alternative to data replication using VVR for achieving high data availability across AZs. In this FSS-campus cluster configuration, site tags can be added based on the name of the Availability Zone to make data highly available during AZ failures.

See the Storage Foundation Cluster File System High Availability Administrator's Guide for more information on the VxVM commands.

To configure VxVM disk groups for campus cluster configuration

  1. Set the site name for each host:
    # vxdctl set site=sitename
    

    The site name is stored in the /etc/vx/volboot file. Use the following command to display the site names:

    # vxdctl list | grep siteid
    
  2. Set the site name for all the disks in an enclosure:
    # vxdisk settag site=sitename encl:enclosure
    

    To tag specific disks, use the following command:

    # vxdisk settag site=sitename disk
    
  3. Verify that the disks are registered to a site.
    # vxdisk listtag
    
  4. Create a disk group with disks from both the sites.
    # vxdg -s init diskgroup siteA_disk1 siteB_disk2
    
    
  5. Configure site-based allocation on the disk group that you created for each site that is registered to the disk group.
    # vxdg -g diskgroup addsite sitename
    
  6. Configure site consistency on the disk group.
    # vxdg -g diskgroup set siteconsistent=on
    
  7. Create one or more mirrored volumes in the disk group.
    # vxassist -g diskgroup make volume size nmirror=1/2
    
    

    With the Site Awareness license installed on all hosts, the volume that you create has the following characteristics by default:

    • The allsites attribute is set to on; the volumes have at least one plex at each site.

    • The volumes are automatically mirrored across sites.

    • The read policy rdpol is set to siteread.

    • The volumes inherit the site consistency value that is set on the disk group.