Perform the following step to create a failover group.
# clresourcegroup create resource-group
Perform the following step to create a scalable group.
# clresourcegroup create -S [-p Maximum_primaries=m] [-p Desired_primaries=n] \ [-n node-zone-list] resource-group
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g resource-group -t SUNW.HAStoragePlus \ -p FileSystemMountPoints="mount-point-list" hasp-resource
The resource is created in the enabled state.
# clresource set -p Resource_dependencies_offline_restart= \ hasp-resource application-resource
# clresourcegroup online -M resource-group
This example shows how to configure the HAStoragePlus resource with a cluster file system /global/ufs in a global cluster for a failover resource group.
phys-schost-1# vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/apachedg/dsk/d0 /dev/md/apachedg/rdsk/d0 /global/ufs ufs 2 yes global, logging # clresourcegroup create hasp-rg # clresourcetype register SUNW.HAStoragePlus # clresource create -g hasp-rg -t SUNW.HAStoragePlus -p \ FileSystemMountPoints=/global/ufs hasp-rs # clresourcegroup online -M hasp-rgExample 2-35 Setting up the HAStoragePlus Resource Type with a Cluster File System in a Zone Cluster
This example shows how to configure the HAStoragePlus resource with a cluster file system /global/ufs in a zone cluster for a scalable resource group. The cluster file system is available for the zone cluster nodes on the mount point /zone/ufs. This example configuration makes the global file system /global/ufs mounted in a global cluster and later loopback mounted on two zone-cluster nodes where the resource group is online.
phys-schost-1# vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/apachedg/dsk/d0 /dev/md/apachedg/rdsk/d0 /global/ufs ufs 2 yes global, logging # clzonecluster configure sczone clzc:sczone> add fs clzc:sczone:fs> set dir=/zone/ufs clzc:sczone:fs> set special=/global/ufs clzc:sczone:fs> set type=lofs clzc:sczone:fs> end clzc:sczone:fs> exit # clresourcegroup create -Z sczone -p desired_primaries=2 -p maximum_primaries=2 hasp-rg # clresourcetype register -Z sczone SUNW.HAStoragePlus # clresource create -Z sczone -g hasp-rg -t SUNW.HAStoragePlus -p FileSystemMountPoints=/zone/ufs hasp-rs # clresourcegroup online -Z sczone -M hasp-rg