You are not logged in.

#1 2013-08-15 19:00:55

marko2010
Member
Registered: 2010-04-17
Posts: 70

[SOLVED] Mounting with NFS4 slow

I takes about 11 seconds to mount a directory on another computer over my local network. Once that folder is mounted NFS4 works fine, and files can be transferred very rapidly. The computer(s) I am mounting are already listed in my "/etc/hosts" file, and the firewall configuration(s) looks fine.

This problem showed up about a month ago, so I am  it might have something to do with one of the updates to my system. Mounting NFS shares over my local network is slow regardless if its done by autofs or manually via the command line.

I tried the  verbose switch when mounting manually, but it produced no error messages.

Last edited by marko2010 (2013-08-16 07:33:31)

Offline

#2 2013-08-15 19:11:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

If it's any comfort to you, I have observed this as well.  It only seems to be true when mounted the first time from a clean boot.  A subsequent umount and mount is more or less instantaneous.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2013-08-15 19:35:54

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Mounting with NFS4 slow

At last someone with the same problem! Started just about a month ago for me too. Not mounting it from fstab but manually (mount command) instead goes quicker. So I suspect systemd.

Offline

#4 2013-08-15 19:53:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

I don't see a difference actually.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2013-08-15 20:15:19

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Mounting with NFS4 slow

I have the same issue. Both machines are running Arch and are up to date. I hadn't bothered to look into it before, but now I've checked dmesg* after the first mount of a share:

[   34.145396] NFS: Registering the id_resolver key type
[   34.145411] Key type id_resolver registered
[   34.145412] Key type id_legacy registered
[   49.156761] RPC: AUTH_GSS upcall timed out.
Please check user daemon is running.

So, I rebooted and started the rpc-gssd service. Now the share mounts right away.

Granted, I have no idea what the 'RPC GSS-API' is, and the server component - rpc-svcgssd - is not running on my nfs server. But the client is just a testbed, so... I don't really care.

* Actually, first I checked the journal. But in place of the last two lines I quoted above (ie. the useful bit), it contained

Aug 15 16:20:29 catawompus kernel: [68B blob data]

mad

Last edited by alphaniner (2013-08-15 20:26:53)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2013-08-15 20:25:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

@alphaniner - You should add this to the nfs wiki.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2013-08-15 20:27:24

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [SOLVED] Mounting with NFS4 slow

alphaniner wrote:

I have the same issue. Both machines are running Arch and are up to date. I hadn't bothered to look into it before, but now I've checked dmesg* after the first mount of a share:

[   34.145396] NFS: Registering the id_resolver key type
[   34.145411] Key type id_resolver registered
[   34.145412] Key type id_legacy registered
[   49.156761] RPC: AUTH_GSS upcall timed out.
Please check user daemon is running.

So, I rebooted and started the rpc-gssd service. Now the share mounts right away.

Granted, I have no idea what the 'RPC GSS-API' is, and the server component - rpc-svcgssd - is not running on my nfs server. But the client is just a testbed, so... I don't really care.

* Actually, first I checked the journal. But in place of the last two lines I quoted above (ie. the useful bit), it contained

Aug 15 16:20:29 catawompus kernel: [68B blob data]

mad

Enabling nfs-gssd in systemctl.  I mean rpc-nssd.

Last edited by nomorewindows (2013-08-15 20:28:35)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2013-08-15 20:29:15

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Mounting with NFS4 slow

@graysky

I don't think that'd be appropriate considering my aforementioned ignorance.

Last edited by alphaniner (2013-08-15 20:29:52)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2013-08-15 20:45:31

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Mounting with NFS4 slow

Enabling rpc-gssd.service cut boot from 28s to 11 s again! Thx!

Offline

#10 2013-08-15 21:33:20

marko2010
Member
Registered: 2010-04-17
Posts: 70

Re: [SOLVED] Mounting with NFS4 slow

@alphaniner

checking dmesg after mounting was a good idea. When I tried it I saw the exact same error ("RPC: AUTH_GSS upcall timed out.")

So then I ran on the nfs client computer:
sudo systemctl start rpc-gssd.service

And the problem went away. Now NFS4 shares are basically mounting instantaneously -- even with autofs.

I'm going to do a little more testing on this for the rest of the day, and if there are no hickups I was planning on  marking this thread "SOLVED"

Last edited by marko2010 (2013-08-15 21:37:56)

Offline

#11 2013-08-15 23:05:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Mounting with NFS4 slow

marko2010 wrote:

So then I ran on the nfs client computer

Ah!  Thanks for this.  I tried to do it on my NFS server, and though "Hey! This doens't work for me!"  Then I got down to your post here and I thought to myself, "I'm an idiot!"

(I'm actually posting here mostly so that the thread will show up when I use the 'posted' topics, so sorry for the useless noise)

Offline

#12 2013-08-15 23:22:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

Guess the next question is does this belong on the wiki or flyspray?  In other words, is this behavior expected?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2013-08-15 23:55:18

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Mounting with NFS4 slow

::Public Service Announcement::

I think a sanity check is in order. Rpc-gssd is described as a client service, and has a corresponding server component rpc-svcgssd. As I said I have no idea what these are or what they do. But generally, I avoid running a client service unless it can access its counterpart.

To me, this reeks of workaround. I expect there's a mount option, export option, or nfs client/server option that will prevent the "AUTH_GSS upcall" from being issued in the first place.

For all I know, running rpc-gssd without proper configuration and/or without a server for it to contact could pose a security risk.

That is all.

::End Public Service Announcement::


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#14 2013-08-16 05:53:17

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Mounting with NFS4 slow

According to this thread:
http://forums.fedoraforum.org/showthread.php?t=249619

rpc-svcgssd at the server side is for nfs kerberos authentication. I do not use it, never will. So it should be optional at the client side, one thinks. Well, it is, but works really bad without it. Still suspect systemd ...

Offline

#15 2013-08-16 08:22:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

Open a flyspray to get it in the hands of people with more knowledge.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#16 2013-08-16 16:58:40

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Mounting with NFS4 slow

The sec= option {see nfs(5) and exports(5)} seemed promising, but specifying sec=sys didn't change anything for me. I tried in the mount alone and in both mount and export. Granted, sec=sys is the default, but I figured it couldn't hurt.

Maybe it's worth someone else looking into though.

Edit: Well, here's a source which recommends starting rpc-gssd as a solution. I still don't like it, though. It also seems to suggest that the issue shouldn't occur when sec=sys is used.

Last edited by alphaniner (2013-08-16 18:43:29)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#17 2013-08-16 18:48:06

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Mounting with NFS4 slow

The unfathomable systemd is involved too. She moves in mysterious ways ...

Offline

#18 2013-08-16 19:08:27

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Mounting with NFS4 slow

I still don't see any evidence of that.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#19 2013-08-16 19:10:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Mounting with NFS4 slow

graysky wrote:

Open a flyspray to get it in the hands of people with more knowledge.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#20 2013-08-16 19:47:09

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Mounting with NFS4 slow

swanson wrote:

The unfathomable systemd is involved too. She moves in mysterious ways ...

I have a Debian sid system that I use as an NFS server. It uses sysvinit, not systemd. I also have another machine that runs a similar sid system, again with sysvinit, that can connect to the server. I had the connection delay problem until I ran rpc.gssd on the client. Neither machine uses systemd.

Last edited by 2ManyDogs (2013-08-16 19:51:28)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#21 2013-12-11 16:11:49

tekstryder
Member
Registered: 2013-02-14
Posts: 118

Re: [SOLVED] Mounting with NFS4 slow

Sorry for the necro-bump, but I think it's silly to start a different thread for the exact same issue, given the useful info in this thread, and what seems like a workaroud as the solution. I'd rather not enable another systemd service if it's avoidable.

I too have been observing this issue as stated in the OP, since the timeframe of the thread discussion. As I only connect to my NFS share infrequently, I didn't pursue investigation.

It looks like systemd is absolved based on the last post. I could not find a related flyspray, and am not sure if this is an upstream issue, or specific to arch?

I guess I'll have to test with a different client, but wondering if anyone pursued this issue further. Is there an existing bug filed either upstream or flyspray?

Last edited by tekstryder (2013-12-11 19:51:00)

Offline

#22 2013-12-15 21:12:25

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: [SOLVED] Mounting with NFS4 slow

Some folks (including myself) seem to have problems with running rpc-gssd as a workaround.  I've managed to avoid both the mount delay and running an unrequired service (rpc.gssd) by blacklisting rpcsec_gss_krb5 (see https://bugzilla.redhat.com/show_bug.cgi?id=1001934, the third suggested workaround.  Seems to work fine on i686.

Offline

#23 2013-12-15 22:12:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Mounting with NFS4 slow

Painless wrote:

I've managed to avoid both the mount delay and running an unrequired service (rpc.gssd) by blacklisting rpcsec_gss_krb5 (see https://bugzilla.redhat.com/show_bug.cgi?id=1001934, the third suggested workaround.

This seems like a much more sane solution than running a client w/o a matching service.  I can confirm that initial tests seem to indicate that this is working fine on my x86_64 machines as well.

Offline

#24 2014-05-08 16:45:02

sn00py2
Member
Registered: 2014-05-08
Posts: 1

Re: [SOLVED] Mounting with NFS4 slow

I had the same issue on Debian testing, without systemd, and disable rpcsec_gss_krb5 module worked for me:

echo blacklist rpcsec_gss_krb5 > /etc/modprobe.d/dist-blacklist.conf
reboot

thanks to Painless (in this thread).

Offline

#25 2014-05-09 01:36:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Mounting with NFS4 slow

Please don't necrobump old (and solved) threads: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB