踩坑系列NFS解决nfs-common.service is masked 问题

发现在ubuntu上的nfs无法挂载了 

检查了一下nfs的状态

root@k8s-master:~# systemctl status nfs-common

○ nfs-common.service

Loaded: masked (Reason: Unit nfs-common.service is masked.)

Active: inactive (dead)

使用unmask来取消屏蔽 nfs-common.service

root@k8s-master:~# sudo systemctl unmask nfs-common.service

root@k8s-master:~# sudo rm /lib/systemd/system/nfs-common.service

root@k8s-master:~# sudo systemctl daemon-reload

再次启动nfs的服务发现已经正常了

root@k8s-master:~# sudo systemctl start nfs-common

root@k8s-master:~# sudo systemctl status nfs-common

● nfs-common.service - LSB: NFS support files common to client and server

Loaded: loaded (/etc/init.d/nfs-common; generated)

Active: active (running) since Sat 2023-11-04 19:34:20 CST; 4s ago

Docs: man:systemd-sysv-generator(8)

Process: 1278769 ExecStart=/etc/init.d/nfs-common start (code=exited, status=0/SUCCESS)

Tasks: 2 (limit: 4201)

Memory: 5.3M

CPU: 81ms

CGroup: /system.slice/nfs-common.service

├─1278777 /sbin/rpc.statd

└─1278793 /usr/sbin/rpc.idmapd

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值