Adding Resource to zone cluster

In my previous post https://ervikrant06.wordpress.com/2014/08/08/creating-zone-cluster-inside-sun-cluster/, I have configured the zone cluster. Now time has come to add the resource in cluster to verify the status of zone cluster.

Step 1 : I have create pool on shared storage (Shared b/w SolNode1 and SolNode2) and sharing that pool in cluster zone as resource to check the fail over operation whether its working fine. Need to be done on one node only.

SolNode2:> zpool create zoneSHpool1 c2t3d0

Step 2 : Added a dataset zoneSHpool1  as resource in zonecluster configuration.  Need do it on one node only.

clzc configure ZC1
clzc:ZC1> add dataset
clzc:ZC1:dataset> set name=zoneSHpool1
clzc:ZC1:dataset> end
clzc:ZC1> verify
clzc:ZC1> commit
clzc:ZC1> exit

Step 3 : Adding a resource group in zone cluster. Need to do it on one node only.

SolNode2:> clrg create -Z ZC1 -n node1zone1,node2zone1 zoneRG1

Step 4 : Adding a resource to zone cluster. Need to do it on one node only.

SolNode2:> clrs create -g zoneRG1 -t SUNW.HAStoragePlus -p zpools=zoneSHpool1 -Z ZC1 zoneRS1

Step 5 : After adding the resource we can check the status. Its showing in offline. Lets bring it in manage and online state.

SolNode2:> clrs status -Z ZC1

=== Cluster Resources ===

Resource Name Node Name State Status Message
————- ——— —– ————–
zoneRS1 node1zone1 Offline Offline
node2zone1 Offline Offline

SolNode2:> clrg manage -Z ZC1 zoneRG1

SolNode2:> clrg online -Z ZC1 zoneRG1

SolNode2:> clrg status -Z ZC1

=== Cluster Resource Groups ===

Group Name Node Name Suspended Status
———- ——— ——— ——
ZC1:zoneRG1 node1zone1 No Online
node2zone1 No Offline

SolNode2:> clrs status -Z ZC1

=== Cluster Resources ===

Resource Name Node Name State Status Message
————- ——— —– ————–
zoneRS1 node1zone1 Online Online
node2zone1 Offline Offline

Step 6 : After that I rebooted the zone cluster to reflect the changes inside the zones. Need to do it on one node only.

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

Step 7 : Login into cluster zone to check the status of assigned pool.

SolNode2:> zlogin ZC1
[Connected to zone ‘ZC1’ pts/2]
Last login: Wed Aug 6 14:55:57 on pts/2
Oracle Corporation SunOS 5.10 Generic Patch January 2005

# uname -a
SunOS node2zone1 5.10 Generic_147148-26 i86pc i386 i86pc

# zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
zoneSHpool1 1008M 120K 1008M 0% ONLINE /zonepool1/ZC1/root

 Once again now current status at Global zone level.

SolNode2:> clrs status -Z ZC1

=== Cluster Resources ===

Resource Name Node Name State Status Message
————- ——— —– ————–
zoneRS1 node1zone1 Offline Offline
node2zone1 Online Online

Step 8 : I issued poweroff command by logging into zone to check whether fail over is occurring successfully or not.

After that status of resource in zone cluster become as below.

SolNode2:> clrs status -Z ZC1

=== Cluster Resources ===

Resource Name Node Name State Status Message
————- ——— —– ————–
zoneRS1 node1zone1 Online Online
node2zone1 Offline Offline

Went to another node SolNode1 to check the status whether shared pool came into this node or not.

SolNode1:> zlogin ZC1
[Connected to zone ‘ZC1’ pts/2]
Last login: Wed Aug 6 15:13:26 on pts/2
Oracle Corporation SunOS 5.10 Generic Patch January 2005

# df -h /zoneSHpool1
Filesystem size used avail capacity Mounted on
zoneSHpool1 976M 31K 976M 1% /zoneSHpool1

Current zone cluster status.Now I can power on the non-global zone on SolNode2. Because our verification was successful 🙂

SolNode1:> clzc status

=== Zone Clusters ===

— Zone Cluster Status —

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

Step 9 : Bringing back the zone on SolNode2 up using below command.

SolNode2:> clzc boot ZC1

SolNode2:> zlogin ZC1
[Connected to zone ‘ZC1’ pts/2]
Last login: Wed Aug 6 15:10:55 on pts/2
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# uptime
3:16pm up 1 user, load average: 0.66, 0.18, 0.18

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s