The problem is that I'm unable to mount an NFS4-exported filesystem on
the client. Initially, the server rejected the NFS request. Now, RPC
is rejecting the connection.
Two X86 32-bit PCs, connected via wireless wlan0. Kernel on both systems
is 3.1.6-1.fc16.i686.PAE Connection is managed by NetworkManager.
Both systems are running an up-to-date Fedora 16. Rebooting does not
change the problem.
I would appreciate inshight as to what is happening.
As I'm reliably informed that a for all intents and purposes configuration
is working, I have to assume that it's something that I've done. But what?
===============
Detail.
First the setup.
Server:
% cat /etc/exports
/nfs4exports 192.168.0.0/24(ro,sync,insecure,root_squash,no_subtree_checck, fsid=0)
/nfs4exports/home 192.168.0.0/24(rw,nohide,sync,insecure,root_squash,no_subrree_ check)
% ls -ld /nfs4exports/ /nfs4exports/*
drwxrwxrwt 5 root root 4096 Dec 31 15:34 /nfs4exports//
drwxrwxrwt. 6 root root 4096 May 18 2011 /nfs4exports/home/
root@mtranch[148]->systemctl -a |grep nfs
nfs4exports-home.mount loaded active mounted /nfs4exports/home
proc-fs-nfsd.mount loaded active mounted RPC Pipe File System
nfs-idmap.service loaded active running NFSv4 ID-name mapping daemon
nfs-lock.service loaded active running NFS filelocking service.
nfs-server.service loaded active running NFS Server
Client:
geoff@pvr[1]->systemctl -a |grep nfs
nfs-idmap.service loaded active running NFSv4 ID-name mapping d
nfs-lock.service loaded active running NFS file locking servic
firewall is disabled on both systems.
Here's what happened first -- when the NFS connection was rejected
# mount -t nfs4 mtranch:/nfs4exports/home /mtranch-home
mount.nfs: access denied by server while mounting mtranch:/nfs4exports/home
Debug:
# sysctl -w sunrpc.nfs_debug=1023
# mount -t nfs4 mtranch:/home /mtranch-home
# dmesg ( Error 13 is: Permission denied )
[ 9772.530553] --> nfs4_create_server()
[ 9772.530567] --> nfs4_init_server()
[ 9772.530568] --> nfs4_set_client()
[ 9772.530570] --> nfs_get_client(mtranch,v4)
[ 9772.532498] NFS: Callback listener port = 54051 (af 2)
[ 9772.532509] NFS: Callback listener port = 34833 (af 10)
[ 9772.532549] --> nfs_get_client() = f2337a00 [new]
[ 9772.532551] <-- nfs4_set_client() = 0 [new f2337a00]
[ 9772.532561] <-- nfs4_init_server() = 0
[ 9772.532564] --> nfs4_get_rootfh()
[ 9772.532569] encode_compound: tag=
[ 9772.533339] encode_compound: tag=
[ 9772.533945] encode_compound: tag=
[ 9772.533966] encode_compound: tag=
[ 9772.534696] encode_compound: tag=
[ 9772.535725] encode_compound: tag=
[ 9772.536449] encode_compound: tag=
[ 9775.536039] encode_compound: tag=
[ 9775.537400] encode_compound: tag=
[ 9775.539288] nfs4_get_rootfh: getroot error = 13
[ 9775.539291] <-- nfs4_get_rootfh() = -13
[ 9775.539293] --> nfs_free_server()
[ 9775.539340] --> nfs_put_client({1})
[ 9775.539343] --> nfs_free_client(4)
[ 9775.539449] <-- nfs_free_client()
[ 9775.539457] <-- nfs_free_server()
[ 9775.539459] <-- nfs4_create_server() = error -13
[ 9775.539463] <-- nfs4_mount() = -13 [error]
Rejection from RPC
dmesg after mount; mount is looping
111 is (supprise!) Connection refused
[ 1498.776618] --> nfs4_create_server()
[ 1498.776631] --> nfs4_init_server()
[ 1498.776633] --> nfs4_set_client()
[ 1498.776634] --> nfs_get_client(mtranch,v4)
[ 1498.776738] nfs_create_rpc_client: cannot create RPC client. Error = -111
[ 1498.776740] <-- nfs4_init_client() = xerror -111
[ 1498.776742] --> nfs_put_client({1})
[ 1498.776743] --> nfs_free_client(4)
[ 1498.776745] <-- nfs_free_client()
[ 1498.776747] <-- nfs4_set_client() = xerror -111
[ 1498.776748] <-- nfs4_init_server() = -111
[ 1498.776749] --> nfs_free_server()
[ 1498.779070] <-- nfs_free_server()
[ 1498.779073] <-- nfs4_create_server() = error -111
[ 1498.779077] <-- nfs4_mount() = -111 [error]
[ 1499.779258] --> nfs4_create_server()
[ 1499.779277] --> nfs4_init_server()
[ 1499.779278] --> nfs4_set_client()
[ 1499.779280] --> nfs_get_client(mtranch,v4)
[ 1499.779363] nfs_create_rpc_client: cannot create RPC client. Error = -111
[ 1499.779365] <-- nfs4_init_client() = xerror -111
[ 1499.779367] --> nfs_put_client({1})
[ 1499.779368] --> nfs_free_client(4)
[ 1499.779370] <-- nfs_free_client()
[ 1499.779371] <-- nfs4_set_client() = xerror -111
[ 1499.779373] <-- nfs4_init_server() = -111
[ 1499.779374] --> nfs_free_server()
[ 1499.782044] <-- nfs_free_server()
[ 1499.782047] <-- nfs4_create_server() = error -111
[ 1499.782050] <-- nfs4_mount() = -111 [error]