Sun Cluster 3.0 System Administration Guide

7.2.1 How to Apply a Rebooting Patch (Node)

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.

  1. Before applying the patch, check the Sun Cluster product web page for any special pre- or post-installation instructions.

  2. Become superuser on the node to which you are applying the patch.

  3. List the resource groups and device groups on the node being patched.


    # scrgadm -pv
    # scstat
    
  4. Switch all resource groups, resources, and device groups from the node being patched to other cluster members.


    # scswitch -S -h node 
    
    -h node

    Specifies the node to switch resource and devices groups to.

    -S

    Evacuates all device services and resource groups from the specified node.

  5. Shut down the node.


    # shutdown -g 0 [-y]
    -g 0

    Specifies to shut down grace period to be zero.

    -y

    Specifies to answer yes to the confirmation prompt, so the command can be run without user intervention.

  6. Boot the node in single-user mode.


    ok boot -s
    
  7. Apply the patch.


    # patchadd patch-dir patch-id
    
    patch-dir

    Specifies the directory location of the patch.

    patch-id

    Specifies the patch number of a given patch.

  8. Reboot the node into the cluster.


    # reboot
    
  9. Verify that the patch has been installed successfully.


    # showrev -p | grep patch-id
    
  10. Verify that the patch works, and that the node and cluster are operating normally.

  11. Switch back all resource groups, resources, and device groups (optional).


    # scswitch -S -h node 
    
  12. Repeat Step 2 through Step 11 for all remaining cluster nodes.

7.2.1.1 Example--Applying a Rebooting Patch (Node)

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

7.2.1.2 Where to Go From Here

If you need to back out a patch, see "7.2.4 How to Remove a Sun Cluster Patch".