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 an HAStoragePlus Resource for Cluster File Systems Using a UFS File System

Perform this task to configure an HAStoragePlus resource that uses a UFS file system for a cluster file system.

To create a cluster file system with HAStoragePlus that uses a ZFS storage pool, instead go to How to Set Up an HAStoragePlus Resource for a zpool for Globally Mounted ZFS File Systems.

  1. On any node in the cluster, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Create a failover or scalable resource group as desired.
    • 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-list] resource-group
  3. Register the SUNW.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

    The resource is created in the enabled state.

  5. Add the data service resources to resource-group, and set their dependency to hasp-resource.
    # clresource set -p  Resource_dependencies_offline_restart= \
    hasp-resource application-resource
  6. Bring online and in a managed state the resource group that contains the HAStoragePlus resource.
    # clresourcegroup online -M resource-group
Example 43  Setting up an HAStoragePlus Resource with a Cluster File System in a Global Cluster

This example shows how to configure an 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

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 hasp-rs
phys-schost-1# clresourcegroup online -M hasp-rg
Example 44  Setting up an HAStoragePlus Resource with a Cluster File System in a Zone Cluster

This example shows how to configure an 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 all 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

phys-schost-1# clresourcegroup create -S global-hasp-rg
phys-schost-1# clresource create -g global-hasp-rg -t SUNW.HAStoragePlus -p \
FileSystemMountPoints=/global/ufs global-hasp-rs

phys-schost-1# clrg online -M global-hasp-rg  

phys-schost-1# 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

phys-schost-1# clresourcegroup create -S -Z sczone -p RG_affinities=++global:global-hasp-rg 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=/zone/ufs -p resource_dependencies_offline_restart=global:\
global-hasp-rs hasp-rs
phys-schost-1# clresourcegroup online -Z sczone -M hasp-rg