nfs挂载目录为store2,showmount 正常 ,访问共享目录出现失效文件句柄
[root@server1 ~]# showmount -e 192.168.10.146
Export list for 192.168.10.146:
/store2 192.168.10.240,192.168.10.214,192.168.10.239[root@server1 ~]# cd /store2
cd: 无法访问/store2: 失效文件句柄[root@server1 ~]# mount -t nfs 192.168.10.146:/store2 /store2
mount.nfs: Stale file handle
挂载失败
解决方案
store2 文件
客户端
[root@server1 /]# umount -l /store2 //取消挂载点 此时目录可以访问 但是无法挂载
服务端
修改/etc/export 文件/store2 192.168.10.214(fsid=0,rw,sync,no_root_squash)
新增加fsid=0
重启nfs和rpcbind服务
[root@server1 /]# mount -t nfs 192.168.10.146:/store2 /store2
此时挂载成功