发现在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