- 论坛徽章:
- 0
|
哪位兄弟帮我看下。 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]# |
|