挂载NFS和配置开机启动
挂载NFS和配置开机启动
使用mount -t nfs 10.191.xx.x:/dir /dir
后出现如下报错:
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
检查Linux客户端rpcbind服务不在运行状态
# /etc/init.d/rpcbind status
Checking for service rpcbind
重新启动服务
/etc/init.d/rpcbind start
Starting rpcbind
写入挂载配置到/etc/fstab中
echo "10.191.xx.x:/xx /xxx nfs defaults,_netdev 0 0" >> /etc/fstab
mount -a
正常挂载,使用_netdev配置后开机能够正常重启
本文来自博客园,作者:chyuhung,转载请注明原文链接:https://www.cnblogs.com/chyuhung/p/16373697.html