JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Managing Network File Systems in Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Managing Network File Systems (Overview)

2.  Network File System Administration (Tasks)

Automatic File System Sharing

How to Set Up Automatic File-System Sharing

How to Enable WebNFS Access

How to Enable NFS Server Logging

Mounting File Systems

How to Mount a File System at Boot Time

How to Mount a File System From the Command Line

Mounting With the Automounter

How to Mount All File Systems from a Server

How to Use Client-Side Failover

How to Disable Mount Access for One Client

How to Mount an NFS File System Through a Firewall

How to Mount an NFS File System Using an NFS URL

Setting up a DNS Record for a FedFS Server

How to Display Information About File Systems Available for Mounting

Setting Up NFS Services

How to Start the NFS Services

How to Stop the NFS Services

How to Start the Automounter

How to Stop the Automounter

How to Select Different Versions of NFS on a Server

How to Select Different Versions of NFS on a Client

How to Use the mount Command to Select Different Versions of NFS on a Client

Administering the Secure NFS System

How to Set Up a Secure NFS Environment With DH Authentication

WebNFS Administration Tasks

Planning for WebNFS Access

How to Browse Using an NFS URL

How to Enable WebNFS Access Through a Firewall

Task Overview for Autofs Administration

Task Map for Autofs Administration

Using SMF Parameters to Configure Your Autofs Environment

How to Configure Your Autofs Environment Using SMF Parameters

Administrative Tasks Involving Maps

Modifying the Maps

How to Modify the Master Map

How to Modify Indirect Maps

How to Modify Direct Maps

Avoiding Mount-Point Conflicts

Accessing Non-NFS File Systems

How to Access CD-ROM Applications With Autofs

How to Access PC-DOS Data Diskettes With Autofs

Customizing the Automounter

Setting Up a Common View of /home

How to Set Up /home With Multiple Home Directory File Systems

How to Consolidate Project-Related Files Under /ws

How to Set Up Different Architectures to Access a Shared Namespace

How to Support Incompatible Client Operating System Versions

How to Replicate Shared Files Across Several Servers

How to Apply Autofs Security Restrictions

How to Use a Public File Handle With Autofs

How to Use NFS URLs With Autofs

Disabling Autofs Browsability

How to Completely Disable Autofs Browsability on a Single NFS Client

How to Disable Autofs Browsability for All Clients

How to Disable Autofs Browsability on a Selected File System

Administering NFS Referrals

How to Create and Access an NFS Referral

How to Remove an NFS Referral

Administering FedFS

How to Create an Namespace Database (NSDB)

How to Use a Secured Connection to the NSDB

How to Create a FedFS Referral

Strategies for NFS Troubleshooting

NFS Troubleshooting Procedures

How to Check Connectivity on an NFS Client

How to Check the NFS Server Remotely

How to Verify the NFS Service on the Server

How to Restart NFS Services

Identifying Which Host Is Providing NFS File Service

How to Verify Options Used With the mount Command

Troubleshooting Autofs

Error Messages Generated by automount -v

Miscellaneous Error Messages

Other Errors With Autofs

NFS Error Messages

3.  Accessing Network File Systems (Reference)

Index

Setting Up NFS Services

This section describes some of the tasks that are necessary to do the following:


Note - Starting in the Solaris 10 release, NFS version 4 is the default.


Table 2-3 Task Map for NFS Services

Task
Description
For Instructions
Start the NFS server
Steps to start the NFS service if it has not been started automatically.
Stop the NFS server
Steps to stop the NFS service. Normally the service should not need to be stopped.
Start the automounter
Steps to start the automounter. This procedure is required when some of the automounter maps are changed.
Stop the automounter
Steps to stop the automounter. This procedure is required when some of the automounter maps are changed.
Select a different version of NFS on the server
Steps to select a different version of NFS on the server. If you choose not to use NFS version 4, use this procedure.
Select a different version of NFS on the client
Steps to select a different version of NFS on the client by modifying SMF parameters. If you choose not to use NFS version 4, use this procedure.
Alternate steps to select a different version of NFS on the client by using the command line. If you choose not to use NFS version 4, use this alternate procedure.

How to Start the NFS Services

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Enable the NFS service on the server.

    Type the following command.

    # svcadm enable network/nfs/server

    This command enables the NFS service.


    Note - The NFS server starts automatically when you boot the system. Additionally, any time after the system has been booted, the NFS service daemons can be automatically enabled by sharing the NFS file system. See How to Set Up Automatic File-System Sharing.


How to Stop the NFS Services

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Disable the NFS service on the server.

    Type the following command.

    # svcadm disable network/nfs/server

How to Start the Automounter

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Enable the autofs daemon.

    Type the following command:

    # svcadm enable system/filesystem/autofs

How to Stop the Automounter

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Disable the autofs daemon.

    Type the following command:

    # svcadm disable system/filesystem/autofs

How to Select Different Versions of NFS on a Server

If you choose not to use NFS version 4, use this procedure.

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Change SMF parameters to set the NFS version numbers.

    For example, if you want the server to provide only NFS version 3, set the values for both the server_versmax and server_versmin to 3 as shown below:

    # sharectl set -p server_versmax=3 nfs
    # sharectl set -p server_versmin=3 nfs

    Note - The NFS version that is set by default is NFS version 4.


  3. (Optional) Disable server delegation.

    If you want to disable server delegation, change the server_delegation property.

    # sharectl set -p server_delegation=off nfs

    Note - In NFS version 4, server delegation is enabled by default. For more information, see Delegation in NFS Version 4.


  4. (Optional) Establish a common domain.

    If you want to set a common domain for clients and servers, change the nfsmapid_domain property.

    # sharectl set -p nfsmapid_domain=my.company.com nfs
    my.company.com

    Provide the common domain name

    For more information, refer to nfsmapid Daemon.

  5. Check if the NFS service is running on the server.

    Type the following command:

    # svcs network/nfs/server

    This command reports whether the NFS server service is online or disabled.

  6. (Optional) If necessary, enable the NFS service.

    If you discovered from the previous step that the NFS service is offline, type the following command to enable the service.

    # svcadm enable network/nfs/server

    Note - If you need to configure your NFS service, refer to How to Set Up Automatic File-System Sharing.


See Also

Version Negotiation in NFS

How to Select Different Versions of NFS on a Client

The following procedure shows you how to control which version of NFS is used on the client.

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Change SMF parameters to set the NFS version numbers.

    For example, if you want the file system to be mounted using the NFS version 3 protocol, set the values for both the client_versmax and client_versmin to 3 as shown below:

    # sharectl set -p client_versmax=3 nfs
    # sharectl set -p client_versmin=3 nfs

    Note - The NFS version that is set by default is NFS version 4.


  3. Mount NFS on the client.

    Type the following command:

    # mount server-name:/share-point /local-dir
    server-name

    Provide the name of the server.

    /share-point

    Provide the path of the remote directory to be mounted.

    /local-dir

    Provide the path of the local mount point.

See Also

Version Negotiation in NFS

How to Use the mount Command to Select Different Versions of NFS on a Client

The following procedure shows you how to use the mount command to control which version of NFS is used on a client for a particular mount. If you prefer to modify the NFS version for all file systems mounted by the client, see How to Select Different Versions of NFS on a Client.

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Mount the desired version of NFS on the client.

    Type the following command:

    # mount -o vers=value server-name:/share-point /local-dir
    value

    Provide the version number.

    server-name

    Provide the name of the server.

    /share-point

    Provide the path of the remote directory to be mounted.

    /local-dir

    Provide the path of the local mount point.


    Note - This command overrides the client settings in the SMF repository.


See Also

Version Negotiation in NFS