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 for New Resources

In the following example, the resource group resource-group-1 contains the following data services:

  • HA for Oracle iPlanet Web Server, which depends on /global/resource-group-1

  • HA for Oracle, which depends on /dev/global/dsk/d5s2

  • HA for NFS, which depends on dsk/d6


Note -  To create an HAStoragePlus resource with ZFS storage pool as a highly available local file system seeHow to Set Up the HAStoragePlus Resource Type to Make a Local ZFS File System Highly Available section.

To create an HAStoragePlus resource hastorageplus-1 for new resources in resource-group-1, read Synchronizing the Startups Between Resource Groups and Device Groups Using HAStoragePlus and then perform the following steps.

To create an HAStoragePlus resource, see Enabling Highly Available Local File Systems.

  1. On a cluster member, assume the root role that provides solaris.cluster.modify and solaris.cluster.admin RBAC authorizations.
  2. Create the resource group resource-group-1.
    # clresourcegroup create resource-group-1
  3. Determine whether the resource type is registered.

    The following command prints a list of registered resource types.

    # clresourcetype show | egrep Type
  4. If you need to, register the resource type.
    # clresourcetype register SUNW.HAStoragePlus
  5. Create the HAStoragePlus resource hastorageplus-1, and define the file-system mount points and global device paths.
    # clresource create -g resource-group-1 -t SUNW.HAStoragePlus \
    -p GlobalDevicePaths=/dev/global/dsk/d5s2,dsk/d6 \
    -p FilesystemMountPoints=/global/resource-group-1 hastorageplus-1

    GlobalDevicePaths can contain the following values.

    • Global device group names, such as nfs-dg, dsk/d5

    • Paths to global devices, such as /dev/global/dsk/d1s2, /dev/md/nfsdg/dsk/d10

    FilesystemMountPoints can contain the following values.

    • Mount points of local or cluster file systems, such as /local-fs/nfs, /global/nfs


    Note -  HAStoragePlus has a Zpools extension property that is used to configure ZFS file system storage pools and a ZpoolsSearchDir extension property that is used to specify the location to search for the devices of ZFS file system storage pools. The default value for the ZpoolsSearchDir extension property is /dev/dsk. The ZpoolsSearchDir extension property is similar to the -d option of the zpool(8) command.

    The resource is created in the enabled state.

  6. Add the resources (Oracle iPlanet Web Server, Oracle, and NFS) to resource-group-1, and set their dependency to hastorageplus-1.

    For example, for Oracle iPlanet Web Server, run the following command.

    # clresource create -g resource-group-1 -t SUNW.iws \
    -p Confdir_list=/global/iws/schost-1 -p Scalable=False \
    -p Resource_dependencies=schost-1 -p Port_list=80/tcp \
    -p Resource_dependencies_offline_restart=hastorageplus-1 resource

    The resource is created in the enabled state.

  7. Verify that you have correctly configured the resource dependencies.
    # clresource show -v resource | egrep Resource_dependencies_offline_restart
  8. Set resource-group-1 to the MANAGED state, and bring resource-group-1 online.
    # clresourcegroup online -M resource-group-1

Affinity Switchovers

The HAStoragePlus resource type contains another extension property, AffinityOn, which is a Boolean that specifies whether HAStoragePlus must perform an affinity switchover for the global devices that are defined in GLobalDevicePaths and FileSystemMountPoints extension properties. For details, see the SUNW.HAStoragePlus(7) man page.


Note -  The setting of the AffinityOn flag is ignored for scalable services. Affinity switchovers are not possible with scalable resource groups.