NFS Services Administrator's Guide (B.11.31.02) January 2008
1. On the NFS client, enter the following command to get a list of all the mounted NFS
filesystems on the client
/usr/sbin/nfsstat -m
2. For every NFS mounted directory listed by the nfsstat command, enter the following
command to determine whether the directory is currently in use:
/usr/sbin/fuser -cu local_mount_point
This command lists the process IDs and user names of all processes currently using the
mounted directory.
3. To kill all processes that are using the mounted directory, enter the following command:
/usr/sbin/fuser -ck local_mount_point
4. To unmount all NFS mounted directories, enter the following command:
/usr/sbin/umount -aF nfs
5. To disable the NFS client and Autofs, edit the /etc/rc.config.d/nfsconf file on the
client to set the NFS_CLIENT and AUTOFSvariables to 0, as follows:
NFS_CLIENT=0
AUTOFS=0
This prevents the client processes from starting up again when you reboot the client.
6. Enter the following command to disable NFS client capability:
/sbin/init.d/nfs.client stop
For more information, see umount (1M), mount(1M), and fuser(1M).
NFS Client and Server Transport Connections
NFS runs over both UDP and TCP transport protocols. The default transport protocol is TCP.
Using the TCP protocol increases the reliability of NFS filesystems working across WANs and
ensures that the packets are successfully delivered. TCP provides congestion control and error
recovery. NFS over TCP and UDP works with NFS Version 2, and Version 3.
NOTE: TCP is the only transport protocol supported by NFS Version 4.
Supporting 1MB Transfer for TCP mounts
By default, NFS supports 32K transfer sizes across both TCP and UDP transports.
To enable support of 1MB transfers for TCP mounts, you must first modify the following tunables:
• nfs3_bsize (for NFS version 3)
This tunable controls the logical block size used by NFSv3 clients. The block size represents
the amount of data the client attempts to read from or write to the server during an I/O
operation.
• nfs4_bsize (for NFS version 4)
This tunable controls the logical block size used by NFSv4 clients. The block size represents
the amount of data the client attempts to read from or write to the server during an I/O
operation.
For information on the nfs3_bsize and nfs4_bsizetunables, see nfs3_bsize(1M) and
nfs4_bsize(1M).
After the tunables have been modified, set the mount option for read and write size to 1MB, as
follows:
mount -F nfs -o rsize=1048576, wsize=1048576
NFS Client and Server Transport Connections 45