Use this procedure to create a replicated ZFS device group that is managed by HAStoragePlus.
To create a ZFS storage pool (zpool) that does not use HAStoragePlus, instead go to How to Configure a Local ZFS Storage Pool Without HAStoragePlus.
Before You Begin
To replicate ZFS, you must create a named device group and list the disks that belong to the zpool. A device can belong to only one device group at a time, so if you already have an Oracle Solaris Cluster device group that contains the device, you must delete the group before you add that device to a new ZFS device group.
The name of the Oracle Solaris Cluster device group that you create (Solaris Volume Manager or raw-disk) must be the same as the name of the replicated device group.
For example, if you have a zpool called mypool that contains two devices /dev/did/dsk/d2 and /dev/did/dsk/d13, you must delete the two default device groups called d2 and d13.
# cldevicegroup offline dsk/d2 dsk/d13 # cldevicegroup delete dsk/d2 dsk/d13
# cldevicegroup create -n pnode1,pnode2 -d d2,d13 -t rawdisk mypool
This action creates a device group called mypool (with the same name as the zpool), which manages the raw devices /dev/did/dsk/d2 and /dev/did/dsk/d13.
# zpool create mypool mirror /dev/did/dsk/d2 /dev/did/dsk/d13
# clresourcegroup create -n pnode1,pnode2 migrate_srdfdg-rg
You created this device in Step 2.
# clresource create -t HAStoragePlus -x globaldevicepaths=mypool \ -g migrate_srdfdg-rg hasp2migrate_mypool
# clresourcegroup create -n pnode1,pnode2 \ -p RG_affinities=+++migrate_srdfdg-rg oracle-rg
Set the resource_dependencies property to the hasp-rs resource that you created in Step 5.
# clresource create -g oracle-rg -t HAStoragePlus -p zpools=mypool \ -p resource_dependencies=hasp2migrate_mypool \ -p ZpoolsSearchDir=/dev/did/dsk hasp2import_mypool