Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Configuring a HAStoragePlus Resource for Cluster File Systems

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.

Sample Entries in /etc/vfstab for Cluster File Systems

The following examples show entries in the /etc/vfstab file for global devices that are to be used for cluster file systems.


Note –

The entries in the /etc/vfstab file for cluster file systems should contain the globalkeyword in the mount options.



Example 2–30 Entries in /etc/vfstab for a Global Device With Solaris Volume Manager

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


Example 2–31 Entries in /etc/vfstab for a Global Device With VxVM

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

ProcedureHow to Set Up the HAStoragePlus Resource for Cluster File Systems

  1. On any node in the cluster, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Create a failover resource group.


    # clresourcegroup create resource-group-1
    
  3. Register the HAStoragePlus resource type.


    # clresourcetype register SUNW.HAStoragePlus
    
  4. 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.

  5. Add the data service resources to resource-group-1, and set their dependency to hasp-resource.

  6. Bring online and in a managed state the resource group that contains the HAStoragePlus resource.


    # clresourcegroup online -M resource-group-1
    

ProcedureHow to Delete a HAStoragePlus Resource Type for Cluster File Systems

    Disable and delete the HAStoragePlus resource configured for cluster file systems.


    # clresource delete -F -g resource-group -t SUNW.HAStoragePlus resource