This procedure describes how application resource groups are created for NFS. This procedure is specific to this application and cannot be used for another type of application.
Complete the procedure How to Create a Replication Resource Group on the Secondary Cluster.
Access nodeA as superuser or assume a role that provides solaris.cluster.modify, solaris.cluster.admin, and solaris.cluster.read RBAC authorization.
Register SUNW.nfs as a resource type.
nodeA# clresourcetype register SUNW.nfs
If SUNW.HAStoragePlus has not been registered as a resource type, register it.
nodeA# clresourcetype register SUNW.HAStoragePlus
Create an application resource group for the device group devgrp.
nodeA# clresourcegroup create \ -p Pathprefix=/global/etc \ -p Auto_start_on_new_cluster=False \ -p RG_dependencies=devgrp-stor-rg \ nfs-rg
Specifies the directory into which the resources in the group can write administrative files.
Specifies that the application resource group is not started automatically.
Specifies the resource group that the application resource group depends on. In this example, the application resource group depends on the replication resource group devgrp-stor-rg.
If the application resource group is switched over to a new primary node, the replication resource group is automatically switched over. However, if the replication resource group is switched over to a new primary node, the application resource group must be manually switched over.
The name of the application resource group.
nodeA# clresource create -g nfs-rg \ -t SUNW.HAStoragePlus \ -p FileSystemMountPoints=/global/mountpoint \ -p AffinityOn=True \ nfs-dg-rs
Creates the resource.
Specifies the resource group to which the resource is added.
Specifies that the resource is of the type SUNW.HAStoragePlus.
Specifies that the mount point for the file system is global.
Specifies that the application resource must perform an affinity switchover for the global devices and cluster file systems defined by -p GlobalDevicePaths=. Therefore, when the application resource group fails over or is switched over, the associated device group is switched over.
The name of the HAStoragePlus resource for the NFS application.
For more information about these extension properties, see the SUNW.HAStoragePlus(5) man page.
Add a logical hostname resource to the application resource group.
nodeA# clreslogicalhostname create -g nfs-rg \ lhost-nfsrg-prim
The logical hostname of the application resource group on the primary cluster is named lhost-nfsrg-prim.
Enable the resources, manage the application resource group, and bring the application resource group online.
Enable the HAStoragePlus resource for the NFS application.
nodeA# clresource enable nfs-rs
Bring the application resource group online on nodeA .
nodeA# clresourcegroup online -e -M -n nodeA nfs-rg
Brings the resource group online.
Enables the associated resources.
Manages the resource group.
Specifies the node on which to bring the resource group online.
The name of the resource group.
Verify that the application resource group is online.
nodeA# clresourcegroup status
Examine the resource group state field to determine whether the application resource group is online for nodeA and nodeB.