Oracle® Solaris Cluster Data Service for Oracle Solaris Zones Guide

Exit Print View

Updated: July 2014, E39657-01
 
 

How to Enable a Zone to Run in a Failover Configuration

Before You Begin

Ensure that the /etc/netmasks file has IP-address subnet and netmask entries for all logical hostnames. If necessary, edit the /etc/netmasks file to add any missing entries.

  1. Register the SUNW.HAStoragePlus resource type.
    # clresourcetype register SUNW.HAStoragePlus
  2. Create a failover resource group.
    # clresourcegroup create solaris-zone-resource-group
  3. Create a resource for the zone`s disk storage.
    • For non-global zones:

      This HAStoragePlus resource is for the zonepath. The file system must be a failover file system.

      # clresource create \
      -g solaris-zone-resource-group \
      -t SUNW.HAStoragePlus \
      -p Zpools=solaris-zone-instance-zpool \
      solaris-zone-has-resource-name

      Note -  This step applies to Oracle Solaris Kernel Zones only if the boot device is pointing to a zvol or if the suspend device is pointing to a path.
    • (OPTIONAL) For kernel zones:
      • Identify the devices to be used as boot storage and suspend storage for the kernel zone.

        node-1# cldev list -v d2
        DID Device     Full Device Path
        d2             node-1:/dev/rdsk/c0t60080E5000184744000005B4513DF1A8d0
        d2             node-2:/dev/rdsk/c0t60080E5000184744000005B4513DF1A8d0
        
        node-1# suriadm lookup-uri /dev/did/dsk/d2
        dev:did/dsk/d2
        
        node-1# cldev list -v d3
        DID Device       Full Device Path
        d3               node-1:/dev/rdsk/c0t60080E5000184744000005B6513DF1B2d0
        d3               node-2:/dev/rdsk/c0t60080E5000184744000005B6513DF1B2d0
        
        node-1# suriadm lookup-uri /dev/did/dsk/d3
        dev:did/dsk/d3
        
        d2 (suri=dev:did/dsk/d2) will be used for the kernel zone rpool as boot device
        
        d3 (suri=dev:did/dsk/d3) will be used as suspend device
      • (OPTIONAL)If you require device monitoring for the storage devices configured to be used by the kernel zone, configure a SUNW.HAStoragePlus resource and specify the corresponding global device group for the did devices identified in the previous step within the GlobalDevicePaths property.

        1. Register the SUNW.HAStoragePlus resource.

          node2# clrs create -t SUNW.HAStoragePlus -g zone-rg \
          -p GlobalDevicePaths=dsk/d2,dsk/d3 ha-zones-hasp-rs
        2. Set the resource name for that SUNW.HAStoragePlus resource within the HAS_RS variable to ensure the required resource dependency gets set up for the sczbt component. For example:

          HAS_RS=ha-zones-hasp-rs
  4. (Optional) Create a resource for the zone's logical hostname.
    # clreslogicalhostname create \
    -g solaris-zone-resource-group \
    -h solaris-zone-logical-hostname \
    solaris-zone-logical-hostname-resource-name
  5. Enable the failover resource group.
    # clresourcegroup online -M solaris-zone-resource-group