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.
Setting up a new disk group for a Remote Mirror configuration
Define the site name for each host that can access the disk group.
# vxdctl set site=sitename
The name that has been assigned to a site is stored in the /etc/vx/volboot file.
Register a site record to the disk group, for each site.
# 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.
Turn on the site consistency requirement for a disk group:
# vxdg -g diskgroup set siteconsistent=on