我们的架构下有一台NFS机器,之前在其他web机器上一直挂载着很正常,今天添加了一台web需要再挂载,就报如下错误:
[kkb@DLLG_CMS_ADMIN_NGINX1 ~]$ sudo mount -t nfs 10.3.3.4:/home/kkb/cms_static /home/kkb/projects/cms_admin/shared/public
mount: wrong fs type, bad option, bad superblock on 10.3.3.4:/home/kkb/cms_static,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
尝试了mount -f 确实可以挂载上,但挂载上去也无法使用,后又卸载
解决方法:
哈哈哈哈哈,先笑一会儿,本机没装nfs-utils
yum install nfs-utils
然后再次mount 提示access denied
[kkb@DLLG_CMS_ADMIN_NGINX1 ~]$ sudo mount -t nfs 10.3.3.4:/home/kkb/cms_static /home/kkb/projects/cms_admin/shared/public
mount.nfs: access denied by server while mounting 10.3.3.4:/home/kkb/cms_static
哈哈哈哈哈,再笑一会儿,NFSserver端没有把IP添加进去
/home/kkb/cms_static 10.3.3.14(insecure,rw,async,no_root_squash)
然后再次mount ok了!
都是很低级的错误!但是不容小视,还是写了此篇自讽trubshooting!
阅读(1713) | 评论(0) | 转发(0) |