Re: Error mount NFS -- nfs4_get_rootfh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/04/2012 05:36:01 PM, Ed Greshko wrote:
> On 01/05/2012 05:21 AM, Geoffrey Leach wrote:
> > Connection refused, as before No actual output from the client, as
> I'm
> > reduced to sneakernet at this point. 
> 
> To add to what Craig has said.....  (reminder, don't forget to 
> restart
> idmapd after changes to the config)
> 
> Could you post exactly what you are seeing when you issue the "mount"
> command?  Are you getting a notice saying "connection refused"?

Ed (and Craig)

I feel I'm loosing control of my data -- not your fault, of course :-)
So, to deal with the problem I'm maintaining all of my results in a 
baseline file.  Which is attached.  If there is something that you need 
to know that's not in the file, let me know and I'll add it.

> From the client what happens if you
> 
> telnet serverIP 2049

Telnet testing

Server:
# telnet -d pvr 2049
Trying 192.168.10.4...
Connected to pvr.
Escape character is '^]'.
x
x
Connection closed by foreign host.

Client
# telnet -d mtranch 2049
Trying 192.168.10.2...
telnet: Connect to 192.168.10.2: Connection refused.

Here's a thought. What if the problem is not with NFS at all, but some 
precursor process?


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_check,fsid=0) 
/nfs4exports/home   192.168.0.0/24(rw,nohide,sync,insecure,root_squash,no_subtree_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/

# 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 file locking service.
nfs-server.service        loaded active   running       NFS Server

Client:

% systemctl -a |grep nfs
nfs-idmap.service         loaded active   running       NFSv4 ID-name mapping daemon
nfs-lock.service          loaded active   running       NFS file locking service.

firewall is disabled on both systems.
SElinux is disabled on both systems.

/etc/hosts (both)
127.0.0.1	mtranch mtranch.mtranch.com mtranch4	localhost.localdomain	localhost	localhost4
::1	mtranch.mtranch.com	mtranch	localhost6.localdomain6	localhost6
192.168.10.1	netgear 
192.168.10.2	mtranch.mtranch.com mtranch
192.168.10.4	pvr.mtranch.com pvr

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]

Telnet testing

Server:
# telnet -d pvr 2049
Trying 192.168.10.4...
Connected to pvr.
Escape character is '^]'.
x
x
Connection closed by foreign host.

Client
telnet -d mtranch 2049
Trying 192.168.10.2...
# telnet: Connect to 192.168.10.2: Connection refused.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux