Managing HP Serviceguard for Linux, Tenth Edition, September 2012

NOTE: You must reboot at this time.
3. Run vgscan to make the LVM configuration visible on the new node and to create
the LVM database on/etc/lvmtab and /etc/lvmtab.d. For example, on
ftsys10:
vgscan
Testing the Shared Configuration
When you have finished the shared volume group configuration, you can test that the
storage is correctly sharable as follows:
1. On ftsys9, activate the volume group, mount the file system that was built on it,
write a file in the shared file system and look at the result:
vgchange --addtag $(uname -n) vgpkgB
NOTE: If you are using the volume-group activation protection feature of
Serviceguard for Linux, you must use vgchange --addtag to add a tag 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).
Use vgchange --addtag and vgchange --deltag only if you are implementing
volume-group activation protection. Remember that volume-group activation
protection, if used, must be implemented on each node.
Serviceguard adds a tag matching the uname -n value of the owning node to each
volume group defined for a package 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.
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, showing the date stamp written by the
other node:
Written by ftsys9.mydomain on Mon Jan 22 14:23:44 PST 2006
Now unmount the volume group again:
umount /extra
vgchange -a n vgpkgB
vgchange --deltag $(uname -n) vgpkgB
Preparing Your Systems 177