【标题描述】设置nfs的ip共享后远程挂载失败,报错:mount.nfs: access denied by server while mounting...
【环境信息】
OS:21.09版本
repo源:everything,OS
[root@localhost]# cat /etc/openEuler-latest
openeulerversion=openEuler-21.09
compiletime=2021-09-13-07-52-16
gccversion=10.3.1-20210827.4.oe1
kernelversion=5.10.0-5.10.0.24.oe1
【问题复现步骤】
具体操作步骤:
1、服务端:
systemctl stop firewalld
iptables -F
yum install nfs-utils -y
mkdir /home/nfs
chmod 777 /home/nfs
mv /etc/exports /etc/exports.bak
echo '/home/nfs 客户端ip(rw,sync,all_squash)' >/etc/exports
exportfs -avr
systemctl restart nfs-server rpcbind
2、客户端
dnf install -y nfs-utils
systemctl stop firewalld
iptables -F
mkdir /home/client
systemctl restart nfs-server rpcbind
mount -t nfs 服务端ip:/home/nfs /home/client
出现概率(是否必现,概率性错误)
【预期结果】
挂载成功
【实际结果】
挂载失败
【附件信息】
Hi mazenggang3, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Storage, and any of the maintainers: @lzqnewword, @zero, @liuzhiqiang, @linfeilong835, @louhongxiang.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
按照复现步骤本地挂载正常。出现问题的现场,通过tcpdump抓包,服务端和客户端没有网络包通信,请排查网络。
经验证是网络不通原因导致用例不通过,服务端和客户端网段设置相同后,测试通过,关闭此单
登录 后才可以发表评论