This article described how to install and configure a two-node cluster with Oracle Solaris Cluster 4.0 on Oracle Solaris 11.Following figures is my virtual machine's configuration:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第1张图片Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第2张图片

Oracle Solaris Cluster 4.0  software Installation:

Before installation,download osc4.0-repo-full.iso file from  here and use it to setup a publisher.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第3张图片

The following table lists the primary group packages for the Oracle Solaris Cluster 4.0 software and the principal features that each group package contains. You must install at least the ha-cluster-framework-minimal group package.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第4张图片

I installed ha-cluster-full group package on both of nodes.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第5张图片

Ensure that the rpcbind local_only property set to 'false' on both of nodes.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第6张图片

Oracle Solaris Cluster 4.0 Configuration:

Ensure you have enough privilege to use scinstall command.After do that,select ‘1’go next screen.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第7张图片

In below screen,select ‘Create a new cluster’ .

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第8张图片

Answer the question and enter.

If you can't set rpcbind local_only property to “false”you should get some error information in this screen.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第9张图片

Choose which mode you want to use.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第10张图片

Define a Cluster Name.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第11张图片

Define how many nodes belong to this cluster.

Disable DES authentication.

.Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第12张图片

Ensure this cluster use at least two private networks.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第13张图片

Selecting the Transport Adapters.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第14张图片

Accept the default network address and netmask.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第15张图片

Set global fencing by default.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第16张图片

Enable automatic quorum device selection.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第17张图片

After enter,go ahead…

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第18张图片

After creation,check cluster configuration.

check quorum and cluster node:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第19张图片

check quorum device type:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第20张图片

check IPMP:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第21张图片

When the scinstall utility finishes, the installation and configuration of the basic Oracle Solaris Cluster software is complete.Now,thr cluster is ready for you to configure highly available applications.

Configuring Data Service

1.Configuring HA for zfs.

Here i creare a mypool by /dev/did/dsk/d4s2 device.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第22张图片

Following command will be create resource group、register resource type、create reource and bring them online.Ensure that the mypool-lh wrote into /etc/hosts file.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第23张图片

Checking resource group status.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第24张图片

Switching resource group  to another node.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第25张图片

2.Configuring HA for Solaris Containers:

Creating resource group and zonefs pool.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第26张图片

Checking Resource Group status.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第27张图片

Following figture shows zone01's configuration.Setup ip-type is shared,don't enable autoboot.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第28张图片

After created ,check zone information by zoneadm command on both nodes that status is configured.

p_w_picpath

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第29张图片

Before installion, ensure that the Package Repositories was correct on global zone.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第30张图片

Boot zone01 and setup it by console on osc01.After configuration,shutdown it and switch resource group to osc02.You can't boot zone01 on osc02 directly.Before you boot it on osc02,detach zone01 on osc01 and bring uuid into correspondence with osc02.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第31张图片

Unique identifier for a zone, as assigned by libuuid(3LIB).  If  this option is present and the argument is a non-empty string, then the zone  matching  the UUID  is  selected  instead  of  the one named by the –z option, if such a zone is present.If you want,you can use zfs subcommand to check org.opensolaris.libbe:uuid property.
Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第32张图片

Use beadm with H option to check root filesystem's uuid.I installed zone01 on osc01,so i must change uuid on osc02.

p_w_picpath

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第33张图片

If you don't change the uuid,you should get following error when you attach zone01 and boot it on osc02:

p_w_picpath

So,you must keep the uuid was consistent on both of nodes.Following figture show you how to change uuid and attach zone01 on osc02:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第34张图片

After changed,boot zone01 on osc02.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第35张图片

Check status on osc02 and detach it then you can configure solaris containers HA service.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第36张图片

I've already installed date service on both of nodes when i install oracle solaris cluster.Enter /opt/SUNWsczone/sczbt/util directory,do following change:

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第37张图片

Using sczbt_register script to register zone01-rs resource to zone-rg resource group.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第38张图片

Checking resouce status by scstat with g option.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第39张图片

If you setup correctly,you can switch zone-rg service to osc01.

Configuring Oracle Solaris Cluster 4.0 On Solaris 11_第40张图片

Documentation:

1.Oracle Solaris Cluster Product Documentation

2.Oracle Solaris Cluster How-To Guides