You can enable the Availability Suite volume sets and fallback snapshots in one of two ways:
Automatically, when the device group is added to the protection group, avspg.
Prepare one device-group-volset.ini for each device group that will be replicated when you are setting up the Availability Suite feature for the first time. If you want to automatically enable fallback snapshots, you will also prepare one device-group-snapshot.ini file for each device group. You must set the device group's Enable_volume_set property to True. The Availability Suite feature reads the information in the device-group-volset.ini file to automatically enable the device group. If you have configured the optional device-group-snapshot.ini file, that will also be read when the device group is added to a protection group.
Manually, after the device group is added to the protection group.
Use the manual procedures to enable the volume sets and fallback snapshots when you are creating volumes on a system that has been configured.
In this example, the cluster-paris cluster is the primary and avsset is a device group that contains a Solaris Volume Manager disk set.
Example 1 Automatically Enabling a Solaris Volume Manager Volume SetThis example has the following entries in the /var/cluster/geo/avs/avsset-volset.ini file. Each volume must be defined on a single line in the file:
logicalhost-paris-1 /dev/md/avsset/rdsk/d100 /dev/md/avsset/rdsk/d101 logicalhost-newyork-1 /dev/md/avsset/rdsk/d100 /dev/md/avsset/rdsk/d101 ip async C avsset
The avsset-volset.ini file contains the following entries:
lh-paris-1 – Primary host
/dev/md/avsset/rdsk/d100 – Primary data
/dev/md/avsset/rdsk/d101 – Primary bitmap
lh-newyork-1 – Secondary host
/dev/md/avsset/rdsk/d100 – Secondary data
/dev/md/avsset/rdsk/d101 – Secondary bitmap
ip – Protocol
async – Mode
C – C tag
avsset – Disk set
The sample configuration file defines a volume set that replicates d100 from cluster-paris to d100 on cluster-newyork by using the bitmap volumes and logical hostnames that are specified in the file.
In this example, the cluster-paris cluster is the primary and rawdg is the name of the device group that contains a raw device disk group, /dev/did/rdsk/d3.
Example 2 Automatically Enabling a Raw Device Volume SetThis example has the following entries in /var/cluster/geo/avs/avsdg-volset.ini file. Each volume must be defined on a single line in the file:
logicalhost-paris-1 /dev/did/rdsk/d3s3 /dev/did/rdsk/d3s4 logicalhost-newyork-1 /dev/did/rdsk/d3s5 /dev/did/rdsk/d3s6 ip async C rawdg
The rawdg-volset.ini file contains the following entries:
logicalhost-paris-1 – Primary host
/dev/did/rdsk/d3s3 – Primary data
/dev/did/rdsk/d3s4 – Primary bitmap
logicalhost-newyork-1 – Secondary host
/dev/did/rdsk/d3s5 – Secondary data
/dev/did/rdsk/d3s6 – Secondary bitmap
ip – Protocol
async – Mode
C – C flag
rawdg – Device group
The sample configuration file defines a volume set that replicates d3s3 from cluster-paris to d3s5 on cluster-newyork. The volume set uses the bitmap volumes and logical hostnames that are specified in the file.
After you have added the device group to the protection group, avspg, you can manually enable the Availability Suite volume sets and fallback snapshots. Because the Availability Suite commands are installed in different locations in the supported software versions, the following examples illustrate how to enable volume sets for each software version.
Example 3 Manually Enabling an Availability Suite Volume SetThis example manually enables a Solaris Volume Manager volume set when using Availability Suite.
phys-paris-1# /usr/sbin/sndradm -e logicalhost-paris-1 \ /dev/md/avsset/rdsk/d100 /dev/md/avsset/rdsk/d101 \ logicalhost-newyork-1 /dev/md/avsset/rdsk/d100 \ /dev/md/avsset/rdsk/d101 ip async C avssetExample 4 Manually Enabling a Raw Device Volume Set
This example manually enables a raw device volume set when using Availability Suite.
phys-paris-1# /usr/sbin/sndradm -e logicalhost-paris-1 \ /dev/did/rdsk/d3s3 /dev/did/rdsk/d3s4 logicalhost-newyork-1 /dev/did/rdsk/d3s5 \ /dev/did/rdsk/d3s6 ip async C dsk/d3
Information about the sndradm command execution is written to the Availability Suite log file at /var/adm/ds.log. Refer to this file if errors occur while manually enabling the volume set.