LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 622|回复: 0

求教CentOS6.2 NFS Server链接不了

[复制链接]
发表于 2011-12-28 22:36:59 | 显示全部楼层 |阅读模式
Server端:
[lm@lm-desktop ~]$ uname -a
Linux lm-desktop 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
[lm@lm-desktop ~]$ cat /etc/exports
/home/lm/vm_res 192.168.1.0/24(rw,sync,no_root_squash,no_all_squash)
[lm@lm-desktop ~]$ sudo service rpcbind status
[sudo] password for lm:
rpcbind (pid 2775) 正在运行...
[lm@lm-desktop ~]$ sudo service nfslock status
rpc.statd (pid 2808) 正在运行...
[lm@lm-desktop ~]$ sudo service nfs status
rpc.svcgssd 已停
rpc.mountd (pid 2911) 正在运行...
nfsd (pid 2908 2907 2906 2905 2904 2903 2902 2901) 正在运行...
rpc.rquotad (pid 2895) 正在运行...
[lm@lm-desktop ~]$ showmount -e 192.168.1.5
Export list for 192.168.1.5:
/home/lm/vm_res 192.168.1.0/24
[lm@lm-desktop ~]$ ll
drwsrwxr-x. 2 lm lm 4096 12月 24 09:20 vm_res

Client端:
[lm@hy-laptop ~]$ sudo mount -vvv -t nfs 192.168.1.5:/home/lm/vm_res test
[sudo] password for lm:
mount: fstab path: "/etc/fstab"
mount: mtab path: "/etc/mtab"
mount: lock path: "/etc/mtab~"
mount: temp path: "/etc/mtab.tmp"
mount: UID: 0
mount: eUID: 0
mount: spec: "192.168.1.5:/home/lm/vm_res"
mount: node: "test"
mount: types: "nfs"
mount: opts: "(null)"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "192.168.1.5:/home/lm/vm_res"
mount: external mount: argv[2] = "test"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
mount.nfs: timeout set for Wed Dec 28 22:20:16 2011
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.5,clientaddr=192.168.1.8'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.5:/home/lm/vm_res
Server和Client的防火墙和Selinux都是Disable的,
[lm@lm-desktop ~]$ rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 59882 status
100024 1 tcp 39401 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 41438 nlockmgr
100021 3 udp 41438 nlockmgr
100021 4 udp 41438 nlockmgr
100021 1 tcp 43543 nlockmgr
100021 3 tcp 43543 nlockmgr
100021 4 tcp 43543 nlockmgr
100005 1 udp 57504 mountd
100005 1 tcp 33319 mountd
100005 2 udp 46511 mountd
100005 2 tcp 45400 mountd
100005 3 udp 57555 mountd
100005 3 tcp 38000 mountd
为什么Permission denied ? /var/log/message里没有NFS错误信息。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表