If you use the rw, rw=, ro, or ro= options to the share -o command, NFS fault monitoring works best if you grant access to all the physical hosts or netgroups associated with all Sun Cluster servers.
If you use netgroups in the share(1M) command, add all of the Sun Cluster hostnames to the appropriate netgroup. Ideally, grant both read and write access to all of the Sun Cluster hostnames to enable the NFS fault probes to do a complete job.
Before you change share options, read the share_nfs(1M) man page to understand which combinations of options are legal.
Become superuser on a cluster node.
Turn off fault monitoring on the NFS resource.
# scswitch -n -M -j resource |
Disables the resource monitor.
Execute your proposed new share command.
Before you edit the dfstab.resource file with new share options, execute the new share command to verify the validity of your combination of options.
# share -F nfs [-o] specific_options [-d "description"] pathname |
Identifies the file system type as NFS.
Specifies an option. You might use rw, which grants read-write access to all clients.
Describes the file system being added.
Identifies the file system being shared.
If the new share command fails, immediately execute another share command with the old options. When the new command executes successfully, proceed to Step 4.
Edit the dfstab.resource file with the new share options.
The format of this file is exactly the same as the format that is used in the /etc/dfs/dfstab file. Each line consists of a share command.
(Optional) If you are removing a path from the dfstab.resource file, execute the unshare(1M) command, then remove the share command for the path from the dfstab.resource file.
# unshare [-F nfs] [-o rw] pathname # vi dfstab.resource |
Identifies the file system type as NFS.
Specifies the options that are specific to NFS file systems.
Identifies the file system being made unavailable.
(Optional) If you are adding a path to or changing an existing path in the dfstab.resource file, verify that the mount point is valid, then perform Step 3 and Step 4.
Enable fault monitoring on the NFS resource.
# scswitch -e -M -j resource |