Apply the patch to one node in the cluster at a time to keep the cluster itself operational during the patch process. With this procedure, you must first shut down the node and boot it to single-user mode before applying the patch.
Before applying the patch, check the Sun Cluster product web page for any special pre- or post-installation instructions.
Become superuser on the node to which you are applying the patch.
List the resource groups and device groups on the node being patched.
# scrgadm -pv # scstat |
Switch all resource groups, resources, and device groups from the node being patched to other cluster members.
# scswitch -S -h node |
Specifies the node to switch resource and devices groups to.
Evacuates all device services and resource groups from the specified node.
Shut down the node.
# shutdown -g 0 [-y] |
Specifies to shut down grace period to be zero.
Specifies to answer yes to the confirmation prompt, so the command can be run without user intervention.
Boot the node in single-user mode.
ok boot -s |
Apply the patch.
# patchadd patch-dir patch-id |
Specifies the directory location of the patch.
Specifies the patch number of a given patch.
Reboot the node into the cluster.
# reboot |
Verify that the patch has been installed successfully.
# showrev -p | grep patch-id |
Verify that the patch works, and that the node and cluster are operating normally.
Switch back all resource groups, resources, and device groups (optional).
# scswitch -S -h node |
Repeat Step 2 through Step 11 for all remaining cluster nodes.
The following example shows the application of a rebooting Sun Cluster patch to a node.
# scrgadm -pv ... RG Name: schost-sa-1 ... # scstat ... Device Group Name: dg-schost-1 ... # scswitch -z -h phys-schost-2 -D dg-schost-1 # scswitch -z -h phys-schost-2 -g schost-sa-1 # shutdown -g 0 -y ... ok boot -s ... # patchadd 10-34567 ... # reboot ... # showrev -p | grep 10-34567 # scswitch -z -h phys-schost-1 -D dg-schost-1 # scswitch -z -h phys-schost-1 -g schost-sa-1 |
If you need to back out a patch, see "7.2.4 How to Remove a Sun Cluster Patch".