The officially official Devuan Forum!

You are not logged in.

#1 2022-02-18 17:52:16

rolfie
Member
Registered: 2017-11-25
Posts: 1,336  

[SOLVED] nfs trouble on Chimaera

Had to freshly install my file server. The system SSD was defective, data isn't affected. Now the nfs server won't start up. Error message is:

# service nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountdUsage: rpc.mountd [-F|--foreground] [-h|--help] [-v|--version] [-d kind|--debug kind]
	[-o num|--descriptors num]
	[-p|--port port] [-V version|--nfs-version version]
	[-N version|--no-nfs-version version] [-n|--no-tcp]
	[-H prog |--ha-callout prog] [-r |--reverse-lookup]
	[-s|--state-directory-path path] [-g|--manage-gids]
	[-t num|--num-threads=num] [-u|--no-udp]
 failed!
# showmount -e fs090
clnt_create: RPC: Program not registered 

I don't know how to deal with this situation.

Background info: Xeon 4 core CPU on X99-E WS, 32G RAM, 256G Plextor nvme as system disk, LSI9271 supplying a RAID6 with about 5TB space, two more disks for single shares. Installed from Chimaera netinstall, encrypted LVM, openrc as init, manual installation of xorg, lightdm, Mate desktop, nfs-common, nfs-kernel-server. Latest stock kernel and backports kernels available, 5.15 is the default. It does not matter which one I do boot. The RAID6 is nicely decrypted and mounted, also the two other disks. The export file is a copy of the original one from a backup. Most of the setup I have taken from my notes. Everything should work.

The above error is shown as well during boot as when I try to restart the nfs-server. Also showmount throws an error. The duck does not give hints to this error.

Also tried to drill down how the nfs-server is started. The script in /etc/rc0.d does not contain this specific error printout. How can I find the root cause for the startup failure?

Thanks, rolfie

Online

#2 2022-02-19 20:54:58

rolfie
Member
Registered: 2017-11-25
Posts: 1,336  

Re: [SOLVED] nfs trouble on Chimaera

Got the problem. It was a simple "-" in the wrong place in the /etc/default/nfs-kernel-server. I had in there:

RPCMOUNTDOPTS="--manage-gids --debug-all"

Removing the dash in second option changing it to "--debug all" made the script work.

rolfie

Online

#3 2022-02-20 07:50:10

berni51
Member
From: Middle of Germany
Registered: 2018-12-20
Posts: 95  
Website

Re: [SOLVED] nfs trouble on Chimaera

Does it mean hat the rpc.mountd was not started due to the unknown option?


The good ol' days will not return, and the rocks might smelt and the sea may burn.

Offline

#4 2022-02-20 09:42:50

rolfie
Member
Registered: 2017-11-25
Posts: 1,336  

Re: [SOLVED] nfs trouble on Chimaera

Exactly.

Online

#5 2025-11-01 14:51:24

kapqa
Member
Registered: 2019-01-02
Posts: 501  

Re: [SOLVED] nfs trouble on Chimaera

is there already a good wiki on how to start with NFS on Devuan?

the "AI Overview" told me how to automount NFS on Devuan, but it came with systemctl commands through the road, so led my bit astray.

Offline

#6 2025-11-01 17:22:11

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,738  

Re: [SOLVED] nfs trouble on Chimaera

You can use autofs to automount nfs.

Add this at the bottom of /etc/auto.master:

/mnt	/etc/auto.nfs

Create /etc/auto.nfs containing something like:

<share-name>    /path/to/<your-symlink-name>

Make the symlink and restart autofs:

ln -s /mnt/<share-name> /path/to/<your-symlink-name>
service autofs restart

- your-symlink-name can be the same or different from share-name.
- If you're already using /mnt for something else, you can mount the share somewhere else. Just make an empty directory to be used as the mountpoint.
- Don't use fstab for any part of this.

Offline

#7 2025-11-01 17:57:20

rolfie
Member
Registered: 2017-11-25
Posts: 1,336  

Re: [SOLVED] nfs trouble on Chimaera

is there already a good wiki on how to start with NFS on Devuan?

I do not see any big difference between Debian and Devuan regarding the implementation of a nfs server and client. The guides you can find on the internet do apply for both in general.

I have started a file server on Sarge, first of all with Samba for the Windows PCs on my family network. When I started with dual booting with Linux on my home PC, I discovered that I could export the shares I had prepared for Samba easily for nfs too. I started off with nfs(3), and moved to nfs4 some years later. There are a few differences in the way you export the shares, but there is no relation to any init system.

On the client side, I wasn't successful with mounting the shares via fstab due to the fact that the file server was put to sleep at night, and it would wake up past the client, and it needed some additional time for decrypting the shares. So I created a script that is invoked by cron @reboot. The script checks if the server is online, then if the shares are exported, and then it mounts the shares. When the server is off the operation of my workstation isn't affected, just the shares aren't there. I am still using this proven and reliable approach nowadays.

Online

Board footer