HP-UX HB v13.00 Ch-15 - Serviceguard
HP-UX Handbook – Rev 13.00 Page 66 (of 108)
Chapter 15 Serviceguard
October 29, 2013
AUTO_RUN (automatic package switching) will be disabled (important!).
The current node will be disabled from running the package.
Following such a failure, since the control script is terminated, some of the package's resources
may be left activated. Specifically:
Volume groups may be left active.
File systems may still be mounted.
IP addresses may still be installed.
Services may still be running.
In this kind of situation, Serviceguard will not restart the package without manual intervention.
You must clean up manually before restarting the package. Use the following steps as guidelines:
1. Perform application-specific cleanup. Any application-specific actions the control script
might have taken should be undone to ensure successfully starting the package on an
alternate node. This might include such things as shutting down application processes,
removing lock files, and removing temporary files.
2. Ensure that package IP addresses are removed from the system. This step is accomplished
via the cmmodnet(1M) command. First determine which package IP addresses are
installed by inspecting the output resulting from running the command netstat -in. If
any of the IP addresses specified in the package control script appear in the netstat output
under the “Address” column for IPv4 or the “Address/Prefix” column for IPv6, use
cmmodnet to remove them:
# cmmodnet -r -i <ip-address> <subnet> (or ifconfig lanX:Y 0.0.0.0)
where <ip-address> is the address in the “Address” or the “Address/Prefix column and
<subnet> is the corresponding entry in the “Network” column for IPv4, or the prefix
(which can be derived from the IPV6 address) for IPv6.
3. Ensure that package volume groups are deactivated. First unmount any package logical
volumes which are being used for filesystems. This is determined by inspecting the
output resulting from running the command bdf -l. If any package logical volumes, as
specified by the LV[] array variables in the package control script, appear under the
“Filesystem” column, use umount to unmount them:
# fuser -ku <logical-volume>
# umount <logical-volume>
Next, deactivate the package volume groups. These are specified by
the VG[n] array entries in the package control script, or ‘vg’ in the package configuration
file. Identify VGs associates with a modular packages with ‘cmviewcl –v –f line | grep
vg’.
# vgchange -a n <volume-group>
4. Finally, re-enable the package for switching.