LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2013, 06:55 PM   #1
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
mount.nfs hangs forever - nfs4_discover_server_trunking unhandled error -512


I have 3 newly upgraded Fedora 18 systems. 2 of them cannot make an NFS mount, while one does (slowly). I cannot determine what is wrong.

The command below

# mount.nfs walden4.local:/opt2 /opt2

hangs indefinitely. When I abort it with an interrupt, the message log adds the follow entries:

Code:
Aug 15 14:20:27 walden3 kernel: [ 9949.514708] NFS: nfs4_discover_server_trunking unhandled error -512. Exiting with error EIO
Aug 15 14:20:27 walden3 rpc.gssd[1046]: ERROR: can't open /var/lib/nfs/rpc_pipefs/nfs/clnt2/info: No such file or directory
Aug 15 14:20:27 walden3 rpc.gssd[1046]: ERROR: can't open /var/lib/nfs/rpc_pipefs/nfs/clnt2/info: No such file or directory
I tried googling for some answers with no results.

the /var/lib/nfs/rpc_pipefs/nfs directory exists but has no write permissions.

the machine that is working has the same directory permissions as the non-working machines:

Non-working machine:

Code:
[pwalden@walden3 ~]$ ll -Rd /var/lib/nfs/rpc_pipefs/nfs
dr-xr-xr-x. 2 root root 0 Aug 15 14:20 /var/lib/nfs/rpc_pipefs/nfs
[pwalden@walden3 ~]$ ll -R /var/lib/nfs/rpc_pipefs/nfs
/var/lib/nfs/rpc_pipefs/nfs:
total 0
Working machine:
Code:
[pwalden@walden6 ~]$ ll -Rd /var/lib/nfs/rpc_pipefs/nfs
dr-xr-xr-x. 5 root root 0 Aug 15 13:53 /var/lib/nfs/rpc_pipefs/nfs
[pwalden@walden6 ~]$ ll -R /var/lib/nfs/rpc_pipefs/nfs
/var/lib/nfs/rpc_pipefs/nfs:
total 0
dr-xr-xr-x. 2 root root 0 Aug 15 13:54 clntd
dr-xr-xr-x. 2 root root 0 Aug 15 13:54 clnte
dr-xr-xr-x. 2 root root 0 Aug 15 13:54 clntf

/var/lib/nfs/rpc_pipefs/nfs/clntd:
total 0
prw-------. 1 root root 0 Aug 15 13:54 gssd
prw-------. 1 root root 0 Aug 15 13:54 idmap
-r--------. 1 root root 0 Aug 15 13:54 info
prw-------. 1 root root 0 Aug 15 13:54 krb5

/var/lib/nfs/rpc_pipefs/nfs/clnte:
total 0
-r--------. 1 root root 0 Aug 15 13:54 info

/var/lib/nfs/rpc_pipefs/nfs/clntf:
total 0
-r--------. 1 root root 0 Aug 15 13:54 info
I determined that the rpc_pipefs appears to be mounted correctly on both systems:
Code:
# grep pipe /etc/mtab
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
 
Old 11-08-2013, 07:21 PM   #2
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Original Poster
Rep: Reputation: 50
An update on this problem. After several yum updates, a new error appeared in the message log:

Code:
Oct 22 17:03:50 walden3 rpc.gssd[1082]: ERROR: unable to resolve 192.168.1.107 to hostname: Name or service not known
Oct 22 17:03:50 walden3 rpc.gssd[1082]: ERROR: failed to read service info
Oct 22 17:09:22 walden3 rpc.gssd[1082]: ERROR: can't open /var/lib/nfs/rpc_pipefs/nfs/clnt0/info: No such file or directory
Oct 22 17:09:22 walden3 rpc.gssd[1082]: ERROR: failed to read service info
I found a reference via google to add the missing entry into /etc/hosts. Adding the hostname and ip address to /etc/hosts has mount.nfs working again!!!!

For example adding:

Code:
walden4.local    192.168.1.107
does the trick.

The problem is that I use avahi and mdns_nss to dynamically manage *.local domain IP addresses. What do I need to do to get rpc.gssd to use this facility?

Here is my /etc/nsswitch.conf entry:

Code:
hosts:      files mdns4_minimal [NOTFOUND=return] dns myhostname
 
Old 08-28-2014, 04:55 PM   #3
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Original Poster
Rep: Reputation: 50
Looks like it was a nfs bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1048661

I am able to remove the entry from /etc/hosts now and have the mount continue to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount nfs hangs -centos client ilanadm Linux - Server 2 04-03-2018 10:45 AM
NFS hangs on mount azurianarcher Linux - Server 6 09-17-2013 07:54 AM
Unable to NFS mount .ERROR (mount: RPC: Remote system error - Connection timed) pabba Linux - Networking 3 05-06-2010 01:09 PM
NFS mount hangs guarriman Fedora 4 12-14-2006 08:26 PM
nfs mount takes forever muddywaters Linux - Networking 3 04-29-2006 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration