挂载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配置后开机能够正常重启

posted @ 2022-06-14 10:35  chyuhung  阅读(471)  评论(0编辑  收藏  举报