Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

How to Change Share Options on an NFS File System

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.


Note -

Before you change share options, read the share_nfs(1M) man page to understand which combinations of options are legal.


  1. Become superuser on a cluster node.

  2. Turn off fault monitoring on the NFS resource.


    # scswitch -n -M -j resource
    
    -M

    Disables the resource monitor.

  3. 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
    
    -F nfs

    Identifies the file system type as NFS.

    -o specific_options

    Specifies an option. You might use rw, which grants read-write access to all clients.

    -d description

    Describes the file system being added.

    pathname

    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.

  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.

  5. (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
    
    -F nfs

    Identifies the file system type as NFS.

    -o options

    Specifies the options that are specific to NFS file systems.

    pathname

    Identifies the file system being made unavailable.

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

  7. Enable fault monitoring on the NFS resource.


    # scswitch -e -M -j resource