Results 1 to 8 of 8

Thread: nfs-client service very slow to start or not starting

  1. #1
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default nfs-client service very slow to start or not starting

    The nfs-client service isn't starting after boot up. This is causing problems with the user as they cannot access the remote folders on the server.

    The PC is a Thinkpad X60s with oS11.3 and KDE4.4.4. The problem started about a week ago after some updates (new kernel update, kde4 updates and some system files) were applied on the laptop.

    After logging in none of the remote folders are available. Checking the nfs-client service under Yast>System Services (Runlevel) shows the nfs-client service is not running. If I enable and start the service I get the pop-up confirming the service has started but still cannot access the remote folders even after issuing a mount -a. Opening Dolphin just opens a blank grey window which needs to be terminated.

    Trying to restart the nfs service using su -c 'rcnfs restart' sticks at
    Starting NFS client services: sm-notify
    Just leaving the PC for 10-15mins eventually sorts itself out and the remote folders become visible.

    I cannot see anything obvious in the logs so am a bit stumped. Any ideas / suggestions on what may be causing the nfs-client service to not start properly?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,924

    Default Re: nfs-client service very slow to start or not starting

    When it worked earlier (before the last kernel update) we should try to search in that direction, but nevertheless and notwithstanding the fact that you did explain what you tried very well, it would have been even more informative when you had posted your CLI trials here completely (copy/paste). Thus not "telling" that you issue a mount -a, but "showing" a complete sequence with what you type and what you get (and between CODE tags), like:
    Code:
    cat /etc/fstab
    mount
    mount -a
    mount
    But then with all the output (error messages) included. That will explain what has to be mounted, what is mounted, what happened when you mounted and what is mounted after the trial in one clear message.
    The same for
    Code:
    rcnfs restart
    with all the output (and maybe a comment from you that between lines 2 and three it waited for 10 mins).


    Question: is it switched off in YaST Runlevel again every time after boot?
    Henk van Velden

  3. #3
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: nfs-client service very slow to start or not starting

    OK I'll paste the actual cli commands as requested but I'll need to wait to get back onto the PC later, maybe over lunch. To answer your question, yes nfs-client is switched off after boot.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,424
    Blog Entries
    14

    Default Re: nfs-client service very slow to start or not starting

    The problem has already found a solution elsewhere in the forums, here it is:


    In /etc/nfsmount.conf, change
    Code:
    #Defaultvers=4
    to :
    Code:
    Defaultvers=3

    Done so by doing

    On Gnome: gnomesu gedit /etc/nfsmount.conf
    On KDE: kdesu kwrite /etc/nfsmount.conf


    Reboot to effect the changes.

    This stops the three minute time-out.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,924

    Default Re: nfs-client service very slow to start or not starting

    Oh boy, that is one of those "let us change the default of things over night, nobody will get caught with it" things. Yes, very likely that the difference between NFS version 4 and earlier will give problems when one site is changed without further notice.
    Henk van Velden

  6. #6
    Carlos E. R. NNTP User

    Default Re: nfs-client service very slow to start or not starting

    On 2010-10-06 11:36, suse tpx60s wrote:
    >
    > The nfs-client service isn't starting after boot up. This is causing
    > problems with the user as they cannot access the remote folders on the
    > server.


    Is the network up? Are you using dhcp, perhaps? if-up or network manager? Best is traditional
    network setup with fixed IP.

    Are you using nfs 4 features? Some have reported problems in 11.3.

    Also, check the firewall log for dropped packets, both on the client and server.

    Two threads about nfs problems recently:

    ] <http://forums.opensuse.org/showthread.php?t=444916>
    ]
    <http://forums.opensuse.org/english/get-help-here/pre-release-beta/441898-opensuse-11-3-nfs-problem-hang-during-boot-process-2.html>


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,424
    Blog Entries
    14

    Default Re: nfs-client service very slow to start or not starting

    Hi Carlos,

    I've tested this "feature". Happens with ifup as well as networkmanager, static IP and DHCP. It's the client that times out for 3 minutes. It defaults to NFS4 now, since it doesn't get the proper reply. Will test without changes as soon as I have the time to move my server to 11.3.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Join Date
    Jul 2008
    Location
    Angel Fire, NM USA
    Posts
    330

    Default Re: nfs-client service very slow to start or not starting

    I had this very slow boot problem after activating NFS Client.

    Making the change Knurpht suggested seems to have fixed the slow boot up, at least on restart.

    Thanks Knurpht

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •