[CentOS] Unable to mount Centos 5.6 Server via nfs4 - Operation Not Permitted - MADNESS!

Tom H tomh0665 at gmail.com
Tue May 31 02:29:00 UTC 2011


On Mon, May 30, 2011 at 9:31 PM, RILINDO FOSTER <rilindo at me.com> wrote:
>
> After getting a reasonably configured NFS4 setup working on my Scientific Linux
> server, I spent a majority of my evening trying to do the same with my Centos 5
> box, with fruitless results. Most attempts to mount that server returns the following
> message:
>
> [root at sl01 log]# mount -t nfs4 192.168.15.200:/opt/company_data /mnt
> mount.nfs4: Operation not permitted
>
> As nearest as I can tell, I was able to setup the ports correctly in /etc/sysconfig/nfs
>
> [root at centos sysconfig]# grep -v \# nfs
> RQUOTAD_PORT=875
> LOCKD_TCPPORT=32803
> LOCKD_UDPPORT=32769
> MOUNTD_PORT=892
> STATD_PORT=662
>
> [root at centos sysconfig]# rpcinfo -p
>   program vers proto   port
>    100000    2   tcp    111  portmapper
>    100000    2   udp    111  portmapper
>    100024    1   udp    662  status
>    100024    1   tcp    662  status
>    100011    1   udp    875  rquotad
>    100011    2   udp    875  rquotad
>    100011    1   tcp    875  rquotad
>    100011    2   tcp    875  rquotad
>    100003    2   udp   2049  nfs
>    100003    3   udp   2049  nfs
>    100003    4   udp   2049  nfs
>    100021    1   udp  32769  nlockmgr
>    100021    3   udp  32769  nlockmgr
>    100021    4   udp  32769  nlockmgr
>    100021    1   tcp  32803  nlockmgr
>    100021    3   tcp  32803  nlockmgr
>    100021    4   tcp  32803  nlockmgr
>    100003    2   tcp   2049  nfs
>    100003    3   tcp   2049  nfs
>    100003    4   tcp   2049  nfs
>    100005    1   udp    892  mountd
>    100005    1   tcp    892  mountd
>    100005    2   udp    892  mountd
>    100005    2   tcp    892  mountd
>    100005    3   udp    892  mountd
>    100005    3   tcp    892  mountd
>
> And services are running:
>
> [root at centos sysconfig]# service nfs status
> rpc.mountd (pid 6321) is running...
> nfsd (pid 6318 6317 6316 6315 6314 6313 6312 6311) is running...
> rpc.rquotad (pid 6306) is running...
> [root at centos sysconfig]# service nfslock  status
> rpc.statd (pid  6248) is running...
> [root at centos sysconfig]# service portmap  status
> portmap (pid 6210) is running...
>
> And firewall is open both ways:
>
> [root at centos sysconfig]# iptables -n -L | grep -E '(2049|111|32759|32803|662|875|892)'
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:111
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2049
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:2049
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:875
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:875
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:875
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:892
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:662
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:32803
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:32803
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:662
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:892
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:111
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:111
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:111
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:2049
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:2049
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:32803
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:32803
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:662
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:662
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:892
> ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:875
> ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:875
>
> I am about to mount via NFS3, so that part I know works.
>
> Is there a known problem with NFS4 on Centos (or Red Hat) 5? Or am I missing something someplace?

Are the values of "Domain" in "/etc/idmapd.conf" the same on the
client and the server?

FYI: For nfsv4, there's no need to have any ports other than 111 and 2049.

(Are you using "fsid=0" as an option?)



More information about the CentOS mailing list