Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Autofs service won't start - missing kernel module?

  1. #1
    Join Date
    Feb 2016
    Beans
    20

    Autofs service won't start - missing kernel module?

    Hello, all. I'm hoping someone can assist.
    I am in a secure environment so I am limited to how much I can share on this forum during troubleshooting. I am currently running Ubuntu Server 18.04.6 with the 5.4.0-104 low latency kernel. The admin before me who is no longer around setup everything on the server but he may have missed a step. I'm currently having an issue with the autofs service not starting and I think it may be because of a missing kernel module from that particular low latency kernel version.
    I would appreciate if someone could point me in the right direction as to what I need to download and/or install to get autofs service running.

    EDIT: Just a follow up. It looks as if autofs modules are missing if I looking in /lib/modules/5.4.0-104-lowlatency/kernel/fs/

    So, it is still a question of how do I get that module installed for that kernel?
    Last edited by ecrosby; February 15th, 2024 at 05:02 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Autofs service won't start - missing kernel module?

    autofs is just the handler for mount programs. I use it to mount some-times connected storage, all USB storage and all network storage.
    /lib/modules/5.15.0-94-generic/kernel/fs/autofs/autofs4.ko

    Typically, I'd install autofs, nfs-common and nfs-kernel packages and that would be it. APT dependencies would pull in any other required packages. Those dependencies are spelled out inside the .deb files.
    Code:
    $ apt depends autofs
    autofs
      PreDepends: init-system-helpers (>= 1.54~)
      Depends: libc6 (>= 2.28)
      Depends: libtirpc3 (>= 1.0.2)
      Depends: libxml2 (>= 2.7.4)
      Depends: ucf
      Breaks: <autofs5> (<< 5.0.6-1~)
      Recommends: nfs-common
     |Recommends: kmod
      Recommends: <module-init-tools>
      Recommends: e2fsprogs
      Replaces: <autofs5> (<< 5.0.6-1~)
    I don't install the "recommended" package by default.

  3. #3
    Join Date
    Feb 2016
    Beans
    20

    Re: Autofs service won't start - missing kernel module?

    Quote Originally Posted by TheFu View Post
    autofs is just the handler for mount programs. I use it to mount some-times connected storage, all USB storage and all network storage.
    /lib/modules/5.15.0-94-generic/kernel/fs/autofs/autofs4.ko

    Typically, I'd install autofs, nfs-common and nfs-kernel packages and that would be it. APT dependencies would pull in any other required packages. Those dependencies are spelled out inside the .deb files.
    Code:
    $ apt depends autofs
    autofs
      PreDepends: init-system-helpers (>= 1.54~)
      Depends: libc6 (>= 2.28)
      Depends: libtirpc3 (>= 1.0.2)
      Depends: libxml2 (>= 2.7.4)
      Depends: ucf
      Breaks: <autofs5> (<< 5.0.6-1~)
      Recommends: nfs-common
     |Recommends: kmod
      Recommends: <module-init-tools>
      Recommends: e2fsprogs
      Replaces: <autofs5> (<< 5.0.6-1~)
    I don't install the "recommended" package by default.
    So when I run apt list and grep for those packages, it looks as if everything is installed, even the recommended packages.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Autofs service won't start - missing kernel module?

    What, exactly, is the error related to the autofs start? Any hints?

    Code:
    $ systemctl status autofs

  5. #5
    Join Date
    Feb 2016
    Beans
    20

    Re: Autofs service won't start - missing kernel module?

    Yeah. It's not an uncommon error. I have found it frequently in my searches.

    /usr/sbin/automount: test mount forbidden or incorrect kernel protocol version, kernel protocol version 5.00 or above required.
    autofs.service: Control process exited, code=exited status=1
    autofs.service: Failed with result 'exit-code':

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Autofs service won't start - missing kernel module?

    What file system?
    What are the exports and what are the mount options?

    Please, please, use forum code-tags for terminal output, as I did in post #2 above.

  7. #7
    Join Date
    Feb 2016
    Beans
    20

    Re: Autofs service won't start - missing kernel module?

    Unfortunately, the server is in a secured, segmented network not connected to the internet so I have no way of posting output. Everything that I can provide I am typing by hand.

    The file system is ext4. This is a client that is supposed to mount NAS shares using autofs.'filename' with NAS server information in it. But the thing is it can't get that far because I can't even get the autofs service to start. And I believe it won't start because of those missing low latency kernel autofs modules.

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Autofs service won't start - missing kernel module?

    Quote Originally Posted by ecrosby View Post
    Unfortunately, the server is in a secured, segmented network not connected to the internet so I have no way of posting output. Everything that I can provide I am typing by hand.
    I'd redirect the output to a file on a USB stick, assuming the USB ports aren't hot-glued. BTW, I've worked in air-gapped environments too - were we actually did hot-glue any external ports on workstations that weren't in locked cabinets. The building was a huge Faraday cage - no RF in or out. When I needed to bring new software in, that was part of my job, it came through tape and had 2 middle-men involved who would copy the tape contents from an "introduction workstation", then run all the AV scans available on all files, then copy the contents over to a different network, in a more secured part of the building, in a more secure room, still outside the server floor area. The following day, I'd go to that room and "find" the files, then move them to my servers. Then I'd move to a different part of the building to a fast workstation and setup the new software version so it and the older versions wouldn't conflict, but were available for different managers to choose for specific missions. Basically, they'd just have symbolic links pointing at the SW version they wanted.

    Quote Originally Posted by ecrosby View Post
    The file system is ext4. This is a client that is supposed to mount NAS shares using autofs.'filename' with NAS server information in it. But the thing is it can't get that far because I can't even get the autofs service to start. And I believe it won't start because of those missing low latency kernel autofs modules.
    Does a manual mount command work for NFS?
    Code:
    mount -t nfs -o nconnect=2,proto=tcp,rw,async      istar:/d/D1    /d/D1
    Example autofs config:
    Code:
    $ more /etc/auto.nfs 
    
    /d/D1 -fstype=nfs,nconnect=2,proto=tcp,rw,async  istar:/d/D1
    /d/D2 -fstype=nfs,nconnect=2,proto=tcp,rw,async  istar:/d/D2
    /d/D3 -fstype=nfs,nconnect=2,proto=tcp,rw,async  istar:/d/D3
    Of course the auto.master refers to the auto.nfs file.
    Code:
    /-      /etc/auto.nfs --timeout=60 --ghost
    That results in these mounts, after I perform some action to force the mount to happen:
    Code:
    Filesystem                               Type  Size  Used Avail Use% Mounted on
    istar:/d/D1                              nfs4  3.5T  3.5T   13G 100% /d/D1
    istar:/d/D2                              nfs4  3.6T  3.6T   24G 100% /d/D2
    istar:/d/D3                              nfs4  3.6T  3.6T   20G 100% /d/D3

  9. #9
    Join Date
    Feb 2016
    Beans
    20

    Re: Autofs service won't start - missing kernel module?

    Yep. A manual mount of the NFS share works just fine.

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Autofs service won't start - missing kernel module?

    Quote Originally Posted by ecrosby View Post
    Yep. A manual mount of the NFS share works just fine.
    Did you setup the autofs config files as I've shown and restart autofs. Then try to ls somewhere inside the unmounted storage.
    Before doing the ls, in a another terminal, run dmesg -w. Anything in that?

    I have to ask these things. You didn't report it.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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