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 Failover and Scalable Data Services on Shared File Systems

After the NAS device is installed and configured, you can use the `ScalMountPoint` resource to configure failover and scalable applications.

An instance of the `ScalMountPoint` resource type represents the mount point of one of the following type of file systems:

- File systems on a network-attached storage (NAS) device

The NAS device and the file system must already be configured for use with Oracle Solaris Cluster.

The `ScalMountPoint` resource type is a scalable resource type. An instance of this resource type is online on each node in the node list of the resource group that contains the resource.

## 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.

       # 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 failover resource group that contains the failover application resource.

       # clrg 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.

       # clrt register app_resource_type

       # clrs 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.

       # clrg online -eM app-fo-rg

## 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 `solaris.cluster.read` 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.

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