免费注册 查看新帖 |

Chinaunix

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

NFS的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-26 16:05 |只看该作者 |倒序浏览
哪位兄弟帮我看下。 NFS挂接其他机器的NFS目录没有问题,但是挂接自己或者别人挂接此机器,总是Permission denied.

[root@localhost mnt]# mount -t nfs -o nolock -o ro 127.0.0.1:/home/lake  lfs
mount: 127.0.0.1:/home/lake failed, reason given by server: Permission denied
[root@localhost mnt]#


[root@localhost mnt]# cat /etc/exports
/home/lake  *(rw,no_root_squash,sync)
[root@localhost mnt]# mount -t nfs -o nolock -o ro 127.0.0.1:/home/lake  lfs
mount: 127.0.0.1:/home/lake failed, reason given by server: Permission denied
[root@localhost mnt]#  exportfs -ra
[root@localhost mnt]# mount -t nfs -o nolock -o ro 127.0.0.1:/home/lake  lfs
mount: 127.0.0.1:/home/lake failed, reason given by server: Permission denied
[root@localhost mnt]#  exportfs -ra
[root@localhost mnt]#  exportfs -ra
[root@localhost mnt]# showmount  -e
Export list for localhost.localdomain:
/home/lake *
[root@localhost mnt]# rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    945  status
    100024    1   tcp    948  status
    100011    1   udp    677  rquotad
    100011    2   udp    677  rquotad
    100011    1   tcp    680  rquotad
    100011    2   tcp    680  rquotad
    100021    1   udp  44949  nlockmgr
    100021    3   udp  44949  nlockmgr
    100021    4   udp  44949  nlockmgr
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   tcp  54671  nlockmgr
    100021    3   tcp  54671  nlockmgr
    100021    4   tcp  54671  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100005    1   udp    692  mountd
    100005    1   tcp    695  mountd
    100005    2   udp    692  mountd
    100005    2   tcp    695  mountd
    100005    3   udp    692  mountd
    100005    3   tcp    695  mountd
[root@localhost mnt]# cat  /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/home/lake      *(rw,no_root_squash,sync,wdelay)
[root@localhost mnt]# cat  /var/lib/nfs/xtab
[root@localhost mnt]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered 0 0
/proc /proc proc rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/sys /sys sysfs rw 0 0
none /dev tmpfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/sda8 /home ext3 rw,data=ordered 0 0
none /dev/shm tmpfs rw 0 0
[root@localhost mnt]#

论坛徽章:
0
2 [报告]
发表于 2009-06-09 18:00 |只看该作者

回复 #1 hushui 的帖子

/home/lake  *(rw,no_root_squash,sync)
这个是全部的都是可以的
本机是否启用了selinux
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP