Sun Cluster Data Service for Solaris Containers Guide

Patching the Global Zone and Local Zones

The procedures that follow are required only if you are applying the patch to the global zone and to local zones. If you are applying a patch to only the global zone, follow the instructions in Chapter 8, Patching Sun Cluster Software and Firmware, in Sun Cluster System Administration Guide for Solaris OS.

Before you begin, consult the patch README file to determine whether the patch is a nonrebooting patch or a rebooting patch.

ProcedureHow to Apply a Non Rebooting Patch to the Global Zone and Local Zones

A nonrebooting patch does not require you to reboot a node after you apply the patch on the node. You can apply the patch to a live system.

Steps
  1. From one node, disable monitoring of every resource in the resource group that contains the zone resource.


    # scswitch -n -M -j resource-list
    
  2. On each node where the zone is not booted, comment out the entry for the zone in the /etc/zones/index file.

    To comment out an entry, add the # character to the start of the line that contains the entry.

  3. Apply the patch on all nodes where the zone is configured.

  4. Remove the comment from each entry that you edited in Step 2.

  5. Enable monitoring of the resources for which you disabled monitoring in Step 1.


    # scswitch -e -M -j resource-list
    

ProcedureHow to Apply a Rebooting Patch to the Global Zone and Local Zones

A rebooting patches requires you to reboot a node after you apply the patch to the node.

Steps
  1. Disable the resources that depend on the zones to which you are applying the patch.


    # scswitch -n -j zdepend-rs-list
    
  2. Disable monitoring of the zone resource.


    # scswitch -n -M -j zone-rs
    
  3. Bring the resource groups that contain zone resources online on a node.


    # scswitch -z -g zone-rg -h node
    
  4. On each node where the zone is not booted, comment out the entry for the zone in the /etc/zones/index file.

    To comment out an entry, add the # character to the start of the line that contains the entry.

  5. For each node where the zone is not booted, perform the following sequence of operations:

    1. Apply the patch.

    2. Reboot the node.

  6. Apply the patch on the node where the zone is booted.

  7. Remove the comment from each entry that you edited in Step 4.

  8. Enable monitoring of the resource for which you disabled monitoring in Step 2.


    # scswitch -e -M -j zone-rs
    
  9. Reboot the node where the zone is booted.

  10. Enable the resources that you disabled in Step 1.


    # scswitch -e -j zdepend-rs-list
    
Next Steps

To verify that the patch is correctly applied, switch each resource group that contains zone resources to each node in the resource group's node list. To switch a resource group to another node, type the command:

scswitch -z -g zone-rg -h node