Chinaunix
标题:
nfs 服务器配置后无法挂载
[打印本页]
作者:
liujihang029
时间:
2017-06-19 20:52
标题:
nfs 服务器配置后无法挂载
可以ping通网址,防火墙已关闭,无法挂载 nfs 服务器。请求大家帮忙分析一下。
系统是centos6.5,64位,客户端是debian7.7,32位。
配置 nfs 服务器过程
1、配置/etc/exports文件:
/home/haha/nfs *(rw,sync)
2、重启服务器结果
[haha@localhost ~]$ sudo /etc/init.d/rpcbind restart
停止 rpcbind: [确定]
正在启动 rpcbind: [确定]
[haha@localhost ~]$ sudo /etc/init.d/nfs restart
关闭 NFS 守护进程: [确定]
关闭 NFS mountd: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
Shutting down RPC idmapd: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS mountd: [确定]
启动 NFS 守护进程: [确定]
正在启动 RPC idmapd: [确定]
3、测试 exports
[haha@localhost ~]$ sudo exportfs -rv
exporting *:/home/haha/nfsroot
4、在其他机器上运行
sudo mount -t nfs 10.10.14.18:/home/haha/nfsroot /mnt/nfs
sudo mount -t nfs -o nolock 10.10.14.18:/home/haha/nfsroot /mnt/nfs
5、结果:
一段时间静默后出现:
mount.nfs: Connection timed out
作者:
phanx
时间:
2017-06-20 14:34
你不是配置的 /home/haha/nfs *(rw,sync) 么? 怎又mount /home/haha/nfssoft 呢?
在客户端上 showmount -e 10.10.14.18 看看。
作者:
liujihang029
时间:
2017-06-22 17:13
回复
2#
phanx
nfs那个是之前的目录,发帖的时候写错了,呵呵。后来仔细查看防火墙,发现有问题,处理好了,就连上了。多谢回复。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2