Oracle® Solaris Cluster Data Services Planning and Administration Guide

Exit Print View

Updated: September 2014, E39648–02

How to Configure a Scalable 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 and solaris.cluster.modify RBAC authorization.

  1. Create a scalable resource group containing the ScalMountPoint resource for the NAS NFS file system.
    # clrg create -p RG_mode=Scalable \
    -p Desired_primaries=num_active_primary \
    -p Maximum_primaries=max_num_active_primary scalmp-rg
    # clrt register SUNW.ScalMountPoint
    # clrs create -g scalmp-rg -t SUNW.ScalMountPoint \
    -p TargetFileSystem=nas_device:path \
    -p FileSystemType=nas \
    -p MountPointDir=fs_mountpoint scalmp-rs
    # clrg online -eM scalmp-rg
  2. Create a scalable resource group that contains the application resource.
    # clrg create -p RG_mode=Scalable \
    -p Maximum_primaries=max_num_active_primary \
    -p Desired_primaries=num_active_primary \
    -p rg_affinities=++scalmp-rg app-rg

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

    # clrt register app_resource_type
    # clrs create -g app-rg -t app_resource_type \
    -p Scalable=True \
    -p resource_dependencies_offline_restart=scalmp-rs app-rs
    # clrg online -eM app-rg

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