alirezan1 |
12-05-2008 01:44 PM |
NFS mount failed, reason given by server: Permission denied
hi all,
I've been struggling with this NFS mount problem for almost a week now and I am running out of ideas here :( please help!
I have a server named slot5 and a client named slot11 with IP addresses:
Quote:
slot5: inet addr:127.0.204.1 Bcast:127.0.204.255 Mask:255.255.255.0
slot11: inet addr:127.0.210.1 Bcast:127.0.210.255 Mask:255.255.255.0
|
First question: Is this alright that I have IP addresses starting with 127.0.* for my internal network? or should I change them to some other address?
I have this as my exports file:
Quote:
> cat /etc/exports
/export *(rw,sync,root_squash)
|
and when I restart my NFS I get:
Quote:
> /etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
RPC: failed to contact portmap (errno -5).
[ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS daemon: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
[ OK ]
Starting NFS mountd: [ OK ]
|
rpcinfo on both machines:
on slot5:
Quote:
> rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 708 status
100024 1 tcp 711 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 32778 nlockmgr
100021 3 udp 32778 nlockmgr
100021 4 udp 32778 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 53459 nlockmgr
100021 3 tcp 53459 nlockmgr
100021 4 tcp 53459 nlockmgr
100005 1 udp 901 mountd
100005 1 tcp 904 mountd
100005 2 udp 901 mountd
100005 2 tcp 904 mountd
100005 3 udp 901 mountd
100005 3 tcp 904 mountd
|
on slot11:
Quote:
> rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 59530 nlockmgr
100021 3 tcp 59530 nlockmgr
100021 4 tcp 59530 nlockmgr
100005 1 udp 606 mountd
100005 1 tcp 609 mountd
100005 2 udp 606 mountd
100005 2 tcp 609 mountd
100005 3 udp 606 mountd
100005 3 tcp 609 mountd
|
showmount on slot5:
Quote:
> showmount -a
All mount points on localhost:
*:/export
*:/tmp
127.0.210.1/255.255.255.0:/export
127.0.210.1:/export
> showmount -e
Export list for localhost:
/export *
|
showmount on slot11:
Quote:
> showmount -e slot5
Export list for slot5:
/export *
|
on slot5:
Quote:
> exportfs
/export <world>
|
here are /etc/hosts.* files:
Quote:
cat /etc/hosts.allow
portmap: ALL
nfsd: ALL
lockd: ALL
mountd, rquotad: ALL
statd: ALL
ALL: ALL
ALL: 127.0.
cat /etc/hosts.deny
<empty>
cat /etc/hosts:
10.0.0.1 localhost localhost.localdomain
127.0.210.1 slot11
127.0.204.1 slot5 localhost localhost.localdomain
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|
mount on slot5:
Quote:
> mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
|
and when I want to mount:
Quote:
> mount slot5:/export /mnt/
mount: slot5:/export failed, reason given by server: Permission denied
|
One thing I realized is that, I don't have "none" in my mount output. Can that cause a problem?
Thanks!
|