Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Building an HA Cluster Configuration
Preparing Your Systems
Chapter 5 169
Step 2. On ftsys10, activate the volume group, mount the file system, write a
datestamp on to the shared file, and then look at the content of the file:
vgchange --addtag $(uname -n) vgpkgB
vgchange -a y vgpkgB
mount /dev/vgpkgB/lvol1 /extra
echo ‘Written by’ ‘hostname‘ ‘on’ ‘date‘ >>
/extra/datestamp
cat /extra/datestamp
You should see something like the following, including the datestamp
written by the other node:
Written by ftsys9.mydomain on Mon Jan 22 14:23:44 PST 2006
Written by ftsys10.mydomain on Mon Jan 22 14:25:27 PST 2006
Now unmount the volume group again, and remove the tag you added in
step 1:
umount /extra
vgchange -a n vgpkgB
vgchange --deltag $(uname -n) vgpkgB
NOTE The VG activation protection feature of Serviceguard for Linux requires
that you add the tag as shown at the beginning of the above steps when
you manually activate a volume group. Similarly, you must remove the
tag when you deactivate a volume group that will be used in a package
(as shown at the end of each step). As of Serviceguard for Linux
A.11.16.07, a tag matching the uname -n value of the owning node is
automatically added to each volume group defined in a package control
script when the package runs; the tag is deleted when the package is
halted. The command vgs -o +tags vgname will display any tags that
are set for a volume group.