NFS共享储存故障——可以显示共享目录,却没有读写权限

事故描述

  • 主机192.138.30.22为nfs共享存储
  • 主机192.168.30.23连接存储服务器
  • showmount -e 192.168.30.22 可以查看到共享目录,但是实际上并没有共享成功

详细情况

showmount -e 结果显示(everyone),就说明有问题,原因是在设置白名单时,192.168.30.0/24 与(rw,sync)之间有空格,去掉空格就可以了
-----------------------------nfs共享储存服务器--------------------

[root@localhost ~]# vi /etc/exports
/opt/share      192.168.30.0/24 (rw,sync)
[root@localhost ~]# showmount -e    
Export list for localhost.localdomain:
/opt/share (everyone)

------------------------------其他主机--------------------------------------

[root@localhost ~]# showmount -e 192.168.30.22
Export list for 192.168.30.22:
/opt/share (everyone)

猜你喜欢

转载自blog.csdn.net/CN_LiTianpeng/article/details/108949307