Go to main content

Oracle® Solaris Cluster Data Service for NFS Guide

Exit Print View

Updated: January 2016
 
 

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 that are associated with all the Oracle Solaris Cluster servers.

If you use netgroups in the sharecommand, add all the Oracle Solaris Cluster hostnames to the appropriate netgroup. Ideally, grant both read access and write access to all the Oracle Solaris 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.

You can also modify the shared path and options dynamically without bringing offline the HA for NFS resource. See How to Dynamically Update Shared Paths on an NFS File System.

To modify the share options on an NFS file system while the HA for NFS resource is offline, perform the following steps.

  1. On a cluster member, become an administrator that provides solaris.cluster.admin authorization.
  2. Turn off fault monitoring on the NFS resource.
    # clresource unmonitor resource
  3. Test the new share options.
    1. 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 the clients.

      –d description

      Describes the file system to add.

      pathname

      Identifies the file system to share.

    2. 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.
    1. To remove a path from the dfstab.resource file, perform the following steps in order.
      1. Run the unsharecommand.
        # unshare -F nfs [-o specific_options] pathname
        –F nfs

        Identifies the file system type as NFS.

        –o specific_options

        Specifies the options that are specific to NFS file systems.

        pathname

        Identifies the file system that is made unavailable.

      2. From the dfstab.resource file, delete the share command for the path that you want to remove.
        # vi dfstab.resource
    2. To add a path or change an existing path in the dfstab.resource file, verify that the mount point is valid, then edit the dfstab.resource file.
  5. Enable fault monitoring on the NFS resource.
    # clresource monitor resource