Sun Cluster 3.0 System Administration Guide

7.2.4 How to Remove a Sun Cluster Patch

If necessary, you can back out (remove) a Sun Cluster patch.

  1. Become superuser on the node from which you are removing the patch.

  2. List the resource groups and device groups on the node having the patch removed.


    # scrgadm -pv
    # scstat
    
  3. Switch all resource groups, resources, and device groups from the node having the patch removed 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.

  4. Shut down the node.


    # shutdown [-y] [-g grace-period] ["message"]
    -y

    Specifies to answer yes to the confirmation prompt.

    -g grace-period

    Specifies, in seconds, the amount of time to wait before shutting down. Default grace period is 60 seconds.

    message

    Specifies the warning message to broadcast. Use quotes if message contains multiple words.

  5. Boot the node in non-cluster mode.


    ok boot -x
    
  6. Remove the patch.


    # patchrm patch-id
    
    patch-id

    Specifies the patch number of a given patch.

  7. Reboot the node.


    # reboot
    
  8. Verify that the patch has been removed successfully.


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

  10. Switch back all resource groups, resources, and device groups.


    # scswitch -S -h node
    
  11. Repeat Step 1 through Step 10 for the remaining cluster nodes.

7.2.4.1 Example--Removing a Sun Cluster Patch

The following example shows the removal of a Sun Cluster patch.


# scrgadm -pv
...
RG Name: schost-sa-1
...
# scstat
...
Device Group Name:																		dg-schost-1
...
# scswitch -S -h phys-schost-2
# shutdown -y -g 5 "Rebooting down node for maintenance"
...
ok boot -x
...
# patchrm 10-34567
...
# reboot
...
# pkgchk -v 10-34567
...
# scswitch -S -h phys-schost-1