本地排除故障的目的:最终实现能够正常部署NFS
一、问题
showmount -e 您的NFS机下的IP地址
二、解决方式
2.1 首先查看node节点下rpcbind的状态是否正常
systemctl status rpcbind.socket
2.2 尝试能否和NFS机ping通
showmount -e 您的NFS机下的IP地址
2.3 检查node节点和NFS下的防火墙是否关闭
systemctl stop firewalld
2.4 在node节点下操作
在/etc/hosts下编辑
vim /etc/hosts
2.5 在NFS下查看rpcbind,nfs-utils是否被安装
rpm -q epcbind nfs-utils
2.6 在NFS下查看是否被启动
systemctl start rpcbind
systemctl start nfs
systemctl status nfs
2.7 在NFS下编辑/etc/exports
vim /etc/exports
/data/volumes 192.168.10.0/24(rw,no_root_squash)
showmount -e
Export list for stor01:
/data/volumes 192.168.10.0/24
2.8 在node下编辑rpcbind.socket
将ListenStream=[::]:111注释掉
2.9 重新加载文件启动服务
systemctl daemon-reload
systemctl restart rpcbind
systemctl status rpcbind
三、问题解决
在任意node下ping通NFS
showmount -e 您的NFS机下的IP地址