Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Remove a Sun Cluster Patch

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

Steps
  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[,...]
    
    -S

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

    -h node[,...]

    Specifies the nodes from which you are switching the resource groups and device groups.

  4. Shut down the node.


    # shutdown -g0 -y -i0 message
    
    -g0

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

    -y

    Specifies to answer yes to the confirmation prompt.

    -i0

    Specifies init state of 0. Using this option brings down a node to the OpenBoot PROM ok prompt on a SPARC based system or to the Boot Subsystems on an x86 based system.

    message

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

  5. Boot the node in non-cluster, single-user mode.

    • SPARC:


      ok boot -sx
      
    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -sx
      
  6. Remove the patch.


    # patchrm patch-id
    
    patch-id

    Specifies the patch number of a given patch.

  7. Verify that the patch has been removed successfully.


    # showrev -p | grep patch-id
    
  8. Reboot the node.


    # reboot
    
  9. Verify that the node and cluster are operating normally.

  10. Repeat Step 1 through Step 9 for the remaining cluster nodes.

  11. Switch resource groups, resources, and device groups as needed (optional).

    After rebooting all the nodes, the last node rebooted will not have the resource groups and device groups online.


    # scswitch -z -D device-group[,...]  -h node
    # scswitch -z -g resource-group[,...] -h node
    
    -z

    Specifies the change in mastery of a resource group or device group.

    -h node[,...]

    Specifies the nodes to which you are switching the resource groups and device groups.

    -D

    Switches the specified device groups to the nodes identified by the -h option.

    -g

    Switches the specified resource groups to the nodes identified by the -h option. If -h is not specified, the resource groups are taken offline.


Example 8–4 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 -g0 -y -i0 "Rebooting down node for maintenance"
...

Boot the node in non-cluster mode.


...
# patchrm 234567-05
...
# showrev -p | grep 234567-05
...
# reboot
...
# scswitch -z -D dg-schost-1 -h phys-schost-1
# scswitch -z -g schost-sa-1 -h phys-schost-1