Managing HP Serviceguard for Linux Ninth Edition, April 2009

Preventing Boot-Time vgscan and Ensuring Serviceguard Volume Groups Are Deactivated
By default, Linux will perform LVM startup actions whenever the system is rebooted.
These include a vgscan (on some Linux distributions) and volume group activation.
This can cause problems for volumes used in a Serviceguard environment (for example,
a volume group for a Serviceguard package that is not currently running may be
activated). To prevent such problems, proceed as follows on the various Linux versions.
NOTE: You do not need to perform these actions if you have implemented
volume-group activation protection as described under “Enabling Volume Group
Activation Protection” (page 163).
SUSE Linux Enterprise Server
Prevent a vgscan at boot time by removing the /etc/rc.d/boot.d/S07boot.lvm
file from all cluster nodes.
NOTE: Be careful if you use YAST or YAST2 to configure volume groups, as that may
cause all volume groups to be activated. After running YAST or YAST2, check that
volume groups for Serviceguard packages not currently running have not been activated,
and use LVM commands to deactivate any that have. For example, use the command
vgchange -a n /dev/sgvg00 to deactivate the volume group sgvg00.
Red Hat
It is not necessary to prevent vgscan on Red Hat.
To deactivate any volume groups that will be under Serviceguard control, add
vgchange commands to the end of /etc/rc.d/rc.sysinit; for example, if volume
groups sgvg00 and sgvg01 are under Serviceguard control, add the following lines
to the end of the file:
vgchange -a n /dev/sgvg00
vgchange -a n /dev/sgvg01
The vgchange commands activate the volume groups temporarily, then deactivate
them; this is expected behavior.
Setting up Disk Monitoring
HP Serviceguard for Linux includes a Disk Monitor which you can use to detect
problems in disk connectivity. This lets you fail a package over from one node to another
in the event of a disk link failure.
See “Creating a Disk Monitor Configuration” (page 220) for instructions on configuring
disk monitoring.
170 Building an HA Cluster Configuration