linux启动nfs守护进程,linux – NFS不再安装:rpc-statd无法启动

每当我尝试启动NFS挂载时,我得到:

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Version 1.3.2 starting

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Flags: TI-RPC

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: Running as root. chown /var/lib/nfs to choose different user

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23582]: failed to create RPC listeners, exiting

Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: rpc-statd.service: control process exited, code=exited status=1

Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..

Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: Unit rpc-statd.service entered failed state.

Feb 12 00:02:19 martin-xps.lico.nl systemd[1]: rpc-statd.service failed.

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Version 1.3.2 starting

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Flags: TI-RPC

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: Running as root. chown /var/lib/nfs to choose different user

Feb 12 00:02:19 martin-xps.lico.nl rpc.statd[23584]: failed to create RPC listeners, exiting

我试图将/ var / lib / nfs chown到rpc,这只是给我错误减去“以root身份运行”行:

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: Version 1.3.2 starting

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: Flags: TI-RPC

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23773]: failed to create RPC listeners, exiting

Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: rpc-statd.service: control process exited, code=exited status=1

Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..

Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: Unit rpc-statd.service entered failed state.

Feb 12 00:05:09 martin-xps.lico.nl systemd[1]: rpc-statd.service failed.

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: Version 1.3.2 starting

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: Flags: TI-RPC

Feb 12 00:05:09 martin-xps.lico.nl rpc.statd[23775]: failed to create RPC listeners, exiting

我试图重新安装nfs-utils:

$pacman -R nfs-utils

$rm -r /var/lib/nfs

$pacman -S nfs-utils

然后,它使用root用户的权限重新创建目录.我甚至不确定这个错误是否与rpc.statd无法启动有关.

我也尝试在我的shell中运行rpc.statd -F –no-notify,但是只退出代码1.没有错误,没有任何错误.手册页中没有记录详细或调试标志.

我也尝试清空我的/ etc / exports,我的系统是最新的(pacman -Syu).我没有改变什么,它几个小时前就停止了工作.

注意使用mount -o nolock / data工作;所以其余的NFS / rpc守护进程似乎没问题.

解决方法:

同样的问题,rpc-stad自上次更新后失败(我的所有计算机在更新后都出现问题).

为了解决这个问题我刚刚启用并启动了rpcbind:

sudo systemctl enable rpcbind.service # for the next reboot

sudo systemctl start rpcbind.service

sudo systemctl restart rpcbind.service

标签:linux,nfs,arch-linux

来源: https://codeday.me/bug/20190809/1627721.html

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值