Why am I denied access while using the NFS4 client mount in Fedora 16?
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)