How to Create a solaris10 Brand Zone Cluster (CLI)

Perform the following tasks:

  • Ensure that all requirements in Planning the Oracle Solaris Cluster Environment are met.

  • Select a zone image to migrate or install. The archive types that are supported for installing a zone cluster are the following:

    • Native brand zone on an Oracle Solaris10 system.

    • Cluster brand zone on an Oracle Solaris Cluster node with proper patch level, archive derived from a physical system installed with Oracle Solaris 10 software.

    • solaris10 brand zone archive derived from an installed solaris10 brand zone.

    • An Oracle Solaris 10 physical system.

    • An Oracle Solaris 10 physical cluster node.

For more information about solaris10 brand zones, see Creating and Using Oracle Solaris 10 Zones.

The solaris10 brand zone cluster provides a virtualized Oracle Solaris 10 cluster environment in an Oracle Solaris 11 configuration. You can use the solaris10 brand zone cluster to run or migrate cluster applications that are deployed on the Oracle Solaris 10 operating system, without any modification to the application.

  1. Assume the root role on an active member node of a global cluster.

    Perform all steps of this procedure from a node of the global cluster.

  2. Create an archive and store it in a shared location.
    # flarcreate -S -n s10-system -L cpio /net/mysharehost/share/s10-system.flar
    
    This archiver format is NOT VALID for flash installation of ZFS root pool.
    
    This format is useful for installing the system image into a zone.
    Reissue command without -L option to produce an archive for root pool install.
    Full Flash
    Checking integrity...
    Integrity OK.
    Running precreation scripts...
    Precreation scripts done.
    Creating the archive...
    6917057 blocks
    Archive creation complete.
    Running postcreation scripts...
    Postcreation scripts done.
    
    Running pre-exit scripts...
    Pre-exit scripts done.

    For more information about creating archives, see Chapter 2, Assessing an Oracle Solaris 10 System and Creating an Archive in Creating and Using Oracle Solaris 10 Zones.

  3. Configure the zone cluster.

    Create and configure the zone cluster on the global cluster, as shown in the following example.

    Note:

    The main difference between the solaris and solaris10 brand zone cluster is setting the brand to solaris10 and adding the sysid configuration.
    # clnode status
    
    === Cluster Nodes ===
    
    --- Node Status ---
    
     Node Name                     Status
    -----------                    ------
    
    phys-host-1                    Online
    
    phys-host-2                    Online 
    
    # cat ./s10-zc.config
    
    create -b
    
    set zonepath=/zones/s10-zc
    
    set brand=solaris10
    
    set autoboot=true
    
    set bootargs="-m verbose"
    
    add attr
    
    set name=cluster
    
    set type=boolean
    
    set value=true
    
    end
    
    add node
    
    set physical-host=phys-host-1
    
    set hostname=zc-host-1
    
    add net
    
    set address=10.134.90.196/24
    
    set physical=sc_ipmp0
    
    end
    
    end
    
    add node
    
    set physical-host=phys-host-2
    
    set hostname=zc-host-2
    
    add net
    
    set address=10.134.90.197/24
    
    set physical=sc_ipmp0
    
    end
    
    end
    
    add sysid
    
    set root_password=N4l3cWQb/s9zY
    
    set name_service="DNS{domain_name=mydomain.com name_server=13.35.24.52,13.35.29.41,14.13.8.13 search=mydomain.com}"
    
    set nfs4_domain=dynamic
    
    set security_policy=NONE
    
    set system_locale=C
    
    set terminal=vt100
    
    set timezone=US/Pacific
    
    end
    
    In the above configuration, the root_password mentioned is solaris.
    
    # clzonecluster configure -f ./s10-zc.config s10-zc
    
    # clzonecluster verify s10-zc
    
    # clzonecluster status s10-zc
    
    === Zone Clusters ===
    
    --- Zone Cluster Status ---
    
    Name         Brand         Node Name         Zone Host Name       Status       Zone Status
    ----         -----         ---------         --------------       ------       -----------
    
    s10-zc       solaris10     phys-host-1        zc-host-1           offline        Configured
    
                               phys-host-2        zc-host-2           offline        Configured
  4. Install the zone image for the zone cluster.

    Use the zone image obtained in Step 3.

    # clzonecluster install -a /net/mysharehost/share/s10-system.flar s10-zc
  5. Install the cluster software.

    Perform this step only if the archive does not contain cluster software in the image.

    1. Boot the zone cluster into Offline/Running mode.
      # clzonecluster boot -o s10-zc
    2. Access the zone on all nodes of zone cluster and make sure that system configuration is complete.
      # zlogin -C s10-zc

      If the configuration is not complete, finish any pending system configuration.

    3. From the global zone, check the zone cluster status.
      # clzonecluster status s10-zc
      
      === Zone Clusters ===
      
      --- Zone Cluster Status ---
      
      Name       Brand         Node Name         Zone Host Name     Status       Zone Status
      ----       -----         ---------         --------------       ------     ----------
      
      s10-zc     solaris10     phys-host-1        zc-host-1         offline      Running
      
                               phys-host-2        zc-host-2         offline      Running
    4. Install the zone cluster software.
      # clzonecluster install-cluster -d /net/mysharehost.com/osc-dir/ \
      
      -p patchdir=/net/mysharehost/osc-dir,patchlistfile=plist-sparc \
      
      -s all s10-zc
      
      -p patchdir
      
      Specifies the location of the patches to be installed along with the cluster software.
      
      patchlistfile
      
      Specifies the file that contains the list of patches to be installed inside the zone cluster along with the cluster software.
      In this example, the contents of the file plist-sparc are as follows:
      
      # cat /net/mysharehost/osc-dir/plist-sparc
      
      145333-15
      
      Note - Both the patchdir and patchlistfile locations must be accessible to all nodes of the cluster.
      
      -s
      
      Specifies the agent packages that should be installed along with core cluster software. In this example, all is specified to install all the agent packages.
  6. Boot the zone cluster.
    1. Reboot the zone cluster to boot the zone into Online/Running mode.

      You might have to wait for some time to get the status to Online/Running.

      # clzonecluster reboot s10-zc
    2. From the global zone, check the zone cluster status.

      The status of zone cluster will now be in Online/Running mode.

      # clzonecluster status s10-zc
       
      === Zone Clusters ===
      
      --- Zone Cluster Status ---
      
      Name         Brand         Node Name         Zone Host Name       Status
      ----         -----         ---------         --------------       ------
      
      s10-zc       solaris10     phys-host-1        zc-host-1           online
      
                                 phys-host-2        zc-host-2           online
  7. Log into the zone.
    # zlogin s10-zc
    
     [Connected to zone 's10-zc' pts/2]
    
    Last login: Mon Nov 5 21:20:31 on pts/2
  8. Verify the status of the zone.
    # /usr/cluster/bin/clnode status 
    
    === Cluster Nodes ===
    
    --- Node Status ---
    
     Node Name                     Status
    
    zc-host-1                      Online
    
    zc-host-2                      Online 

Next Steps

The solaris10 brand zone cluster configuration is now complete. You can now install and bring up any Oracle Solaris 10 applications and make them highly available by creating the necessary resources and resource groups.