Managing HP Serviceguard A.11.20.10 for Linux, December 2012

NOTE: Use 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.
2. To get the node ftsys10 to see the new disk partitioning that was done on ftsys9, reboot:
reboot
The partition table on the rebooted node is then rebuilt using the information placed on the
disks when they were partitioned on the other node.
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
5.1.12.7 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
5.1 Preparing Your Systems 145