k8s 挂载NFS 类型PV需要注意事项
2019-11-05 本文已影响0人
无处安放的躁动
报错
mount: wrong fs type, bad option, bad superblock on 192.168.0.252/mnt/jamestest,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so.
本地解决测试
mount -t nfs 192.168.0.252:/mnt/jamestest /mnt
所有k8s 节点需要安装nfs-utils并启动
yum install -y nfs-utils
ystemctl enable rpcbind
ystemctl start rpcbind