代码改变世界

exportfs -rv报错

2022-05-09 20:58  abce  阅读(893)  评论(0编辑  收藏  举报
# exportfs -rv   
exportfs: No options for /abce/test_db 192.168.56.113: suggest 192.168.56.113(sync) to avoid warning
exportfs: No host name given with /abce/test_db (rw,sync,no_wdelay,insecure_locks,no_root_squash), suggest *(rw,sync,no_wdelay,insecure_locks,no_root_squash) to avoid warning
exportfs: No options for /abce/test_db 192.168.56.114: suggest 192.168.56.114(sync) to avoid warning
exportfs: No host name given with /abce/test_db (rw,sync,no_wdelay,insecure_locks,no_root_squash), suggest *(rw,sync,no_wdelay,insecure_locks,no_root_squash) to avoid warning
exportfs: duplicated export entries:
exportfs:       *:/abce/test_db
exportfs:       *:/abce/test_db
exporting *:/abce/test_db

  

原因:

客户端ip和括号之间有了空格

/abce/test_db      192.168.56.113 (rw,sync,no_wdelay,insecure_locks,no_root_squash)    192.168.56.114(rw,sync,no_wdelay,insecure_locks,no_root_squash)

  

去掉空格即可:

/abce/test_db      192.168.56.113(rw,sync,no_wdelay,insecure_locks,no_root_squash)    192.168.56.114(rw,sync,no_wdelay,insecure_locks,no_root_squash)

  

# exportfs -rv
exporting 192.168.56.113:/abce/test_db
exporting 192.168.56.114:/abce/test_db