mount挂载失败时出现如下信息
[root@node01-app-141 ~]# mount -t nfs -o vers=3,nolock 10.22.xxx.xx:/opt/test /opt/test
mount: wrong fs type, bad option, bad superblock on 10.22.xxx.xx:/opt/test,
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.
查看是否有相关的包(没有如下的包的话需要安装,有的话看看其他帖子吧)
[root@node01-app-141 yum.repos.d]# rpm -qa | grep nfs
nfs-utils-1.3.0-0.68.el7.x86_64
libnfsidmap-0.25-19.el7.x86_64
自行安装相关包
# 在线yum安装,或者离线的话自己搭yum源比较方便这里不赘述
yum install nfs-utils
# 离线安装rpm包,包下载地址 https://www.rpmfind.net/linux/rpm2html/search.php
rpm -ivh nfs-utils-xxxxxxx.rpm
再次尝试挂载应该就没问题了,最好一并配置上开机自动挂载
cat <<-"EOF" >> /etc/rc.d/rc.local
mount -t nfs -o vers=3,nolock 10.22.xxx.xx:/opt/test /opt/test
EOF
别的要注意的点可能有挂载的源路径或者目标路径没有,提前建了就好