When a HAStoragePlus resource is configured for cluster file systems and brought online, it ensures that these file systems are available. The cluster file system is supported on Unix File System (UFS) and Veritas File System (VxFS). Use HAStoragePlus with local file systems if the data service is I/O intensive. See How to Change the Global File System to Local File System in a HAStoragePlus Resource for information on how to change the file system of an HAStoragePlus resource.
The following examples show entries in the /etc/vfstab file for global devices that are to be used for cluster file systems.
The entries in the /etc/vfstab file for cluster file systems should contain the globalkeyword in the mount options.
This example shows entries in the /etc/vfstab file for a global device that uses Solaris Volume Manager.
/dev/md/kappa-1/dsk/d0 /dev/md/kappa-1/rdsk/d0 /global/local-fs/nfs ufs 5 yes logging,global
This example shows entries in the /etc/vfstab file for a global device that uses VxVM.
/dev/vx/dsk/kappa-1/appvol /dev/vx/rdsk/kappa-1/appvol /global/local-fs/nfs vxfs 5 yes log,global
On any node in the cluster, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Create a failover resource group.
# clresourcegroup create resource-group-1
Register the HAStoragePlus resource type.
# clresourcetype register SUNW.HAStoragePlus
Create the HAStoragePlus resource and define the filesystem mount points.
# clresource create -g resource-group -t SUNW.HAStoragePlus \ -p FileSystemMountPoints="mount-point-list" hasp-resource
The resource is created in the enabled state.
Add the data service resources to resource-group-1, and set their dependency to hasp-resource.
Bring online and in a managed state the resource group that contains the HAStoragePlus resource.
# clresourcegroup online -M resource-group-1
Disable and delete the HAStoragePlus resource configured for cluster file systems.
# clresource delete -F -g resource-group -t SUNW.HAStoragePlus resource