nfs文件系统一般错误处理
我们在使用nfs的时候,经常会有一些错误,本文收集了我遇到的一些错误,后面会不断的丰富,欢迎大家留言,一起积累错误。
shoumount -e的错误
如果在服务器上执行shoumount -e,出现下面的错误
clnt_create: RPC: Program not registered
出现这个错误,一般是rpc和nfs服务没有启动,这时候,可以用下面的代码启动rpcbind和nfs服务。
systemctl stop rpcbind systemctl stop nfs systemctl start rpcbind systemctl start nfs
先关闭,后重启,注意下面的语句,可能无效,猜测是nfs和rpcbind中没有restart这个选项。
systemctl restart rpcbind systemctl restart nfs