Results 1 to 6 of 6

Thread: Unable to start NFS on Ubuntu Server 20.04

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Beans
    5

    Unable to start NFS on Ubuntu Server 20.04

    Trying to setup a new file server. This is all a clean install on new hardware. Just installed nfs-server and I'm getting an error when I start it.

    Code:
    Sep 25 13:47:59 kernel: nfsd: unable to allocate nfsd_file_hashtbl
    Sep 25 13:47:59 rpc.nfsd[797860]: error starting threads: errno 12 (Cannot allocate memory)
    Sep 25 13:47:59 systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
    -- Subject: Unit process exited
    -- Defined-By: systemd
    -- Support: http://www.ubuntu.com/support
    -- 
    -- An ExecStart= process belonging to unit nfs-server.service has exited.
    -- 
    -- The process' exit code is 'exited' and its exit status is 1.
    Sep 25 13:47:59 treatbox systemd[1]: nfs-server.service: Failed with result 'exit-code'.
    -- Subject: Unit failed
    -- Defined-By: systemd
    -- Support: http://www.ubuntu.com/support
    Sytem has 16gb of ram and a new hard drive for the system drive. I've tried purging all the related software and reinstalling everything NFS requires. And just to be sure I rebooted. Nost sure where to go from here. Any help would be appreciated.

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

    Re: Unable to start NFS on Ubuntu Server 20.04

    https://askubuntu.com/questions/1286...grade-to-20-04 says:
    Re-installed all of the nfs packages, rpcbind, etc., rebooted, and the NFS shares are now available.
    Is the server on hardware or in a container/VM?
    Showing your /etc/exports could help too.


    https://www.digitalocean.com/communi...n-ubuntu-20-04 seems pretty straight forward.
    I don't have any 20.04 NFS servers, but I've been using it for decades with prior releases ... going back into the 1990s.

    NFSv4 without Kerberos sorta "just works".

  3. #3
    Join Date
    Aug 2010
    Beans
    5

    Re: Unable to start NFS on Ubuntu Server 20.04

    It's always just worked for me in the past as well.

    It's on a standalone box. No VM. I just tried reinstall all packages related to NFS again. Also rebooting after that with no luck. I get the same error.

    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    #
    # Example for NFSv2 and NFSv3:
    # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
    #
    # Example for NFSv4:
    # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
    # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
    /srv/nfs4/Storage 192.168.1.0/24(rw,sync,no_subtree_check)

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

    Re: Unable to start NFS on Ubuntu Server 20.04

    I just spent the last 30 minutes trying to setup a 20.04 nfs-server and failed. I didn't have the same issue you did, but moved through different 2 failures and solutions. The 3rd failure, I couldn't figure out.

    Sorry.

    Code:
    $ systemctl list-dependencies nfs-server.service 
    nfs-server.service
    ● ├─auth-rpcgss-module.service
    ● ├─nfs-config.service
    ● ├─nfs-idmapd.service
    ● ├─nfs-mountd.service
    ● ├─proc-fs-nfsd.mount
    ● ├─rpc-svcgssd.service
    ● ├─rpcbind.socket
    ● ├─system.slice
    ● └─network.target
    proc-fs-nfsd.mount is failing to start and there are apparmor errors.

    Code:
    [  217.471423] audit: type=1400 audit(1632714651.443:116): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxd-back-2004_</var/snap/lxd/common/lxd>" name="/proc/fs/nfsd/" pid=8290 comm="mount" fstype="nfsd" srcname="nfsd"
    I've already relaxed the mount for nfs and made the container privileged (ouch).

    Code:
    $ showmount -e
    clnt_create: RPC: Program not registered
    Anyways, yet another reason I haven't moved to 20.04. BTW, this machine is an NFS client and that **was** working before I started screwing around to make it an nfs-server tonight.

  5. #5
    Join Date
    Aug 2010
    Beans
    5

    Re: Unable to start NFS on Ubuntu Server 20.04

    I figured it out. This system has a raid of standard mechanical drives and an NVME ssd installed on a PCI-E adapter card. Ubuntu is installed on a 2.5” SATA drive. This motherboard will not boot from an NVME drive. Or at least this NVME drive. It will not show up in the bios. It’s configured to be the cache drive for the RAID. Honestly I don’t thing it would need it but it’s what they wanted. Anyway, the Ubuntu installer placed some of its folders on that NVME drive. Grub was installed on the SATA drive but told to boot from that cache drive. Not sure how that happened or how it booted. Also not sure how it didn’t break the raid or it’s ability to boot after it set the raid up they way they wanted. I rebuilt Ubuntu on the SATA ssd. Fixed grub but setting it not to look at that NVME drive to boot and wiped that NVME drive. Rebooted and now NFS works.

    My assumption is this machine has an uncommon setup the Ubuntu server installer couldn’t make sense of. I honestly didn’t know that NVME drive was installed until I took the top off this sever.

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

    Re: Unable to start NFS on Ubuntu Server 20.04

    Sometimes updating the NVMe firmware will help with boot and other issues. I've never done it, as I don't have any NVMe installed (have one on my desk waiting for a new system build).

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
  •