Ask Your Question
0

Why am I denied access while using the NFS4 client mount in Fedora 16?

asked 2012-01-01 16:48:29 -0500

Geoffrey Leach gravatar image

updated 2012-01-05 06:19:48 -0500

FranciscoD_ gravatar image

The problem:

mount -t nfs mtranch:/nfs4exports/hom /mtranch-home mount.nfs: access denied by server while mounting mtranch:/nfs4exports/home

The details: sysctl -w sunrpc.nfs_debug=1023 mount -t nfs mtranch:/nfs4exports/home /mtranch-home dmesg FWIW, the debug output.

[ 9772.530553] --> nfs4createserver() [ 9772.530567] --> nfs4initserver() [ 9772.530568] --> nfs4setclient() [ 9772.530570] --> nfsgetclient(mtranch,v4) [ 9772.532498] NFS: Callback listener port = 54051 (af 2) [ 9772.532509] NFS: Callback listener port = 34833 (af 10) [ 9772.532549] --> nfsgetclient() = f2337a00 [new] [ 9772.532551] <-- nfs4setclient() = 0 [new f2337a00] [ 9772.532561] <-- nfs4initserver() = 0 [ 9772.532564] --> nfs4getrootfh() [ 9772.532569] encodecompound: tag= [ 9772.533339] encodecompound: tag= [ 9772.533945] encodecompound: tag= [ 9772.533966] encodecompound: tag= [ 9772.534696] encodecompound: tag= [ 9772.535725] encodecompound: tag= [ 9772.536449] encodecompound: tag= [ 9775.536039] encodecompound: tag= [ 9775.537400] encodecompound: tag= [ 9775.539288] nfs4getrootfh: getroot error = 13 [ 9775.539291] <-- nfs4getrootfh() = -13 [ 9775.539293] --> nfsfreeserver() [ 9775.539340] --> nfsputclient({1}) [ 9775.539343] --> nfsfreeclient(4) [ 9775.539449] <-- nfsfreeclient() [ 9775.539457] <-- nfsfreeserver() [ 9775.539459] <-- nfs4createserver() = error -13 [ 9775.539463] <-- nfs4mount() = -13 [error]

ll /nfs4exports total 12K drwxrwxrwt. 6 root root 4.0K May 18 2011 home drwxrwxrwt. 32 root root 4.0K Jan 1 14:18 tmp drwxrwxrwt. 21 geoff 500 4.0K Dec 31 22:21 usrlocal

cat /etc/exports /nfs4exports 192.168.0.0/24(ro,sync,insecure,rootsquash,nosubtreecheck,fsid=0) /nfs4exports/home 192.168.0.0/24(rw,nohide,sync,insecure,rootsquash,nosubtreecheck) /nfs4exports/usrlocal 192.168.0.0/24(rw,nohide,sync,insecure,rootsquash,nosubtreecheck) /nfs4exports/tmp 192.168.0.0/24(rw,nohide,sync,insecure,rootsquash,nosubtreecheck)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-01-03 11:38:54 -0500

tuxdna gravatar image

This can happen due to various reasons. Can you check

  • firewall rules on the server
  • /var/log/message output on server
  • ensure that client is actually making a connection to the server

Also, does this help?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-01 16:48:29 -0500

Seen: 1,915 times

Last updated: Jan 05 '12