Next, you need to configure the volume manager, the Sun Cluster device groups, and the highly available cluster file system. You can configure these entities in two ways:
By replicating the volume manager information from cluster-paris
By creating a copy of the volume manager configuration on the LUNs of cluster-newyork by using the VERITAS Volume Manager commands vxdiskadm and vxassist
Each of these methods is described in the following procedures.
Start replication for the devgroup1 device group.
phys-paris-1# symrdf -g devgroup1 -noprompt establish An RDF 'Incremental Establish' operation execution is in progress for device group 'devgroup1'. Please wait... Write Disable device(s) on RA at target (R2)..............Done. Suspend RDF link(s).......................................Done. Mark target (R2) devices to refresh from source (R1)......Started. Device: 054 ............................................. Marked. Mark target (R2) devices to refresh from source (R1)......Done. Suspend RDF link(s).......................................Done. Merge device track tables between source and target.......Started. Device: 09C ............................................. Merged. Merge device track tables between source and target.......Done. Resume RDF link(s)........................................Done. The RDF 'Incremental Establish' operation successfully initiated for device group 'devgroup1'. |
Confirm that the state of the EMC Symmetrix Remote Data Facility pair is synchronized.
phys-newyork-1# symrdf -g devgroup1 verify All devices in the RDF group 'devgroup1' are in the 'Synchronized' state. |
Split the pair by using the symrdf split command.
phys-paris-1# symrdf -g devgroup1 -noprompt split An RDF 'Split' operatiaon execution is in progress for device group 'devgroup1'. Please wait... Suspend RDF link(s).......................................Done. Read/Write Enable device(s) on RA at target (R2)..........Done. The RDF 'Split' operation device group 'devgroup1'. |
Enable all the volumes to be scanned.
phys-newyork-1# vxdctl enable |
Import the VERITAS Volume Manager disk group, dg1.
phys-newyork-1# vxdg -C import dg1 |
Verify that the VERITAS Volume Manager disk group was successfully imported.
phys-newyork-1# vxdg list |
Enable the VERITAS Volume Manager volume.
phys-newyork-1# /usr/sbin/vxrecover -g dg1 -s -b |
Verify that the VERITAS Volume Manager volumes are recognized and enabled.
phys-newyork-1# vxprint |
Register the VERITAS Volume Manager disk group, dg1, in Sun Cluster software.
phys-newyork-1# scconf -a -D type=vxvm, name=dg1, \ nodelist=phys-newyork-1:phys-newyork-2 |
Add an entry to the /etc/vfstab file on phys-newyork-1.
phys-newyork-1# /dev/vx/dsk/dg1/vol1 /dev/vx/rdsk/dg1/vol1 \ /mounts/sample ufs 2 no logging |
Create a mount directory on newyork.
phys-newyork-1# mkdir -p /mounts/sample phys-newyork-2# mkdir -p /mounts/sample |
Create an application resource group, apprg1, by using the scrgadm command.
phys-newyork-1# scrgadm -a -g apprg1 |
Create the HAStoragePlus resource in apprg1.
phys-newyork-1# scrgadm -a -j rs-hasp -g apprg1 -t SUNW.HAStoragePlus \ -x FilesystemMountPoints=/mounts/sample -x AffinityOn=TRUE \ -x GlobalDevicePaths=dg1 \ |
Confirm that the application resource group is correctly configured by bringing it online and taking it offline again.
phys-newyork-1# scswitch -Z -g apprg1 phs-newyork-1# scswitch -F -g apprg1 |
Unmount the file system.
phys-newyork-1# umount /mounts/sample |
Take the Sun Cluster device group offline.
phys-newyork-1# scswitch -F -D dg1 |
Verify that the VERITAS Volume Manager disk group was deported.
phys-newyork-1# vxdg list |
Reestablish the EMC Symmetrix Remote Data Facility pair.
phys-newyork-1# symrdf -g devgroup1 -noprompt establish |
Initial configuration on the secondary cluster is now complete.
This task copies the volume manager configuration from the primary cluster, cluster-paris, to LUNs of the secondary cluster, cluster-newyork, by using the VERITAS Volume Manager commands vxdiskadm and vxassist command.
The device group, devgroup1, must be in the Split state throughout this procedure.
Confirm that the pair is in the Split state.
phys-newyork-1# symrdf -g devgroup1 query Source (R1) View Target (R2) View MODES -------------------------------- ------------------------ ----- ------------ ST LI ST Standard A N A Logical T R1 Inv R2 Inv K T R1 Inv R2 Inv RDF Pair Device Dev E Tracks Tracks S Dev E Tracks Tracks MDA STATE -------------------------------- -- ------------------------ ----- ------------ DEV001 00EC RW 0 0 NR 00EC RW 0 0 S.. Split DEV002 00ED RW 0 0 NR 00ED RW 0 0 S.. Split |
Import the VERITAS Volume Manager disk group.
phys-newyork-1# vxdg -C import dg1 |
Verify that the VERITAS Volume Manager disk group was successfully imported.
phys-newyork-1# vxdg list |
Enable the VERITAS Volume Manager volume.
phys-newyork-1# /usr/sbin/vxrecover -g dg1 -s -b |
Verify that the VERITAS Volume Manager volumes are recognized and enabled.
phys-newyork-1# vxprint |
Register the VERITAS Volume Manager disk group, dg1, in Sun Cluster software.
phys-newyork-1# scconf -a -D type=vxvm, name=dg1, \ nodelist=phys-newyork-1:phys-newyork-2 |
Create a VERITAS Volume Manager volume.
Synchronize the VERITAS Volume Manager information with the Sun Cluster device group and verify the output.
phys-newyork-1# scconf -c -D name=dg1, sync phys-newyork-1# scstat -D |
Create a mount directory on phys-newyork-1.
phys-newyork-1# mkdir -p /mounts/sample |
Create an application resource group, apprg1 by using the scrgadm command.
phys-newyork-1# scrgadm -a -g apprg1 |
Create the HAStoragePlus resource in apprg1.
phys-newyork-1# scrgadm -a -j rs-hasp -g apprg1 -t SUNW.HAStoragePlus \ -x FilesystemMountPoints=/mounts/sample -x AffinityOn=TRUE \ -x GlobalDevicePaths=dg1 |
If necessary, confirm that the application resource group is correctly configured by bringing it online and taking it offline again.
phys-newyork-1# scswitch -z -g apprg1 -h phys-newyork-1 phs-newyork-1# scswitch -F -g apprg1 |
Unmount the file system.
phys-newyork-1# umount /mounts/sample |
Take the Sun Cluster device group offline.
phys-newyork-1# scswitch -F -D dg1 |
Verify that the VERITAS Volume Manager disk group was deported.
phys-newyork-1# vxdg list |