Managing HP Serviceguard A.11.20.10 for Linux, December 2012

part of the recovery. Use the $SGCONF/scripts/sg/pr_cleanup script to do this. (The script
is also in $SGCONF/bin/. See “Understanding the Location of Serviceguard Files” (page 129) for
the locations of Serviceguard directories on various Linux distributions.)
Invoke the script as follows, specifying either the device special file (DSF) of a LUN, or a file
containing a list of DSF names:
pr_cleanup lun -v -k <key> [-f <filename_path> | <list of DSFs>]
lun, if used, specifies that a LUN, rather than a volume group, is to be operated on.
-v, if used, specifies verbose output detailing the actions the script performs and their status.
-k <key>, if used, specifies the key to be used in the clear operation.
-f <filename_path>, if used, specifies that the name of the DSFs to be operated on are
listed in the file specified by <filename_path>. Each DSF must be listed on a separate line.
<list of DSFs> specifies one or more DSFs on the command line, if -f
<filename_path> is not used.
8.4.1 Examples
The following command will clear all the PR reservations registered with the key abc12 on the set
of LUNs listed in the file /tmp/pr_device_list
pr_cleanup -k abc12 lun -f /tmp/pr_device_list
pr_device_list contains entries such as the following:
/dev/sdb1
/dev/sdb2
Alternatively you could enter the device-file names on the command line:
pr_cleanup -k abc12 lun /dev/sdb1 /dev/sdb2
The next command clears all the PR reservations registered with the PR key abcde on the underlying
LUNs of the volume group vg01:
pr_cleanup -k abcde vg01
NOTE: Because the keyword lun is not included, the device is assumed to be a volume group.
8.5 Replacing LAN Cards
If you need to replace a LAN card, use the following steps. It is not necessary to bring the cluster
down to do this.
1. Halt the node using the cmhaltnode command.
2. Shut down the system:
shutdown -h
Then power off the system.
3. Remove the defective LAN card.
4. Install the new LAN card. The new card must be exactly the same card type, and it must be
installed in the same slot as the card you removed.
5. Power up the system.
6. As the system comes up, the kudzu program on Red Hat systems will detect and report the
hardware changes. Accept the changes and add any information needed for the new LAN
card. On SUSE systems, run YAST2 after the system boots and make adjustments to the NIC
setting of the new LAN card. If the old LAN card was part of a “bond”, the new LAN card
needs to be made part of the bond. See “Implementing Channel Bonding (Red Hat)” (page 134)
or “Implementing Channel Bonding (SUSE)” (page 136).
244 Troubleshooting Your Cluster