Complete the procedure How to Create an NFS Application Resource Group on the Primary Cluster.
Access nodeC 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.
nodeC# clresourcetype register SUNW.nfs
If SUNW.HAStoragePlus has not been registered as a resource type, register it.
nodeC# clresourcetype register SUNW.HAStoragePlus
Create an application resource group for the device group.
nodeC# clresourcegroup create \ -p Pathprefix=/global/etc \ -p Auto_start_on_new_cluster=False \ -p RG_dependencies=devgrp-stor-rg \ nfs-rg
Creates the resource group.
Specifies a property of the resource group.
Specifies a 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 groups that the application resource group depends on. In this example, the application resource group depends on the replication resource group.
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.
nodeC# 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 a property of the resource.
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 -x 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.
nodeC# clreslogicalhostname create -g nfs-rg \ lhost-nfsrg-sec
The logical hostname of the application resource group on the secondary cluster is named lhost-nfsrg-sec.
Add an NFS resource to the application resource group.
nodeC# clresource create -g nfs-rg \ -t SUNW.nfs -p Resource_dependencies=nfs-dg-rs nfs-rg
Ensure that the application resource group does not come online on nodeC.
nodeC# clresource disable -n nodeC nfs-rs nodeC# clresource disable -n nodeC nfs-dg-rs nodeC# clresource disable -n nodeC lhost-nfsrg-sec nodeC# clresourcegroup online -n "" nfs-rg
The resource group remains offline after a reboot, because Auto_start_on_new_cluster=False.
If the global volume is mounted on the primary cluster, unmount the global volume from the secondary cluster.
nodeC# umount /global/mountpoint
If the volume is mounted on a secondary cluster, the synchronization fails.