Results 1 to 9 of 9

Thread: autofs nfs '-hosts' not working after update

  1. #1

    Default autofs nfs '-hosts' not working after update

    After updating to autofs-5.0.8-19.8.1.x86_64, I find my NFS mounts are no longer available via autofs. I have two NFS shares on my network. Both can be mounted manually (mount -t nfs server:/path). Previously, both could also be accessed on /net using autofs (using the "/net -hosts" entry in auto.master). After the update, I now get "No such file or directory" under /net (on the client).

    Also, I notice if I issue "service autofs status", I get

    Mar 19 21:53:37 gregpad automount[15428]: lookup_init:136: lookup(yp): map auto.master: Local domain name not set
    Mar 19 21:53:37 gregpad systemd[1]: Started Automounts filesystems on demand.
    Mar 19 21:53:39 gregpad automount[15428]: get_exports: lookup(hosts): exports lookup failed for naspad
    Mar 19 21:53:39 gregpad automount[15428]: key "naspad" not found in map source(s).

    (gregpad is the name of the client; naspad is the name of one of the servers which has an NFS share). I don't know if this was happening before the update.

    Currently, I have NIS (yp) installed but it's not enabled. /etc/hosts lists the client and server, and this setup seems to work for other commands (e.g., mount, showmount).

    Thanks in advance for your insight/ideas!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,819

    Default Re: autofs nfs '-hosts' not working after update

    Any chance you tell us on which version of openSUSE?
    Henk van Velden

  3. #3

    Default Re: autofs nfs '-hosts' not working after update

    This is opensuse version 13.1 (x86_64)

  4. #4
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,188

    Default Re: autofs nfs '-hosts' not working after update

    Are you using "Traditional" or "NetworkManager"?

    Perhaps autofs comes up before the network.
    .: miuku @ #opensuse @ irc.libera.chat

  5. #5

    Default Re: autofs nfs '-hosts' not working after update

    Searching on google brought up this similar problem from an arch user:
    https://bugs.archlinux.org/task/38379

    The workaround suggested in that post worked: in auto.master, replaced '/net -hosts' with
    /net /etc/auto.net --timeout=60

    Not knowing much about autofs, I don't know if there is a downside to using this workaround.

  6. #6

    Default Re: autofs nfs '-hosts' not working after update

    Hi Miuku, thanks for your reply. It's using NetworkManager.

    > Perhaps autofs comes up before the network.

    I don't get it (am out of my depth here regarding networking/services), can you elaborate? And, how could I check?

  7. #7
    Join Date
    Sep 2012
    Posts
    7,106

    Default Re: autofs nfs '-hosts' not working after update

    Well, you need to open bug report, otherwise it is not going to be fixed. Ironically, one problem this update was supposed to fix was with -host map ...

  8. #8
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,188

    Default Re: autofs nfs '-hosts' not working after update

    Quote Originally Posted by greg_wilson View Post
    I don't get it (am out of my depth here regarding networking/services), can you elaborate? And, how could I check?
    This is just guesswork because I don't use autofs myself but think about it like this; all services start in a certain order, it's possible that autofs is starting before your computer has an IP or an active network interface, thus it tries to mount the drives but.. no network.

    Perhaps that's why the time out works - the system waits for NetworkManager to get an ip and for the interfaces to come up.

    But as I said, this is completely speculation and I haven't actually looked at it.
    .: miuku @ #opensuse @ irc.libera.chat

  9. #9

    Default Re: autofs nfs '-hosts' not working after update

    I filed a bug report, per arvidjaar's advice.

Posting Permissions

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