Skip Navigation Links
Exit Print View
| Oracle Solaris Cluster Data Services Planning and Administration Guide Oracle Solaris Cluster 4.1

Search Scope:

- This Document
- Entire Library

## Configuring an `HAStoragePlus` Resource for Cluster File Systems

When an `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 a root ZFS file system and a nonroot UNIX File System (UFS). The instructions in this section apply to HAStoragePlus resources with UFS. Use `HAStoragePlus` with local file systems if the data service is I/O intensive. See How to Change the Cluster File System to Local File System in an `HAStoragePlus` Resource for information about how to change the file system of an `HAStoragePlus` resource.

The cluster file systems can be configured for zone clusters in the HAStoragePlus resources using the loopback mount mechanism. The `SUNW.HAStoragePlus` resource type makes the cluster file system available to a zone cluster by mounting the file system in the global cluster. The resource type then performs a loopback mount on the zone cluster nodes where the resource group is online.

Note - If you have a failover resource group, the resource group will be online on only one node. If you use a scalable resource group, the `Desired_primaries` property defines the number of nodes the resource group will have online.

The cluster file systems configured in the HAStoragePlus resource type for zone clusters should be authorized for use in zone clusters using the `clzonecluster` command. For more information, see the `clzonecluster`(1CL) man page and How to Add a Cluster File System to a Zone Cluster in Oracle Solaris Cluster Software Installation Guide.

### 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 `global`keyword in the mount options.

Example 2-32 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

## How to Set Up the `HAStoragePlus` Resource for Cluster 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-zone-list] resource-group

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, 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 2-33 Setting up the HAStoragePlus Resource Type with a Cluster File System in a Global Cluster

This example shows how to configure the 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
    # clresourcegroup create hasp-rg
    # clresourcetype register SUNW.HAStoragePlus
    # clresource create -g hasp-rg -t SUNW.HAStoragePlus -p \
    FileSystemMountPoints=/global/ufs hasp-rs
    # clresourcegroup online -M hasp-rg

Example 2-34 Setting up the HAStoragePlus Resource Type with a Cluster File System in a Zone Cluster

This example shows how to configure the 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 two 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
    # 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
    # clresourcegroup create -Z sczone -p desired_primaries=2 -p maximum_primaries=2 hasp-rg
    # clresourcetype register -Z sczone SUNW.HAStoragePlus
    # clresource create -Z sczone -g hasp-rg -t SUNW.HAStoragePlus -p
    FileSystemMountPoints=/zone/ufs hasp-rs
    # clresourcegroup online -Z sczone -M hasp-rg

## How to Delete an `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

Copyright © 2000, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |