Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Set Up the HAStoragePlus Resource Type to Make File Systems Other Than ZFS Highly Available

The following procedure explains how to set up the HAStoragePlus resource type to make file systems other than ZFS highly available.


Note -  You can also use the Oracle Solaris Cluster Manager browser interface to create in one operation an HAStoragePlus resource and a new resource group to contain it. For Oracle Solaris Cluster Manager log-in instructions, see How to Access Oracle Solaris Cluster Manager in Administering an Oracle Solaris Cluster 4.4 Configuration. After you log in, click Tasks and then click Highly Available Storage to start the wizard.

This wizard requires that all cluster nodes have the same root password.


  1. On any node in the global cluster, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Create a failover resource group.
    # clresourcegroup create resource-group
  3. Register the HAStoragePlus resource type.
    # clresourcetype register SUNW.HAStoragePlus
  4. Create the HAStoragePlus resource and define the file system mount points.
    # clresource create -g resource-group \
    -t SUNW.HAStoragePlus -p FileSystemMountPoints=mount-point-list hasp-resource
  5. Bring online and in a managed state the resource group that contains the HAStoragePlus resource.
    # clresourcegroup online -M resource-group
Example 49  Setting Up the HAStoragePlus Resource Type to Make a UFS File System Highly Available for the Global Cluster

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-rg
Example 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