Go to main content
Oracle® Solaris Cluster 4.3 System Administration Guide

Exit Print View

Updated: June 2017
 
 

How to Create an NFS Application Resource Group on the Secondary Cluster

Before You Begin

  1. Access nodeC as the role that provides solaris.cluster.modify, solaris.cluster.admin, and solaris.cluster.read authorization.
  2. Register SUNW.nfs as a resource type.
    nodeC# clresourcetype register SUNW.nfs
  3. If SUNW.HAStoragePlus has not been registered as a resource type, register it.
    nodeC# clresourcetype register SUNW.HAStoragePlus
  4. 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_affinities=+++devgrp-stor-rg \
    nfs-rg
    create

    Creates the resource group.

    –p

    Specifies a property of the resource group.

    Pathprefix=/global/etc

    Specifies a directory into which the resources in the group can write administrative files.

    Auto_start_on_new_cluster=False

    Specifies that the application resource group is not started automatically.

    RG_affinities=+++devgrp-stor-rg

    Specifies the resource group where the application resource group must be collocated. In this example, the application resource group must be collocated with the replication resource group devgrp-stor-rg.

    If the replication resource group is switched over to a new primary node, the application resource group is automatically switched over. However, attempts to switch over the application resource group to a new primary node are blocked because that breaks the collocation requirement.

    nfs-rg

    The name of the application resource group.

  5. Add a SUNW.HAStoragePlus resource to the application resource group.
    nodeC# clresource create -g nfs-rg \
    -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=/global/mountpoint \
    -p AffinityOn=True \
    nfs-dg-rs
    create

    Creates the resource.

    –g

    Specifies the resource group to which the resource is added.

    -t SUNW.HAStoragePlus

    Specifies that the resource is of the type SUNW.HAStoragePlus.

    –p

    Specifies a property of the resource.

    FileSystemMountPoints=/global/mountpoint

    Specifies that the mount point for the file system is global.

    AffinityOn=True

    Specifies that the application resource must perform an affinity switchover for the global devices and cluster file systems defined by -p FileSystemMountPoints=. Therefore, when the application resource group fails over or is switched over, the associated device group is switched over.

    nfs-dg-rs

    The name of the HAStoragePlus resource for the NFS application.

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

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

Next Steps

Go to Example of How to Enable Data Replication.

Example of How to Enable Data Replication

This section describes how data replication is enabled for the example configuration. This section uses the Availability Suite software commands sndradm and iiadm. For more information about these commands, see the Availability Suite documentation.