11.2.3.5 Parameters

11.3 Administration of NFS Servers and Clients

In this section, the operations a system administrator will be performing when working with NFS are discussed. The topics being discussed are:

11.3.1 Get the Current Status of the NFS Daemons

You can get the current status of the NFS daemons individually or all at once. To get the current status of the NFS daemons individually, enter:

lssrc -s subsystem

where daemon is any one of the SRC controlled daemons. For example, to get the current status of the rpc.lockd daemon, enter:

lssrc -s rpc.lockd

To get the current status of all daemons at once, enter:

lssrc -a

11.3.2 Changing an Exported File System

This section explains how you can change an exported NFS.

11.3.2.1 Change an Exported NFS using SMIT

The following procedure will guide you through exporting a file system using SMIT.

  1. Unexport the file system by entering:
    exportfs -u /dirname
    

    where dirname is the name of the file system you want to change. In this case, /home3.

  2. On the CRoom server, enter:
    smitty chnfsexp
    

    The resulting screen is shown in Figure 106.

  3. Enter the appropriate path name in the PATHNAME of exported directory field. In this case, /home3.



    Figure 106: Change the Attributes of an Exported Directory

Make whatever changes you need.

  1. Exit SMIT.

  2. Re-export the file system by entering:
    exportfs /dirname
    

    where dirname is the name of the file system you just changed, in this case /home3.

11.3.2.2 Change an Exported NFS Using a Text Editor

The following procedure will guide you through changing an exported file system using a text editor.

  1. Unexport the file system by entering:
    exportfs -u /dirname
    

    where dirname is the name of the file system you want to change, in this case /home3.

  2. Open the /etc/exports file with your favorite text editor.

  3. Make whatever changes you want.

  4. Save and close the /etc/exports file.

  5. Re-export the file system by entering:
    exportfs /dirname
    

    where dirname is the name of the file system you just changed in this case /home3.

11.3.3 Unmounting a Mounted File System

To unmount an explicitly or automatically mounted NFS directory, enter umount /directory or unmount /directory, for example:

umount /backup

The rmfs command can be used to remove any file systems you created.

11.4 NFS Files, Commands, and Daemons Reference