免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3264 | 回复: 2
打印 上一主题 下一主题

NFS客户端无法连接 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-12 16:52 |只看该作者 |倒序浏览
系统为RHEL5.2,在主机RHEL01(IP 192.168.10.66)配置NFS,启动了NFS和PortMAP服务
exports文件内容:
[root@rhel01 etc]# cat exports
/mnt/sdb  192.168.10.*(rw,no_root_squash)


运行exportfs的结果
[root@rhel01 log]# exportfs -rv
exporting 192.168.10.*:/mnt/sdb


rhel03(192.168.10.68 )为Client,执行时出现错误:
[root@rhel03 mnt]# showmount -e rhel01
Export list for rhel01:
/mnt/sdb 192.168.10.*
[root@rhel03 mnt]# mount -t nfs rhel01:/sdb sdb
mount: rhel01:/sdb failed, reason given by server: Permission denied


试过在/etc/hosts使用主机名与IP对应,仍是同样错误。

在message文件中看到的信息:
Dec 13 01:32:18 rhel01 kernel: nfsd: last server has exited
Dec 13 01:32:18 rhel01 kernel: nfsd: unexporting all filesystems
Dec 13 01:32:19 rhel01 kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Dec 13 01:32:19 rhel01 kernel: NFSD: starting 90-second grace period
Dec 13 01:32:48 rhel01 mountd[28819]: refused mount request from 192.168.10.68 for /sdb (/): not exported

论坛徽章:
0
2 [报告]
发表于 2008-12-12 17:27 |只看该作者
原帖由 qinershi 于 2008-12-12 16:52 发表
[root@rhel03 mnt]# showmount -e rhel01
Export list for rhel01:
/mnt/sdb 192.168.10.*
[root@rhel03 mnt]# mount -t nfs rhel01:/sdb sdb
mount: rhel01:/sdb failed, reason given by server: Permission denied



是/mnt/sdb  不是 /sdb

[root@rhel03 mnt]# mount -t nfs rhel01:/mnt/sdb sdb

论坛徽章:
0
3 [报告]
发表于 2008-12-12 17:29 |只看该作者
太太太。。。。丢人,不细心的后果啊。

谢谢楼上的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP