Managing HP Serviceguard A.11.20.00 for Linux, June 2012
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.
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.
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 126)
or “Implementing Channel Bonding (SUSE)” (page 128).
7. If necessary, add the node back into the cluster using the cmrunnode command.
(You can omit this step if the node is configured to join the cluster automatically.)
Now Serviceguard will detect that the MAC address (LLA) of the card has changed from the value
stored in the cluster binary configuration file, and it will notify the other nodes in the cluster of the
new MAC address. The cluster will operate normally after this.
228 Troubleshooting Your Cluster