免费注册 查看新帖 |

Chinaunix

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

NFS 服务器问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-12 21:11 |只看该作者 |倒序浏览
服务启动正常,
root@6-12:/root> /etc/init.d/nfs start
Starting NFS services:  [  OK  ]
Starting NFS daemon: [  OK  ]
Starting NFS mountd: [  OK  ]

root@6-12:/root> rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  25000  status
    100024    1   tcp  32768  status
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100021    1   udp  25036  nlockmgr
    100021    3   udp  25036  nlockmgr
    100021    4   udp  25036  nlockmgr
    100021    1   tcp  32810  nlockmgr
    100021    3   tcp  32810  nlockmgr
    100021    4   tcp  32810  nlockmgr
    100005    1   udp   1014  mountd
    100005    1   tcp   1017  mountd
    100005    2   udp   1014  mountd
    100005    2   tcp   1017  mountd
    100005    3   udp   1014  mountd
    100005    3   tcp   1017  mountd

root@6-12:/root> showmount -e
Export list for 6-12.mavenir1.com:
/Logs                *.mavenir1.com
/data/redun          *.mavenir1.com
/data/redun/tmm      *.mavenir1.com
/data/redun/evm      *.mavenir1.com
/usr/ims/exports     *.mavenir1.com
/data/redun/cdr/trl  *.mavenir1.com
/data/redun/cdr/asn1 *.mavenir1.com

但客户端mount时出错, 错误如下:
root@6-12:/root> mount -t nfs 6-12.mavenir1.com:/Logs /tmp/
mount: 6-12.mavenir1.com:/Logs failed, reason given by server: Permission denied
root@6-12:/root> mount -t nfs 172.16.133.152:/Logs /tmp
mount: 172.16.133.152:/Logs failed, reason given by server: Permission denied

在syslog 里看到如下错误:
Dec 13 02:52:49 localhost mountd[14423]: Caught signal 15, un-registering and exiting.
Dec 12 20:52:54 localhost kernel: nfsd: last server has exited
Dec 12 20:52:54 localhost kernel: nfsd: unexporting all filesystems

不知道有谁见过类似问题没有?

论坛徽章:
0
2 [报告]
发表于 2008-12-12 21:21 |只看该作者

回复 #1 hfzdh 的帖子

/etc/exports 文件中的nfs发布点的权限
将文件放上来,判断一下

论坛徽章:
0
3 [报告]
发表于 2008-12-13 10:45 |只看该作者
应该就是配置时权限的问题吧。把配置文件也贴上来

论坛徽章:
0
4 [报告]
发表于 2008-12-15 09:07 |只看该作者
配置文件如下:
root@6-12:/root> cat /etc/exports
/usr/ims/exports *.mavenir1.com(ro,sync,no_root_squash)
/Logs *.mavenir1.com(rw,sync,no_root_squash)
/data/redun *.mavenir1.com(rw,sync,no_root_squash)
/data/redun/cdr/asn1 *.mavenir1.com(rw,sync,no_root_squash)
/data/redun/cdr/trl *.mavenir1.com(rw,sync,no_root_squash)
/data/redun/evm *.mavenir1.com(rw,sync,no_root_squash)
/data/redun/tmm *.mavenir1.com(rw,sync,no_root_squash)

已经将所有目录权限改为777了,还是同样错误。
DNS Server没有问题, 将域名改为IP也是同样错误。
不知道还有什么其它原因没有?

论坛徽章:
0
5 [报告]
发表于 2008-12-15 14:57 |只看该作者
问题解决了,
需要在/etc/fstab里添加
nfsd            /proc/fs/nfsd   nfsd    auto,defaults   0       0

顺便说一下,我的是Wind River Linux

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
6 [报告]
发表于 2008-12-15 15:40 |只看该作者
原帖由 hfzdh 于 2008-12-15 09:07 发表
配置文件如下:
root@6-12:/root> cat /etc/exports
/usr/ims/exports *.mavenir1.com(ro,sync,no_root_squash)
/Logs *.mavenir1.com(rw,sync,no_root_squash)
/data/redun *.mavenir1.com(rw,sync,no_ro ...





  1. /etc/hosts
  2. /etc/resolv.conf
复制代码



域名解析靠这两个配置

如果你在这两个配置里面没有提供对你/etc/exports里面域名的解析,那么连接当然都会给干掉不让你连上。

[ 本帖最后由 cst05001 于 2008-12-15 16:13 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-12-15 15:59 |只看该作者

回复 #5 hfzdh 的帖子

这个必须吗?以前用nfs没修改过/etc/fstab啊

论坛徽章:
0
8 [报告]
发表于 2008-12-15 16:20 |只看该作者
原帖由 HenrySmith 于 2008-12-15 15:59 发表
这个必须吗?以前用nfs没修改过/etc/fstab啊


Wind River Linux 需要手工Build 文件系统,默认情况下kernel是不支持NFS Server的,需要修改kernel 参数重编Kernel,所以需要修改/etc/fstab。和一般Linux有点区别。

论坛徽章:
0
9 [报告]
发表于 2008-12-15 21:58 |只看该作者
SElinux有么?看看?

论坛徽章:
0
10 [报告]
发表于 2008-12-15 22:09 |只看该作者
原帖由 hfzdh 于 2008-12-15 14:57 发表
问题解决了,
需要在/etc/fstab里添加
nfsd            /proc/fs/nfsd   nfsd    auto,defaults   0       0

顺便说一下,我的是Wind River Linux


跟这关系大吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP