So I've been trying to get NFSv4 (or even just NFSv3 for that matter) working on a FC4 box.
My configs look like this:
/opt/mnt/data/clients *.csync2(rw,no_all_squash,sync) localhost(rw,no_all_squash,sync)
/home *.csync2(rw,no_all_squash,sync) localhost(rw,no_all_squash,sync)
portmap: *.csync2,localhost : allow
lockd: *.csync2,localhost : allow
mountd: *.csync2,localhost : allow
rquotad: *.csync2,localhost : allow
statd: *.csync2,localhost : allow
nfs: *.csync2,localhost : allow
I cannot see any services via rpcinfo -p from client hosts. The server logs say this:
Dec 4 03:40:57 seahawk portmap: connect from 10.0.0.1 to getport(mountd): request from unauthorized host
I do however authorize the host (see the hosts file I've got below).
I can on the server and I can also telnet into the nfs server port 111. More locally, I've been testing it on the server and cannot mount any of the shares either. I thought it may have been an NFSv4 problem initially (btw NFSv4 error/verbosity sucks) but NFSv3 protocols have the same problem.
So if I try to mount a share I get this.
# mount -vvvt nfs lvsnfs:/home/ /imports -o rw
mount: lvsnfs:/home/ failed, reason given by server: Permission denied
However, /var/log/messages says this:
Dec 4 04:01:46 seahawk rpc.mountd: authenticated mount request from lvsnfs:831 for /home (/home)
So it appears that portmap authorises the connection, but then it gets refused later on. The exports file looks ok to me and the servers are all in /etc/hosts
10.0.0.1 nitehawk nitehawk.csync2
10.0.0.2 seahawk seahawk.csync2
10.0.0.3 lvsnfs lvsnfs.csync2
Anyways, at this point I'm kinda lost as to why I cannot mount anything even locally on the nfs server itself. The only thing I can think of off the top of my head is that the server has bound all traffic to eth0, and traffic for some reason passes through (logically) eth0 before being served through the gigabit interface dedicated for nfs traffic (eth2).