Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Building an HA Cluster Configuration
Preparing Your Systems
Chapter 5 163
NOTE fdisk may not be available for SUSE on all platforms. In this case, using
YAST2 to set up the partitions is acceptable.
Enabling VG Activation Protection
Follow these steps to enable activation protection for volume groups on
Red Hat and SUSE systems:
NOTE Perform these steps on each node.
Step 1. Edit /etc/lvm/lvm.conf and add the following line:
tags { hosttags = 1 }
Step 2. Create the file /etc/lvm/lvm_$(uname -n).conf
Step 3. Add the following line to the file you created in step 2:
activation { volume_list=[“@node”] }
where node is the value of uname -n.
Step 4. Run vgscan:
vgscan
NOTE At this point, the setup for VG activation protection is complete. As of
Serviceguard for Linux A.11.16.07, the package control script adds a tag
matching the value of node (as specified in step 3 above) when it
activates the volume group, and deletes the tag when it deactivates it,
preventing the volume group from being activated by more than one
node at the same time. The purpose of the steps that follow is to verify
that the setup has been done correctly.
Step 5. Add the tag and verify that it’s valid, and that the volume group
activates as expected, for example:
vgchange --addtag $(uname -n) vgpkgA