请注意,如果使用的是 NFS 版本 4 服务器,则不必同时支持 UDP 和 MOUNT 协议。
# rpcinfo -s server-name|egrep 'nfs|mountd'
例如:
# rpcinfo -s bee|egrep 'nfs|mountd' 100003 3,2 tcp,udp,tcp6,upd6 nfs superuser 100005 3,2,1 ticots,ticotsord,tcp,tcp6,ticlts,udp,upd6 mountd superuser
如果尚未启动守护进程,请重新启动 NFS 服务。有关更多信息,请参见如何重新启动 NFS 服务。
# /usr/bin/rpcinfo -u bee nfs program 100003 Version 2 ready and waiting program 100003 Version 3 ready and waiting
如果服务器正在运行,rpcinfo 命令将列出与 UDP 协议关联的程序和版本号。您可以使用带有 –t 选项的 rpcinfo 命令来检查 TCP 连接。如果 rpcinfo 命令失败,请检查是否在服务器上启用了 NFS 服务。有关更多信息,请参见如何验证服务器上的 NFS 服务。
# /usr/bin/rpcinfo -u bee mountd program 100005 Version 1 ready and waiting program 100005 Version 2 ready and waiting program 100005 Version 3 ready and waiting
如果服务器正在运行,rpcinfo 命令将列出与 UDP 协议关联的程序和版本号。使用 –t 选项可以测试 TCP 连接。检查 nfsd 和 mountd 守护进程是否正在运行。
# cd /net/eng
如果该命令失败,则在客户机上以 root 用户身份重新启动 autofs 服务。
# svcadm restart system/filesystem/autofs
# /usr/sbin/showmount -e bee /usr/src eng /export/share/man (everyone)
请检查服务器上的项和本地挂载项中是否有错误。另外,还要检查名称空间。在该示例中,如果第一台客户机不在 eng 网络组中,则该客户机不能挂载 /usr/src 文件系统。
请检查所有本地文件中所有包括挂载信息的项。该列表包括 /etc/vfstab 文件和所有 /etc/auto_* 文件。