I want to start of by saying that we've never had NFS issues like this and we've put in many hours today trying to resolve this without any success... it's quite frustrating but I know one of the "really smart guys" here may have the solution for us. We had this all happily working before FC4 and now that we've upgraded I think we need to go back to linux admin school for a refresher...
In a nutshell we're having problems getting one machine to mount an NFS filesystem from another when everything appears to be configured correctly.
For the record: The firewalls are disabled on
BOTH machines.
Here are the gorey details:
We have two machines,
taxi and
ignatowski.
On
taxi we have a filesystem mounted at
/mnt/x14 which we would like to export as an nfs filesystem and mount over on
ignatowski at the same location,
/mnt/x14.
Host files are configured.
/etc/exports on taxi is configured.
/etc/fstab on ignatowski is configured.
When we go to mount the filesystem we get:
mount: taxi:/mnt/x14 failed, reason given by server: Permission denied.
Now I've googled and searched all over and it seems this is a fairly common issue but none of the threads or discussions I have found indicate that anyone has found any sort of resolution for this so if I can get an answer that leads to a solution I will post everything we do to solve it for the sake of kharma.
Anyway... let's get the preliminaries out of the way...
Code:
[root@taxi ~]# ping ignatowski
PING ignatowski.gmp-vfx.com (100.100.100.21) 56(84) bytes of data.
64 bytes from ignatowski.gmp-vfx.com (100.100.100.21): icmp_seq=0 ttl=64 time=0.119 ms
64 bytes from ignatowski.gmp-vfx.com (100.100.100.21): icmp_seq=1 ttl=64 time=0.100 ms
64 bytes from ignatowski.gmp-vfx.com (100.100.100.21): icmp_seq=2 ttl=64 time=0.106 ms
okay... that works..
Code:
[root@taxi ~]# ssh ignatowski
root@ignatowski's password:
Last login: Fri Jul 8 21:27:17 2005
[root@ingnatowski ~]# ping taxi
PING taxi.gmp-vfx.com (100.100.100.20) 56(84) bytes of data.
64 bytes from taxi.gmp-vfx.com (100.100.100.20): icmp_seq=0 ttl=64 time=0.140 ms
64 bytes from taxi.gmp-vfx.com (100.100.100.20): icmp_seq=1 ttl=64 time=0.114 ms
64 bytes from taxi.gmp-vfx.com (100.100.100.20): icmp_seq=2 ttl=64 time=0.108 ms
okay.. that seems to work.
so authentication/host resolution is not an issue... or at least it appears not to be an issue.
next we'll take a look at the exports file:
Code:
#/etc/exports
/mnt/x14 ignatowski.gmp-vfx.com(rw,no_root_squash,sync)
and then have a look at the output of the following:
Code:
[root@taxi ~]# exportfs -ra
[root@taxi ~]# showmount -e
Export list for taxi.gmp-vfx.com:
/mnt/x14 ignatowski.gmp-vfx.com
[root@taxi ~]# cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/mnt/x14 ignatowski.gmp-vfx.com(rw,no_root_squash,sync,wdelay)
<SSH'ing over to ignatowski....>
Code:
[root@taxi ~]# ssh ignatowski
root@ignatowski's password:
Last login: Fri Jul 8 22:25:10 2005 from taxi.gmp-vfx.com
[root@ingnatowski ~]# cat/etc/fstab
-bash: cat/etc/fstab: No such file or directory
[root@ingnatowski ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
taxi:/mnt/x14 /mnt/x14 nfs rw 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
/dev/hda /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
[root@ingnatowski ~]# mount -a
mount: taxi:/mnt/x14 failed, reason given by server: Permission denied
Quite frankly I'm totally stumped... just so I know I'm not losing my mind we'll check to see that the daemons are running on both machines:
<ON IGNATOWSKI>
Code:
[root@ingnatowski ~]# ps -aef | grep portmap
rpc 2176 1 0 21:26 ? 00:00:00 portmap
root 7225 7171 0 22:34 pts/3 00:00:00 grep portmap
[root@ingnatowski ~]# ps -aef | grep nfs
root 2736 1 0 21:27 ? 00:00:00 [nfsd]
root 2737 1 0 21:27 ? 00:00:00 [nfsd]
root 2738 1 0 21:27 ? 00:00:00 [nfsd]
root 2739 1 0 21:27 ? 00:00:00 [nfsd]
root 2740 1 0 21:27 ? 00:00:00 [nfsd]
root 2741 1 0 21:27 ? 00:00:00 [nfsd]
root 2742 1 0 21:27 ? 00:00:00 [nfsd]
root 2743 1 0 21:27 ? 00:00:00 [nfsd]
root 7229 7171 0 22:34 pts/3 00:00:00 grep nfs
[root@ingnatowski ~]# ps -aef | grep rpc
rpc 2176 1 0 21:26 ? 00:00:00 portmap
rpcuser 2194 1 0 21:26 ? 00:00:00 rpc.statd
root 2239 1 0 21:26 ? 00:00:00 rpc.idmapd
root 2705 1 0 21:27 ? 00:00:00 rpc.rquotad
root 2745 15 0 21:27 ? 00:00:00 [rpciod/0]
root 2746 15 0 21:27 ? 00:00:00 [rpciod/1]
root 2747 15 0 21:27 ? 00:00:00 [rpciod/2]
root 2748 15 0 21:27 ? 00:00:00 [rpciod/3]
root 2750 1 0 21:27 ? 00:00:00 rpc.mountd
root 7234 7171 0 22:35 pts/3 00:00:00 grep rpc
[root@ingnatowski ~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32769 status
100007 2 udp 798 ypbind
100007 1 udp 798 ypbind
100007 2 tcp 801 ypbind
100007 1 tcp 801 ypbind
100011 1 udp 774 rquotad
100011 2 udp 774 rquotad
100011 1 tcp 789 rquotad
100011 2 tcp 789 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32771 nlockmgr
100021 3 udp 32771 nlockmgr
100021 4 udp 32771 nlockmgr
100021 1 tcp 32783 nlockmgr
100021 3 tcp 32783 nlockmgr
100021 4 tcp 32783 nlockmgr
100005 1 udp 816 mountd
100005 1 tcp 828 mountd
100005 2 udp 816 mountd
100005 2 tcp 828 mountd
100005 3 udp 816 mountd
100005 3 tcp 828 mountd
300019 1 tcp 830 amd
300019 1 udp 831 amd
[root@ingnatowski ~]# exit
logout
Connection to ignatowski closed.
<OVER ON TAXI>
Code:
[root@taxi ~]# ps -ef | grep nfsd
root 4680 1 0 22:14 ? 00:00:00 [nfsd]
root 4681 1 0 22:14 ? 00:00:00 [nfsd]
root 4682 1 0 22:14 ? 00:00:00 [nfsd]
root 4683 1 0 22:14 ? 00:00:00 [nfsd]
root 4684 1 0 22:14 ? 00:00:00 [nfsd]
root 4685 1 0 22:14 ? 00:00:00 [nfsd]
root 4686 1 0 22:14 ? 00:00:00 [nfsd]
root 4687 1 0 22:14 ? 00:00:00 [nfsd]
root 5043 3625 0 22:36 pts/2 00:00:00 grep nfsd
[root@taxi ~]# ps -ef | grep portmap
rpc 2205 1 0 21:18 ? 00:00:00 portmap
root 5047 3625 0 22:36 pts/2 00:00:00 grep portmap
[root@taxi ~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32769 status
100004 2 udp 784 ypserv
100004 1 udp 784 ypserv
100004 2 tcp 787 ypserv
100004 1 tcp 787 ypserv
600100069 1 udp 792 fypxfrd
600100069 1 tcp 794 fypxfrd
100007 2 udp 803 ypbind
100007 1 udp 803 ypbind
100007 2 tcp 806 ypbind
100007 1 tcp 806 ypbind
300019 1 tcp 921 amd
300019 1 udp 922 amd
100011 1 udp 619 rquotad
100011 2 udp 619 rquotad
100011 1 tcp 635 rquotad
100011 2 tcp 635 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32795 nlockmgr
100021 3 udp 32795 nlockmgr
100021 4 udp 32795 nlockmgr
100021 1 tcp 32856 nlockmgr
100021 3 tcp 32856 nlockmgr
100021 4 tcp 32856 nlockmgr
100005 1 udp 640 mountd
100005 1 tcp 652 mountd
100005 2 udp 640 mountd
100005 2 tcp 652 mountd
100005 3 udp 640 mountd
100005 3 tcp 652 mountd
Have I lost my mind??? I've been setting up NFS for a decade and I've never had this problem before.
HEeeeeLLLLLP!
gmp