事故描述
- 主機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)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/163991.html
標籤:python
