Creating Zone Cluster inside Sun cluster

Today I created zone cluster in Sun cluster. To configure zone cluster we need to have cluster configured in Global zone. In my previous post(https://ervikrant06.wordpress.com/2014/08/07/how-to-configure-resource-in-sun-cluster/) I have already configured Sun Cluster and added the resource in cluster to verify the functionality of cluster.

Step 1 : Creating zpool on disk which is present on Node SolNode1. We need to do this on both nodes. Means this is not shared disk. It needs to be presented to each node.

Note: This is not shared Disk.

SolNode1:> zpool create zonepool1 c2t2d0

Step 2 : We need to configure the zone cluster using below command. Pool created in previous steps is used as root for zone. Need to do it on one node only.

SolNode1:> clzc configure ZC1
ZC1: No such zone cluster configured
Use ‘create’ to begin configuring a new zone cluster.
clzc:ZC1> create
clzc:ZC1> set zonepath=/zonepool1/ZC1
clzc:ZC1> set autoboot=true
clzc:ZC1> add node
clzc:ZC1:node> set physical-host=SolNode1
clzc:ZC1:node> set hostname=node1zone1
clzc:ZC1:node> add net
clzc:ZC1:node:net> set address=192.168.56.20
clzc:ZC1:node:net> set physical=e1000g3
clzc:ZC1:node:net> end
clzc:ZC1:node> end
clzc:ZC1> add node
clzc:ZC1:node> set physical-host=SolNode2
clzc:ZC1:node> set hostname=node2zone1
clzc:ZC1:node> add net
clzc:ZC1:node:net> set address=192.168.56.21
clzc:ZC1:node:net> set physical=e1000g3
clzc:ZC1:node:net> end
clzc:ZC1:node> end
clzc:ZC1> add sysid
clzc:ZC1:sysid> set root_password=0vcY0fwbKta2U
clzc:ZC1:sysid> end
clzc:ZC1> verify
clzc:ZC1> commit
clzc:ZC1> exit

Step 3 : After the configuration is completed we need to start the installation of zone cluster. I have created the sparse zone. Need to do it on one node only.

SolNode1:> clzc install ZC1
Waiting for zone install commands to complete on all the nodes of the zone clust er “ZC1″…

Step 4: After the completion of command in Step 3. We can check the status of zone cluster on both nodes.

SolNode2:> clzc status

=== Zone Clusters ===

— Zone Cluster Status —

Name Node Name Zone Host Name Status Zone Status
—- ——— ————– —— ———–
ZC1 SolNode1 node1zone1 Offline Incomplete
SolNode2 node2zone1 Offline Incomplete

Step 5: Now tried to boot the zone cluster. Need to do it on one node only.

SolNode1:> clzc boot ZC1
Waiting for zone boot commands to complete on all the nodes of the zone cluster “ZC1″…

SolNode2:> clzc status

=== Zone Clusters ===

— Zone Cluster Status —

Name Node Name Zone Host Name Status Zone Status
—- ——— ————– —— ———–
ZC1 SolNode1 node1zone1 Offline Running
SolNode2 node2zone1 Offline Running

Step 6 : Zone cluster is in running but status is still offline. To make them online we have to login in each node of cluster and login into console of zonecluster to assign the name to non-global zone which we used in Step 2 during configuration (node1zone1 and node2zone1)

SolNode1:> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 ZC1 running /zonepool1/ZC1 cluster shared

SolNode1:> zlogin -C ZC1
from each node to configure the hostname of zones.

After that the zones will come into running state.

Step 7 : Current status is online and running which is as expected 🙂

SolNode1:> clzc status

=== Zone Clusters ===

— Zone Cluster Status —

Name Node Name Zone Host Name Status Zone Status
—- ——— ————– —— ———–
ZC1 SolNode1 node1zone1 Online Running
SolNode2 node2zone1 Online Running

Step 8 : To verify the configuration I went to each node of cluster and login using name of zone cluster and checked the name of non-global zone.

SolNode1:> zlogin ZC1
[Connected to zone ‘ZC1’ pts/3]
Last login: Tue Aug 5 17:49:40 on pts/2
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# uname -a
SunOS node1zone1 5.10 Generic_147148-26 i86pc i386 i86pc

SolNode2:> zlogin ZC1
[Connected to zone ‘ZC1’ pts/3]
Last login: Tue Aug 5 19:36:23 on pts/3
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# uname -a
SunOS node2zone1 5.10 Generic_147148-26 i86pc i386 i86pc

In next post I am adding resource to zone cluster.

Leave a comment