VCS configuration with Solaris 11 zfs and zones.:
Zpool create spoo c2t2d0
2: create Zfs filesystem:
Zfs create spoo/mnt
3: create sparsh Zone:
Zoncfg –z testzone
testZone> create
testZone >zonepath=/spoo/mnt/testzonetestZone >set ip-type=shared
testZone >remove anet
testZone >add net
testZone:net>set ip-address=192.168.0.200
testZone:net> set onfigure-allowed-address= false
testZone:net> set physical= net0
testZone:net> set defrouter= 192.168.0.1
testzone:net>end
testzone>set pool=default_pool
testzone>verify
testzone>commit
exit
4:On Solaris-3 #pooladm –e
Solaris3#zoneadm –z
testzone boot
Solaris3#zoneadm –z testzone boot
And configure zone console
5:After that configure VCS with the below command:
hagrp -add testgrp
hagrp -modify testgrp SystemList solaris-3 0 solaris-4 1hagrp -modify testgrp AutoStartList solaris-3
hagrp -modify testgrp Parallel 0
hares -add vcspool Zpool testgrp
hares -modify vcspool Critical 1
hares -modify vcspool ChkZFSMounts 1
hares -modify vcspool FailMode continue
hares -modify vcspool ForceOpt 1
hares -modify vcspool ForceRecoverOpt 0
hares -modify vcspool PoolName spoo
hares -modify vcspool AltRootPath /
hares -modify vcspool ZoneResName vcszone
hares -modify vcspool DeviceDir -delete -keys
hares -modify vcspool Enabled 1
hazonesetup -g testgrp -r vcszone -z testzone -p abc123 -a -s solaris-3,solaris-4
haconf -makerw
hares -link vcszone vcspool
haconf –dump makero
6:Now final step copy index and testzone.xml file from
solaris3:/etc/zones and paste in solaris4:/etc/zones
7:
Vi /etc/zones/index and
change state of testzone configured
testzone:configured:/spoo/mnt/testzone:
9:halt testzone on solaris-3 and export spoo
Zoneadm –z testzone halt
Zpool export spoo
10:Now run command:
hagrp –enable testgrp –sys solaris3
No comments:
Post a Comment