NFSv4 mount not working

taich

Member
Aug 15, 2020
116
18
23
64
I run a Proxmox VE Cluster version 7.4.3 and I want to mount a NFS storage.
The NFS server is a ubuntu nfs-kernel-server and I configured it so that it only accepts NFS version 4 mounts.

Unfortunately the proxmox server does not accept version 4 mounts.
This is what log says:

Code:
pve1 pvestatd[1074]: mount error: mount.nfs: requested NFS version or transport protocol is not supported

Is there a way to mount NFSv4?
 
You can probably start here:
https://forum.proxmox.com/threads/mount-nfs-4-1-share.43034/#post-206656

If that doesnt help, try other results from "proxmox nfsv4" search, or just "nfsv4" in forum. There were some issues with some kernels, if i remember correctly.
It always helps when requester specifies their software versions (pveversion -v) and provides at least some configuration information (cat /etc/pve/storage.cfg).



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
The NFSv4 itself server works.
I can mount all exports on other servers, but proxmox complains and states that this version is not supported.

Code:
pveversion -v
proxmox-ve: 7.4-1 (running kernel: 5.15.104-1-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-5.15: 7.4-1
pve-kernel-5.4: 6.4-18
pve-kernel-5.15.104-1-pve: 5.15.104-2
pve-kernel-5.15.102-1-pve: 5.15.102-1
pve-kernel-5.4.189-2-pve: 5.4.189-2
pve-kernel-5.4.106-1-pve: 5.4.106-1
ceph-fuse: 14.2.21-1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-4
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.1-1
proxmox-backup-file-restore: 2.4.1-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.6.5
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-2
pve-firewall: 4.3-1
pve-firmware: 3.6-4
pve-ha-manager: 3.6.0
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.4-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1


storage.conf

Code:
dir: local
        path /var/lib/vz
        content rootdir
        shared 0


lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir


nfs: DRBD
        export /data/nfsshare
        path /mnt/pve/DRBD
        server 192.168.99.100
        content images,iso,vztmpl,rootdir,snippets
        options vers=4
        prune-backups keep-all=1
 
/usr/sbin/rpcinfo 192.168.99.100
Code:
program version netid     address                service    owner
    100000    4    tcp6      ::.0.111               portmapper superuser
    100000    3    tcp6      ::.0.111               portmapper superuser
    100000    4    udp6      ::.0.111               portmapper superuser
    100000    3    udp6      ::.0.111               portmapper superuser
    100000    4    tcp       0.0.0.0.0.111          portmapper superuser
    100000    3    tcp       0.0.0.0.0.111          portmapper superuser
    100000    2    tcp       0.0.0.0.0.111          portmapper superuser
    100000    4    udp       0.0.0.0.0.111          portmapper superuser
    100000    3    udp       0.0.0.0.0.111          portmapper superuser
    100000    2    udp       0.0.0.0.0.111          portmapper superuser
    100000    4    local     /run/rpcbind.sock      portmapper superuser
    100000    3    local     /run/rpcbind.sock      portmapper superuser
    100005    1    udp       0.0.0.0.158.97         mountd     superuser
    100005    1    tcp       0.0.0.0.150.97         mountd     superuser
    100005    1    udp6      ::.213.186             mountd     superuser
    100005    1    tcp6      ::.146.213             mountd     superuser
    100005    2    udp       0.0.0.0.188.150        mountd     superuser
    100005    2    tcp       0.0.0.0.147.189        mountd     superuser
    100005    2    udp6      ::.210.25              mountd     superuser
    100005    2    tcp6      ::.171.135             mountd     superuser
    100005    3    udp       0.0.0.0.160.183        mountd     superuser
    100005    3    tcp       0.0.0.0.160.233        mountd     superuser
    100005    3    udp6      ::.146.139             mountd     superuser
    100005    3    tcp6      ::.129.215             mountd     superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100227    3    tcp       0.0.0.0.8.1            -          superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100227    3    udp       0.0.0.0.8.1            -          superuser
    100003    3    tcp6      ::.8.1                 nfs        superuser
    100003    4    tcp6      ::.8.1                 nfs        superuser
    100227    3    tcp6      ::.8.1                 -          superuser
    100003    3    udp6      ::.8.1                 nfs        superuser
    100227    3    udp6      ::.8.1                 -          superuser
    100021    1    udp       0.0.0.0.152.43         nlockmgr   superuser
    100021    3    udp       0.0.0.0.152.43         nlockmgr   superuser
    100021    4    udp       0.0.0.0.152.43         nlockmgr   superuser
    100021    1    tcp       0.0.0.0.162.191        nlockmgr   superuser
    100021    3    tcp       0.0.0.0.162.191        nlockmgr   superuser
    100021    4    tcp       0.0.0.0.162.191        nlockmgr   superuser
    100021    1    udp6      ::.201.126             nlockmgr   superuser
    100021    3    udp6      ::.201.126             nlockmgr   superuser
    100021    4    udp6      ::.201.126             nlockmgr   superuser
    100021    1    tcp6      ::.172.145             nlockmgr   superuser
    100021    3    tcp6      ::.172.145             nlockmgr   superuser
    100021    4    tcp6      ::.172.145             nlockmgr   superuser
 
I did no try it with proxmox 8 till now, but nfsv4 is definitly not working in proxmox 7
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!