Failover usig VCS ACTIVE-ACTIVE CLUSTER volumes mirred CVM enable from both sites Parallel application CONFIGURINF SITE AWARENESS Rules: Volumes are mirrored across sites by default Volumes are created with DCO logs Site-aware commands and options are used to control non-default dehavior 1-Assign the physical resources to a site 2-Configure site-based allocation on a disk group 3-Configure site consistency on the DG and volumes 4-Set mirrored volumes read policy to site-based (if necesary) 5-Use site-based storage allocation when creating new volumes AISSING DISK TO A SITE To assign a disk to a site: vxdisk [-g diskgroup] settag site=sitename \ [disk|e:enclosure] [disk|e:enclosure].... vxdisk -g datag settag site=siteA EMC0_1 EMC0_2 or vxdisk -g datadg settag site=siteA e:EMC0 To list the site tags on a disk: vxdisk [-g disgroup] listtag To re move the site tag from a disk: vxdisk [-g diskgroup] rmtag site=sitename \ [disk|e:enclosure] ASSIGNING HOST TO A SITE To assign a host to site: vxdctl set site:sitename vxdctl set site:siteA To observe the site assigment of a host: vxdctl list | grep siteid siteid: siteA To remove the site name from a host: vxdctl [-F] unset site CONFIGURING SITE-BASED ON A DISK GROUP To add site definition to a DG configuration: vxdg -g diskgroup addsite sitename vxdg -g diskgroup addsite siteA vxdg -g diskgroup addsite siteB A new volume is automatically mirroed across all sites Thevolume read policy is automatically set to siteread Use allsites=off with vxassist make for non-default configurations. To remove a site from the disk group configuration: vxdg -g diskgroup rmsite sitename
No change is made to physical resources that are assigned to that site
SITE CONSISTENCY IN A DISK GROUP
To set side consistency in a disk group: vxdg -g diskgroup set siteconsistent=on To set site consistency on an existing volume: vxsnap -g diskgroup prepare volume (This command create required DCO log) vxvol -g diskgroup set siteconsistent=on volume Turn off site consistency vxvol -g diskgroup set siteconsistent=off volume vxdg -g diskgroup set siteconsistent=off READ POLICY IN A SITE-CONSISTENT SETUP Each host read data from local plexes Is the default If default pplicy site-based allocation is enable Manually: vxvol -g diskgroup rdpol siteread volume SITE-BASED STORAGE ALLOCATION A site-consistent mirrored volume with plexes at all of the sites: vxassist -g diskgroup make volume_sixe \ mirror=site allsites=on siteconsistent=on A non-site-consistent mirrored volume with plexes at only some sites: vxassist -g diskgroup make volume_size \ mirror=site sites:site1 site:site2 ... \ allsites=off siteconsistent=off MAKE CHANGES IN A SITE-CONSISTENT ENVIRONMENT -f force vxdg -f -g diskgroup addsite siteC MAKING AN EXISTING DISK GROUP SITE CONSISTENCY 1-Ensure that the disk group is updated to version 140 2-On each host that can access the disk group, define the site name 3-Tag all the disks in the disk group with the site name 4-Move any unsupported RAID5 or convert 5-Ensure that the volumes have plexes at each site 6-Register each site with the disk group 7-Turn site consistency on for the disk group 8-Turn site consistency on for each volume in the disk group RECOVERING FROM A DETACHED SITE vxdg -d diskgroup [-o overridessb] reattachsite sitename vxreciver -g diskgroup