showmount -e 输出不正确,不能刷新exports配置的路径,包含历史挂载client(centos 7.6)
问题描述:
第一次挂载目录成功后,再次在/etc/exports 添加挂载路径后,使用showmount -e IP更新不了路径,显示的是历史挂载client。
解放方法:
# service nfs stop
# cat /dev/null > /var/lib/nfs/rmtab
# service nfs start
[root@localhost www]# service nfs stop
Redirecting to /bin/systemctl stop nfs.service
[root@localhost www]# cat /dev/null > /var/lib/nfs/rmtab
[root@localhost www]# service nfs start
Redirecting to /bin/systemctl start nfs.service
[root@localhost www]# showmount -e
Export list for localhost.localdomain:
/mnt 192.168.75.0/24
[root@localhost www]#