HP Serviceguard Metrocluster with EMC SRDF for Linux B.01.00.00

Configuring volume groups
Configuring LVM volume group
LVM storage can be used in the disaster recovery clusters. The following procedure explains setting
up the LVM volume group. Before you create volume groups, you must enable activation protection
for logical volume groups, preventing the volume group from being activated by more than one
node at the same time. For more information on enabling activation protection for logical volume
groups, see Managing HP Serviceguard A.11.20 for Linux available at http://www.hp.com/go/
linux-serviceguard-docs.
Procedure 1 Creating LVM volume groups
To create volume groups, do the following:
1. Create LVM physical volumes on each LUN.
For Example:
# pvcreate -f /dev/sda1
2. Create the volume group on the source volume.
# vgcreate --addtag $(uname -n) /dev/<vgname> /dev/sda1
# vgcreate --addtag $(uname -n) /dev/<vgname>
3. Create the logical volume.
# lvcreate -L XXXX /dev/<vgname>
NOTE: Here, XXXX indicates size in MB.
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 to make the LVM configuration visible on all the nodes.
# vgscan
7. On the source disk, run the following commands on all the other systems that might run the
Serviceguard package, and backup the LVM configuration.
# vgchange --addtag $(uname -n) <vgname>
# vgchange -a y <vgname>
# vgcfgbackup <vgname>
# vgchange -a n <vgname>
# vgchange --deltag $(uname -n) <vgname>
NOTE: If you do not want to suspend replication at this point of time, skip the steps 8, 9
and 10. 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.
8. Split the SRDF logical links.
#symrdf -g <dgname> split -v
9. On the target disk site (node 3 and node 4), run the following commands on all the systems
that might run the Serviceguard package, and backup the LVM configuration.
# vgchange --addtag $(uname -n) <vgname>
24 Configuring an application in a Metrocluster solution