Note: |
The Remote Mirror feature requires that a license enabling the Site Awareness feature has been installed on all hosts at all sites that participate in the configuration. |
This section describes setting up a new disk group. To configure an existing disk group as a Remote Mirror configuration, additional steps may be required.
See Making an existing disk group site consistent.
Setting up a new disk group for a Remote Mirror configuration
# vxdctl set site=sitename
To verify the site name assigned to the host, use the following command:
# vxdctl list
# vxdg -g diskgroup [-f] addsite sitename
To tag all disks regardless of the disk group, do the following:
Assign a site name to the disks or enclosures. You can set site tags at the disk level, or at the enclosure level. If you specify one or more enclosures, the site tag applies to the disks in that enclosure that are within the disk group. Enter the following command:
# vxdisk [-g diskgroup] settag site=sitename \ disk disk1... |encl:encl_name encl:encl_name1...
where the disks can be specified either by the disk access name or the disk media name.
To autotag new disks added to the disk group based on the enclosure to which they belong, perform the following steps in the order presented. These steps are limited to disks in a single group.
Add site-enclosure mapping information to the diskgroup for each site-enclosure combination. Enter the following command:
# vxdg [-g diskgroup] settag encl:encl_name1 site=sitename1
As a result of this command, all disks of enclosure encl_name1 in the specified disk group are tagged with site information.
# vxdg -g diskgroup set siteconsistent=on