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. This includes adding an entry for each logical hostname to the name service database.
Prerequisites for configuring a highly available storage resource are met.
The HA for NFS package is installed.
If you are using PNM objects, the objects are configured on the nodes where the logical hostname resource can be brought online. Public network management (PNM) objects include Internet Protocol network multipathing (IPMP) groups, trunk and datalink multipathing (DLMP) link aggregations, and VNICs that are directly backed by link aggregations.
Have available the logical hostnames that you plan to add to the resource group.
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 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 the list of available logical hostname resources.
At the prompt, type the logical hostname to use.
Proceed to Step 10.
Skip to Step 11.
The clsetup utility displays the names of the Oracle Solaris Cluster logical hostname resources that the utility will create.
The clsetup utility displays the numbers of the logical hostname resources you selected.
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