Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access XP P9000 for Linux B.01.00.00

1. Create LVM physical volumes on each LUN.
# pvcreate -f /dev/sda
2. Create the volume group on the source volume.
# vgcreate --addtag $(uname -n) /dev/<vgname> /dev/sda
3. Create the logical volume. (XXXX indicates size in MB).
# lvcreate -L XXXX /dev/<vgname>
4. Create a file system on the logical volume.
# mke2fs -j /dev/<vgname>/lvol1
5. If required, deactivate the Volume Groups on the primary system and remove the tag.
# vgchange -a n <vgname>
# vgchange --deltag $(uname -n) <vgname>
6. Run the vgscan command on all the nodes to make the LVM configuration visible and to
create the LVM database.
# vgscan
7. On the source disk site, run the following commands on all the systems that might run the
Serviceguard package. If required, take a back up of a LVM configuration.
# vgchange --addtag $(uname -n) <vgname>
# vgchange -a y <vgname>
# vgcfgbackup <vgname>
# vgchange -a n <vgname>
# vgchange --deltag $(uname -n) <vgname>
8. On the target disk site, run the following commands on all the systems that might run the
Serviceguard package. If required, take a back up of a LVM configuration.
# pairsplit -g <device_group> -rw
# vgchange --addtag $(uname -n) <vgname>
# vgchange -a y <vgname>
# vgcfgbackup <vgname>
# vgchange -a n <vgname>
# vgchange --deltag $(uname -n) <vgname>
# pairresync -g <device_group> -c 15
The pairsplit command suspends the replication. if you do not want to suspend the replication
at this point of time, then skip step 8. However, this will not activate the volume group to perform
the vgcfgbackup. Perform the vgcfgbackup when the volume group is activated during the
first package startup at the target disk site.
When using the pairresync command to resynchronize PVOL/SVOL Continuous Access pairs,
specify the -c 15 switch to ensure the fastest resynchronization which reduces the vulnerability
of a rolling disaster.
Installing and configuring an application
The disks where the application binaries and configuration files reside must not be replicated. Only
the disks where application data resides must be replicated. The following section describes how
to configure a package for the application.
20 Configuring an application in a Metrocluster environment