Saturday, January 16, 2016

How to add New zpool in to sun cluster with Hastorageplus


How to add New zpool  in to sun cluster  with Hastorageplus    
# cldev list -v d5
DID Device Full Device Path
———- —————-
d5 nodo2:/dev/rdsk/c2t600144F04CC554A100000C29A5674000d0
d5 nodo1:/dev/rdsk/c2t600144F04CC554A100000C29A5674000d0
   
creation of zpool zonepool
zpool create zonepool c2t600144F04CC554A100000C29A5674000d0
 i want see some flag before clustering. One of them is cachefile
# zpool get all zonepool | grep cachefile
NAME PROPERTY VALUE SOURCE
zonepool cachefile – default
i change dataset’s mountpoint:
# zfs set mountpoint=/zone1 zonepool
Creation of resource group zone-rg
clrg create test-rg
 Creation of resource zone-hast
 clrs create -g test-rg -t HAStoragePlus -p Zpools=zonepool zone-hast
After step 6 i check cachefile flag and i can clearly see that it was changed in:
cachefile /var/cluster/run/HAStoragePlus/zfs/zonepool.cachefile local
8) resource group is online and managed :)

# clrg online -M zone-rg

No comments:

Post a Comment