The following procedure explains how to set up the HAStoragePlus resource type to make file systems other than ZFS highly available.
This wizard requires that all cluster nodes have the same root password.
# clresourcegroup create resource-group
# clresourcetype register SUNW.HAStoragePlus
# clresource create -g resource-group \ -t SUNW.HAStoragePlus -p FileSystemMountPoints=mount-point-list hasp-resource
# clresourcegroup online -M resource-group
This example assumes that the file system /web-1 is configured to the HAStoragePlus resource to make the file system highly available for the global cluster.
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 /web-1 ufs 2 no logging phys-schost-1# clresourcegroup create hasp-rg phys-schost-1# clresourcetype register SUNW.HAStoragePlus phys-schost-1# clresource create -g hasp-rg -t SUNW.HAStoragePlus -p FileSystemMountPoints=/global/ufs-1 hasp-rs phys-schost-1# clresourcegroup online -M hasp-rgExample 50 Setting Up the HAStoragePlus Resource Type to Make a UFS File System Highly Available for a Zone Cluster
This example assumes that the file system /web-1 is configured to the HAStoragePlus resource to make the file system highly available for a zone cluster called sczone. When a local file system is configured as a highly available local file system for a zone cluster using the SUNW.HAStoragePlus resource type, the HAStoragePlus resource reads the file system information in the zone cluster configuration.
# clzonecluster configure sczone clzc:sczone> add fs clzc:sczone:fs> set dir=/web-1 clzc:sczone:fs> set special=/dev/md/apachedg/dsk/d0 clzc:sczone:fs> set raw=/dev/md/apachedg/rdsk/d0 clzc:sczone:fs> set type=ufs clzc:sczone:fs> add options [logging] clzc:sczone:fs> end clzc:sczone:fs> exit phys-schost-1# clresourcegroup create -Z sczone hasp-rg phys-schost-1# clresourcetype register -Z sczone SUNW.HAStoragePlus phys-schost-1# clresource create -Z sczone -g hasp-rg \ -t SUNW.HAStoragePlus -p FileSystemMountPoints=/web-1 hasp-rs phys-schost-1# clresourcegroup online -Z sczone -M hasp-rg