Sun Cluster Data Service for Solaris Containers Guide

ProcedureHow to Install and Configure a Zone


Note –

For complete information about installing a zone refer to System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.


Before You Begin

Determine the following requirements for the deployment of the zone with Sun Cluster:

Steps
  1. Install the zone.


    Note –

    If the zone that you are installing is to become a failover zone, the zone's zone path must specify a highly available local file system. The file system must be managed by the SUNW.HAStoragePlus resource that you created in Step 3.


  2. Log in to the zone's console.


    # zlogin -C zone
    

    You are prompted to configure the zone.

  3. Follow the prompts to configure the zone.

    After you configure the zone has been created, an entry will exist in the /etc/zones/index file.

  4. Disconnect from the zone`s console.

    Use the escape sequence that you defined for the zone. If you did not define an escape sequence, use the default escape sequence as follows:


    # ~. 
    
  5. Determine the new zone's index entry by listing the contents of the /etc/zones/index.

    You need the new zone's index entry for How to Enable a Zone to Run in a Failover Configuration


    # cat /etc/zones/index
    
  6. Make the zone available to all nodes in the cluster.

    Perform the following steps on each cluster node.

    1. Log in to each cluster node.

    2. To prevent a loss of data, create a backup copy of the /etc/zones/index file.


      # cd /etc/zones 
      # cp index index_backup 
      
    3. Using a plain text editor, add the entry for the zone to the/etc/zones/index file on the node.

    4. Copy the zone.xml file to the /etc/zones/index directory on the node.


      # rcp  zone-install-node:/etc/zones/zonexml .