Administering sites and remote mirrors

 

439

 

 

 

Making an existing disk group site consistent

 

 

 

 

Command

Description

 

 

 

 

 

# vxassist -g ccdg remove \

Remove a mirror from a volume at a

mirror vol site:site1

specified site. If the volume is site

 

consistent, the command fails if this would

 

remove the last remaining plex at a site.

 

 

 

# vxassist -g ccdg growto vol 4g

Grow a volume. If the volume is site

 

consistent, the command fails if there is

 

insufficient storage available at any site.

 

 

 

 

Making an existing disk group site consistent

To make an existing disk group site consistent

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

#vxdg upgrade diskgroup

2On each host that can access the disk group, define the site name:

#vxdctl set site=sitename

3Tag all the disks in the disk group with the appropriate site name:

#vxdisk [-g diskgroup] settag disk site=sitename

4Use the vxdg move command to move any unsupported RAID-5 volumes to another disk group. Alternatively, use the vxassist convert command 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.

5Use the vxevac command to ensue that the volumes have equal number of plexes 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.

6Register a site record for each site with the disk group:#vxdg -gdiskgroup addsite sitename7Turn on site consistency for the disk group:

#vxdg -g diskgroup set siteconsistent=on

8Turn on site consistency for each volume in the disk group:
# vxvol [-g diskgroup] set siteconsistent=on volume ...