Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Configure a Failover Application Using the ScalMountPoint Resource

Before You Begin

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical.

To perform this procedure, assume the root role that provides solaris.cluster.read and solaris.cluster.modify RBAC (role-based access control) authorization.

  1. Create a scalable resource group containing the ScalMountPoint resource for the NAS NFS file system.
    # clresourcegroup create -p RG_mode=Scalable \
    -p Desired_primaries=num_active_primary \
    -p Maximum_primaries=max_num_active_primary scalmp-rg
    # clresourcetype register SUNW.ScalMountPoint
    # clresource create -g scalmp-rg -t SUNW.ScalMountPoint \
    -p TargetFileSystem=nas_device:path \
    -p FileSystemType=nas \
    -p MountPointDir=fs_mountpoint scalmp-rs
    # clresourcegroup online -eM scalmp-rg
  2. (optional) If the application binaries use a NAS NFS file system and you want the resource to automatically fail over if a storage fault is detected, set the RebootOnFailure property to True.

    Setting this property prevents the resource from entering a STOP_FAILED state if storage connectivity is faulted. Instead, the node where the ScalMountPoint resource resides is rebooted, and the resource restarts on another cluster node.


    Note -  The availability of other services might be adversely impacted by this fault case. Before you set this property, ensure that you have considered its impact to all services running on the cluster node. You can limit the impact of the RebootOnFailure setting on other services by instead configuring this service in a zone cluster. The reboot then only affects services within that zone cluster.
    # clresource set -p RebootOnFailure=True scalable-mount-point-resource
  3. Create a failover resource group that contains the failover application resource.
    # clresourcegroup create -p rg_affinities=++scalmp-rg app-fo-rg

    The failover application resource group must have a strong positive affinity upon the resource group created in Step 1.

    # clresourcetype register app_resource_type
    # clresource create -g app-fo-rg -t app_resource_type \
    -p Resource_dependencies_offline_restart=scalmp-rs \
    …
    app-fo-rs

    The failover application resource must have an offline restart dependency upon the ScalMountPoint resource created in Step 1.

    # clresourcegroup online -eM app-fo-rg