[SOLVED] nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post Reply
User avatar
UrQuan3
Posts: 26
Joined: Sat Mar 19, 2016 6:56 am
languages_spoken: english
ODROIDs: HC4, N2, Odroid-Go, XU4(died)
Location: USA
Has thanked: 1 time
Been thanked: 3 times
Contact:

[SOLVED] nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post by UrQuan3 »

I am building my brand new HC4 based file server. I am using the 'mate' version, though I can move to 'minimal' if required. When I installed nfs-kernel-server as Ubuntu directs, I get some strange results and NSF does not seem to be functional (see below). The result is that none of the NSF service targets appear in systemctl.

I have no idea what "X.service is a disabled or static unit" means. Is there something I need to compile to get this to work? An NSF NAS seems like an obvious use for the HC4.

I had already run "sudo apt update" "sudo apt upgrade" if that helps.
odroid@odroid:/etc$ sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
crda libflashrom1 libftdi1-2 libssl1.1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
keyutils libevent-core-2.1-7 nfs-common rpcbind
Suggested packages:
open-iscsi watchdog
The following NEW packages will be installed:
keyutils libevent-core-2.1-7 nfs-common nfs-kernel-server rpcbind
0 upgraded, 5 newly installed, 0 to remove and 20 not upgraded.
Need to get 571 kB of archives.
After this operation, 1887 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libevent-core-2.1-7 arm64 2.1.12-stable-1build3 [91.1 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 rpcbind arm64 1.2.6-2build1 [46.2 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 keyutils arm64 1.6.1-2ubuntu3 [50.0 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 nfs-common arm64 1:2.6.1-1ubuntu1.2 [241 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 nfs-kernel-server arm64 1:2.6.1-1ubuntu1.2 [143 kB]
Fetched 571 kB in 1s (582 kB/s)
Selecting previously unselected package libevent-core-2.1-7:arm64.
(Reading database ... 215262 files and directories currently installed.)
Preparing to unpack .../libevent-core-2.1-7_2.1.12-stable-1build3_arm64.deb ...
Unpacking libevent-core-2.1-7:arm64 (2.1.12-stable-1build3) ...
Selecting previously unselected package rpcbind.
Preparing to unpack .../rpcbind_1.2.6-2build1_arm64.deb ...
Unpacking rpcbind (1.2.6-2build1) ...
Selecting previously unselected package keyutils.
Preparing to unpack .../keyutils_1.6.1-2ubuntu3_arm64.deb ...
Unpacking keyutils (1.6.1-2ubuntu3) ...
Selecting previously unselected package nfs-common.
Preparing to unpack .../nfs-common_1%3a2.6.1-1ubuntu1.2_arm64.deb ...
Unpacking nfs-common (1:2.6.1-1ubuntu1.2) ...
Selecting previously unselected package nfs-kernel-server.
Preparing to unpack .../nfs-kernel-server_1%3a2.6.1-1ubuntu1.2_arm64.deb ...
Unpacking nfs-kernel-server (1:2.6.1-1ubuntu1.2) ...
Setting up rpcbind (1.2.6-2build1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /lib/systemd/system/rpcbind.socket.
Setting up libevent-core-2.1-7:arm64 (2.1.12-stable-1build3) ...
Setting up keyutils (1.6.1-2ubuntu3) ...
Setting up nfs-common (1:2.6.1-1ubuntu1.2) ...

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/nfs.conf with new version
Adding system user `statd' (UID 129) ...
Adding new user `statd' (UID 129) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
Created symlink /etc/systemd/system/remote-fs.target.wants/nfs-client.target → /lib/systemd/system/nfs-client.target.
auth-rpcgss-module.service is a disabled or a static unit, not starting it.
nfs-idmapd.service is a disabled or a static unit, not starting it.
nfs-utils.service is a disabled or a static unit, not starting it.
proc-fs-nfsd.mount is a disabled or a static unit, not starting it.
rpc-gssd.service is a disabled or a static unit, not starting it.
rpc-statd-notify.service is a disabled or a static unit, not starting it.
rpc-statd.service is a disabled or a static unit, not starting it.
rpc-svcgssd.service is a disabled or a static unit, not starting it.
rpc_pipefs.target is a disabled or a static unit, not starting it.
var-lib-nfs-rpc_pipefs.mount is a disabled or a static unit, not starting it.
Setting up nfs-kernel-server (1:2.6.1-1ubuntu1.2) ...
Created symlink /etc/systemd/system/nfs-client.target.wants/nfs-blkmap.service → /lib/systemd/system/nfs-blkmap.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service.
nfs-mountd.service is a disabled or a static unit, not starting it.
nfsdcld.service is a disabled or a static unit, not starting it.

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Last edited by UrQuan3 on Sun Feb 11, 2024 5:27 am, edited 1 time in total.

User avatar
mad_ady
Posts: 11926
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 662 times
Been thanked: 1253 times
Contact:

Re: nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post by mad_ady »

Not all NFS components need to be running. I run nfs-mountd, and have my exports in /etc/exports

User avatar
UrQuan3
Posts: 26
Joined: Sat Mar 19, 2016 6:56 am
languages_spoken: english
ODROIDs: HC4, N2, Odroid-Go, XU4(died)
Location: USA
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post by UrQuan3 »

Thank you for the reply.

What the? nfs-mountd is totally running.

Ok. I'm going to file this away as 'weird' and move on. In the terminal window I used to install nfs, running "sudo systemctl status nfs-mountd" fails with a service not found and nfs.conf and nfs.conf.d/ are the only tab auto-completes found. But, if I open a new terminal window it works fine.

Moving on.

Thank you for your help, or just making me look at it again. I think I will reboot now.

User avatar
mad_ady
Posts: 11926
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 662 times
Been thanked: 1253 times
Contact:

Re: [SOLVED] nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post by mad_ady »

Try running sudo exportfs to see if it's working...
These users thanked the author mad_ady for the post:
UrQuan3 (Tue Feb 13, 2024 9:05 am)

User avatar
UrQuan3
Posts: 26
Joined: Sat Mar 19, 2016 6:56 am
languages_spoken: english
ODROIDs: HC4, N2, Odroid-Go, XU4(died)
Location: USA
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: [SOLVED] nfs server "nfs-utils.service is a disabled or a static unit, not starting it."

Post by UrQuan3 »

It works. Sorry for taking so long to verify.

For humor's sake, I will explain what took so long. My plan is to copy over the settings from the 8 year old server to this one. When I looked at the /etc/exports, I ended up deep down a rabbit trail of what the !@#! was I doing?? Let's say one of the exported data drives is mounted at /storage/storage1 with the data in /storage/storage1/storagemain. However, in the exports file, I am exporting /nfsexports/storagemain. The heck? Was it a symbolic link? No. I finally found that in the /etc/fstab, after mounting /storage/storage1, I was then binding /storage/storage1/storagemain to /nfsexports/storagemain. *WHY??* I don't know. No idea.

Thank you for your help.
These users thanked the author UrQuan3 for the post:
odroid (Tue Feb 13, 2024 9:46 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests