@ wrote... (2 years, 3 months ago)

Just a quick note before I forget what little I understand. Something happened (or because I installed proxmox on top of an existing debian install, I honestly can't remember since it was like 4 weeks ago) during my install of proxmox. Long story short is that the nfs server doesn't work on reboot.

$ showmount -e
clnt_create: RPC: Program not registered

So then if you manually run rpc.mountd

$ rpc.mountd

$ showmount -e
Export list for proxmox-1
/tank/etc      192.168.1.0/24

But then you can't actually mount anything until you run rpc.nfsd

$ rpc.nfsd
$ mount proxmox-1:/tank/etc /tmp/etc
# totally works
$ ps auxw |grep rpc.nfsd
# no results

So I'm not sure what's going on. I do know that the half init.d half systemd scripts are somehow buggy.

The really crappy thing is that until I figure out the real solution I can't safely reboot my boxes.

Category: tech, Tags: proxmox
Comments: 3
Comments
1.
Frank @ August 25, 2018 wrote... (7 months ago)

thanks for pointing this out, I have been having the same problem in Debian 9 (I am running it without systemd).

I think your hunch looks right: that the /etc/init.d/rpcbind is incomplete.

I am trying with putting this in /etc/rc.local:

## start portmapper manually and zfs shares
/usr/sbin/rpc.mountd
/usr/sbin/rpc.nfsd
/sbin/zfs share -a
2.
Kurt @ August 25, 2018 wrote... (7 months ago)

I've since figured out at least one problem that likely solves this.

Add manual share to /etc/exports

# /etc/exports
/mnt 127.0.0.1(ro,no_subtree_check)

This kick starts the nfs subsystem and allows shares to work.

3.
Frank @ August 25, 2018 wrote... (7 months ago)

yes, you're right… it doesn't like starting shared when /etc/exports is empty!

I had forgotten that trick.

The manual commands are a good reference anyway, helpful for getting unstuck, thanks!

Click here to add a comment