X

News, tips, partners, and perspectives for the Oracle Solaris operating system

Solaris Unified Archive Support in Zone Clusters

Krishna Murthy
Senior Manager, Software Development
OSC Blog - GH+clzc.docx

Terry
Fu

terry.fu@oracle.com

Introduction

Oracle Solaris Cluster version 4.2
software provides support for Solaris Unified Archive in configuring
and installing zone clusters. This new feature enables you deploying
a zone cluster with your customized configuration and application
stacks much easier and faster. Now, you can create a unified archive
from a zone with your application stack installed, and then easily
deploy this archive into a zone cluster.

This blog will introduce you how to
create unified archives for zone clusters, configure a zone cluster
from a unified archive and install a zone cluster from a unified
archive.

How to Create
Unified Archives for Zone Clusters

Solaris 11.2 introduced unified archive
which is a new native archive file type. Users create unified
archives from a deployed Solaris instance, and the archive could
include or exclude any zones or zone clusters within the instance.
Unified archives are created through the use of archiveadm(1m)
utility. You can check out the blog
for Unified Archive in Solaris 11.2
for more
information.

There are two types of Solaris Unified
Archives: clone archive and recovery archive. A clone archive created
for a global zone contains, by default, every system present on the
host which includes global zone itself and every non-global zone. A
recovery archive contains a single deployable system which can be the
global zone without any non-global zones, a non-global zone or the
global zone with the existing non-global zones.

Both clone and recovery type of archive
are supported for zone cluster configuration and installation. The
unified archive used for zone cluster can be created from either a
global zone or a non global zone.

How to Configure and
Install a Zone Cluster from Unified Archive

clzonecluster(1cl) utility is used to
configure and install zone clusters. To configure a zone cluster from
unified archive, “-a” option should be used along with
“create” subcommand of “clzonecluster configure”
utility. This option is supported in both interactive mode and
non-interactive mode.

Though
the unified archive contains the configuration for the zone cluster,
you will need to set some properties as needed to valid zone cluster
configuration. When configuring a zone cluster from a unified
archive, you will need to set the new zone path and node scope
properties as the old ones in the unified archive may not be valid
for the destination system. If the unified archive is created from a
non-clustered zone, you need to set the cluster attribute and also
set the enable_priv_net property to true. Moreover, you can also
change any zone property as needed.

You
can use the
info
command in the interactive mode to view the current configuration of
the zone cluster.

The following shows an example of
configuring a zone cluster from a unified archive.

phys-schost-1#
clzonecluster configure sczone
sczone: No such zone cluster configured
Use'create' to begin configuring a new zone cluster.
clzc:sczone> create -a absolute_path_to_archive -z archived_zone_1
clzc:sczone> set zonepath=/zones/sczone
clzc:sczone> info
zonename:sczone
zonepath:/zones/sczone
autoboot:true
hostid:
brand:solaris
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type:exclusive
enable_priv_net:true
attr:
name: cluster
type: boolean
value: true
clzc:sczone> add node
clzc:sczone:node> set physical-host=psoft1
clzc:sczone:node> set hostname=zc-host-1
clzc:sczone:node> add net
clzc:sczone:node:net> set address=vzsoft1a
clzc:sczone:node:net> set physical=sc_ipmp0
clzc:sczone:node:net> end
clzc:sczone:node> end
clzc:sczone> add node
clzc:sczone:node> set physical-host=psoft2
clzc:sczone:node> set hostname=zc-host-2
clzc:sczone:node> add net
clzc:sczone:node:net> set address=vzsoft2a
clzc:sczone:node:net> set physical=sc_ipmp0
clzc:sczone:node:net> end
clzc:sczone:node> end

The
zone cluster is now configured. The following commands installs the
zone cluster from a unified archive on a global-cluster node.

phys-schost-1#
clzonecluster install -a absolute_path_to_archive -z archived-zone
sczone

The
zone cluster is now installed. If the unified archive for the zone
cluster installation was created from a non-clustered zone, you will
need to install the Oracle Solaris Cluster packages on the zone nodes
before forming a zone cluster.

Note,
configuring and installing zone cluster are independent to each
other, so you can use the Solaris Unified Archive feature in either
or both steps. Also, the unified archive used to configure and
install the zone cluster does not have to be the same one.

Next Steps

After configuring and installing the
zone cluster from unified archives, you can now boot the zone
cluster.

If you would like to learn more about
the use of Solaris Unified Archives for configuring and installing
zone clusters in Solaris Cluster 4.2, see clzonecluster(1cl)
and Oracle
Solaris Cluster System Administration Guide
.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha