Perform this procedure during your initial set up of HA for NFS. Perform this procedure from one node only.
Before You Begin
Before you start the HA for NFS wizard, ensure that the following prerequisites are met:
Prerequisites for configuring a logical hostname resource are met.
Prerequisites for configuring a highly available storage resource are met.
The HA for NFS package is installed.
The example output shows a configuration that uses the NIS external naming service.
The following example shows the correct lookup entries.
# svccfg -s svc:/system/name-service/switch listprop config/host hosts: cluster files [SUCCESS=return] nis # svccfg -s svc:/system/name-service/switch listprop config/rpc rpc: files nis
For hosts, files must follow cluster and precede any directory or name service. This modification enables HA for NFS to fail over correctly in the presence of public network failures.
For rpc, files must precede any directory or name service. This configuration prevents timing-related errors for rpc lookups during periods of public network or name service unavailability.
For hosts:
# svccfg -s svc:/system/name-service/switch \ setprop config/host = astring: \"cluster files [SUCCESS=return] nis\"
For rpc:
# svccfg -s svc:/system/name-service/switch \ setprop config/rpc = astring: \"files nis\"
# clsetup
The clsetup main menu is displayed.
The Data Services menu is displayed.
The clsetup utility displays the list of prerequisites for performing this task.
The clsetup utility displays a list of all cluster nodes that are online.
Ensure that the nodes are listed in the order in which the nodes are to appear in the resource group's node list. The first node in the list is the primary node of this resource group.
Ensure that the nodes are listed in the order in which the nodes are to appear in the resource group's node list. The first node in the list is the primary node of this resource group.
The clsetup utility displays a list of existing logical hostname resources on the cluster.
The clsetup utility displays a list of existing logical hostname resources.
The clsetup creates the logical hostname resource.
The clsetup utility displays information about file system mount points.
The clsetup utility displays the existing file system mount points.
The clsetup utility displays a screen where you can specify the path prefix for HA for NFS resource group.
The clsetup utility displays a screen where you can change the share option for the file system mount point that the NFS server is sharing.
The clsetup utility displays the share options for the selected mount points.
The clsetup utility displays a screen where you can specify the new name.
The clsetup utility returns you to the list of the names of the Oracle Solaris Cluster objects that the utility will create.
The clsetup utility displays information about the Oracle Solaris Cluster configuration that the utility will create.
The clsetup utility displays a progress message to indicate that the utility is running commands to create the configuration. When configuration is complete, the clsetup utility displays the commands that the utility ran to create the configuration.
The clsetup utility returns you to the Data Services Menu.
The clsetup utility returns you to the Main Menu.
If you prefer, you can leave the clsetup utility running while you perform other required tasks before using the utility again. If you choose to quit clsetup, the utility recognizes your HA for NFS resource group when you restart the utility.
Use the clresourcegroup command for this purpose. By default, the clsetup utility assigns the name nfs-mountpoint-admin-rg to the HA for NFS resource group.
# clresourcegroup status nfs-mountpoint-admin-rg
# clresourcegroup online -eM nfs-rg