Hello,
After a reboot of OMV 7, NFS server is seen on the network and mounts can be accessed rw. After some minutes the NFS server dissapears and can't be accessed anymore rendering it useless.
I have tried this from 2 separate Proxmox Ubuntu VM and LXD and they behave the same.
Please have a look at the logs:
/etc/nfs.conf.d/99-openmediavault.conf
Code
root@nas:~# cat /etc/nfs.conf.d/99-openmediavault.conf
[nfsd]
threads=8
udp=yes
tcp=yes
vers2=no
vers3=yes
vers4=yes
vers4.0=yes
vers4.1=yes
vers4.2=yes
Display More
Code
root@nas:~# journalctl -b -g "nfs"
Oct 01 12:17:23 nas systemd[1]: Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
Oct 01 12:17:23 nas kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
Oct 01 12:17:23 nas systemd[1]: Mounted proc-fs-nfsd.mount - NFSD configuration filesystem.
Oct 01 12:17:24 nas systemd[1]: rpc-svcgssd.service - RPC security service for NFS server was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
Oct 01 12:17:24 nas systemd[1]: Starting nfs-idmapd.service - NFSv4 ID-name mapping service...
Oct 01 12:17:24 nas systemd[1]: Starting nfsdcld.service - NFSv4 Client Tracking Daemon...
Oct 01 12:17:24 nas systemd[1]: rpc-gssd.service - RPC security service for NFS client and server was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
Oct 01 12:17:24 nas systemd[1]: Reached target nfs-client.target - NFS client services.
Oct 01 12:17:24 nas systemd[1]: Started nfsdcld.service - NFSv4 Client Tracking Daemon.
Oct 01 12:17:24 nas systemd[1]: Started nfs-idmapd.service - NFSv4 ID-name mapping service.
Oct 01 12:17:24 nas avahi-daemon[666]: Loading service file /services/nfs-iotc_imc_nfs.service.
Oct 01 12:17:25 nas systemd[1]: Starting nfs-mountd.service - NFS Mount Daemon...
Oct 01 12:17:25 nas systemd[1]: Starting rpc-statd.service - NFS status monitor for NFSv2/3 locking....
Oct 01 12:17:25 nas systemd[1]: Started nfs-mountd.service - NFS Mount Daemon.
Oct 01 12:17:25 nas systemd[1]: Started rpc-statd.service - NFS status monitor for NFSv2/3 locking..
Oct 01 12:17:25 nas systemd[1]: Mounting export-iotc_imc_nfs.mount - /export/iotc_imc_nfs...
Oct 01 12:17:25 nas systemd[1]: Mounted export-iotc_imc_nfs.mount - /export/iotc_imc_nfs.
Oct 01 12:17:25 nas systemd[1]: Starting nfs-server.service - NFS server and services...
Oct 01 12:17:25 nas kernel: NFSD: Using nfsdcld client tracking operations.
Oct 01 12:17:25 nas kernel: NFSD: starting 90-second grace period (net f0000000)
Oct 01 12:17:25 nas systemd[1]: Finished nfs-server.service - NFS server and services.
Oct 01 12:17:25 nas systemd[1]: Starting rpc-statd-notify.service - Notify NFS peers of a restart...
Oct 01 12:17:25 nas systemd[1]: Started rpc-statd-notify.service - Notify NFS peers of a restart.
Oct 01 12:17:26 nas avahi-daemon[666]: Service "nas - NFS [iotc_imc_nfs]" (/services/nfs-iotc_imc_nfs.service) successfully established.
Oct 01 12:18:02 nas kernel: NFSD: all clients done reclaiming, ending NFSv4 grace period (net f0000000)
Display More
Code
root@nas:~# journalctl -u nfs-server
-- Boot 2b9c40a30e904c5a80bdfdab9fa7c25b --
Oct 01 09:48:09 nas systemd[1]: Starting nfs-server.service - NFS server and services...
Oct 01 09:48:09 nas systemd[1]: Finished nfs-server.service - NFS server and services.
Oct 01 12:17:08 nas systemd[1]: Stopping nfs-server.service - NFS server and services...
Oct 01 12:17:08 nas systemd[1]: nfs-server.service: Deactivated successfully.
Oct 01 12:17:08 nas systemd[1]: Stopped nfs-server.service - NFS server and services.
-- Boot baef601044004cb092a4064d0960694c --
Oct 01 12:17:25 nas systemd[1]: Starting nfs-server.service - NFS server and services...
Oct 01 12:17:25 nas systemd[1]: Finished nfs-server.service - NFS server and services.
root@nas:~# showmount -e 10.20.10.29
Export list for 10.20.10.29:
/export 10.20.10.0/27
/export/iotc_imc_nfs 10.20.10.0/27
root@nas:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Display More
omv-salt deploy run nfs |more
Code
debian:
----------
ID: remove_upgrade_debian12_conf
Function: file.absent
Name: /etc/nfs.conf.d/local.conf
Result: True
Comment: File /etc/nfs.conf.d/local.conf is not present
Started: 12:36:18.718280
Duration: 0.596 ms
Changes:
----------
ID: configure_nfs_conf
Function: file.managed
Name: /etc/nfs.conf.d/99-openmediavault.conf
Result: True
Comment: File /etc/nfs.conf.d/99-openmediavault.conf is in the correct state
Started: 12:36:18.718972
Duration: 95.697 ms
Changes:
----------
ID: configure_idmapd_conf
Function: file.managed
Name: /etc/idmapd.conf
Result: True
Comment: File /etc/idmapd.conf is in the correct state
Started: 12:36:18.814793
Duration: 91.413 ms
Changes:
----------
ID: divert_idmapd_conf
Function: omv_dpkg.divert_add
Name: /etc/idmapd.conf
Result: True
Comment: Leaving 'local diversion of /etc/idmapd.conf to /etc/idmapd.conf.distrib'
Started: 12:36:18.906703
Duration: 12.271 ms
Changes:
----------
ID: configure_nfs_exports
Function: file.managed
Name: /etc/exports
Result: True
Comment: File /etc/exports is in the correct state
Started: 12:36:18.919107
Duration: 100.806 ms
Changes:
----------
ID: divert_nfs_exports
Function: omv_dpkg.divert_add
Name: /etc/exports
Result: True
Comment: Leaving 'local diversion of /etc/exports to /etc/exports.distrib'
Started: 12:36:19.020039
Duration: 8.878 ms
Changes:
----------
ID: stop_nfs_blkmap_service
Function: service.dead
Name: nfs-blkmap
Result: True
Comment: The service nfs-blkmap is already dead
Started: 12:36:19.889992
Duration: 26.09 ms
Changes:
----------
ID: mask_nfs_blkmap_service
Function: service.masked
Name: nfs-blkmap
Result: True
Comment: Service nfs-blkmap is already masked
Started: 12:36:19.916237
Duration: 0.505 ms
Changes:
----------
ID: start_nfs_server_service
Function: service.running
Name: nfs-server
Result: True
Comment: The service nfs-server is already running
Started: 12:36:19.917112
Duration: 19.009 ms
Changes:
----------
ID: restart_nfs_utils_service
Function: service.running
Name: nfs-utils
Result: True
Comment: Started service nfs-utils
Started: 12:36:19.936291
Duration: 84.028 ms
Changes:
----------
nfs-utils:
True
Summary for debian
-------------
Succeeded: 10 (changed=1)
Failed: 0
-------------
Total states run: 10
Total run time: 439.293 ms
Display More
On the client:
Code
root@rkadmin:~/testing# date
Tue Oct 1 12:18:11 EEST 2024
root@rkadmin:~/testing# rpcinfo -p 10.20.10.29
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 3 udp 41116 mountd
100005 3 tcp 42449 mountd
100024 1 udp 40086 status
100024 1 tcp 60735 status
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100021 1 udp 59481 nlockmgr
100021 3 udp 59481 nlockmgr
100021 4 udp 59481 nlockmgr
100021 1 tcp 40399 nlockmgr
100021 3 tcp 40399 nlockmgr
100021 4 tcp 40399 nlockmgr
root@rkadmin:~/testing# showmount -e 10.20.10.29
Export list for 10.20.10.29:
/export 10.20.10.0/27
/export/iotc_imc_nfs 10.20.10.0/27
root@rkadmin:~/testing# mount | grep -i nfs
10.20.10.29:/iotc_imc_nfs on /mnt/nfs type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.20.10.1,local_lock=none,addr=10.20.10.29)
root@rkadmin:~/testing# umount /mnt/nfs/
root@rkadmin:~/testing# mount -t nfs 10.20.10.29:/iotc_imc_nfs /mnt/nfs/ -v
mount.nfs: timeout set for Tue Oct 1 12:20:37 2024
mount.nfs: trying text-based options 'vers=4.2,addr=10.20.10.29,clientaddr=10.20.10.1'
root@rkadmin:~/testing# cat /mnt/nfs/data/index.html
Hello, NFS Storage NGINX now
root@rkadmin:~/testing# mount | grep -i nfs
10.20.10.29:/iotc_imc_nfs on /mnt/nfs type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.20.10.1,local_lock=none,addr=10.20.10.29)
root@rkadmin:~/testing# date
Tue Oct 1 12:19:09 EEST 2024
root@rkadmin:~/testing# showmount -e 10.20.10.29
Export list for 10.20.10.29:
/export 10.20.10.0/27
/export/iotc_imc_nfs 10.20.10.0/27
root@rkadmin:~/testing# date
Tue Oct 1 12:22:41 EEST 2024
root@rkadmin:~/testing# showmount -e 10.20.10.29
clnt_create: RPC: Unable to receive
root@rkadmin:~/testing# date
Tue Oct 1 12:26:31 EEST 2024
root@rkadmin:~/testing# showmount -e 10.20.10.29
clnt_create: RPC: Unable to receive
oot@rkadmin:~/testing# rpcinfo -p 10.20.10.29
10.20.10.29: RPC: Remote system error - Connection refused
Display More
What more can I check? Can you please have a look maybe you can spot what is wrong here?
Thank you.