NFS v4 on Proxmox 4.1

DynFi User

Renowned Member
Apr 18, 2016
152
17
83
49
dynfi.com
Hello,

I have planned to migrate my old install of proxmox 3.4 to 4.1 in the coming days.
But unfortunately, we have some NFS mounted in v.4 under 3.4

The test server that we have in 4.1 does not seem very happy when we try to mount or force mount NFS v4…

When mounting manually we have a very explicit error :

root@proxmini:/etc/pve# mount -t nfs4 -o proto=tcp,timeo=1800,local_lock=none 192.168.210.140:/mnt/data/newmail/virtual/ /tmp/mnt

mount.nfs4: Protocol not supported

This is quite weird since we have a 3.4 version with very good support of NFS v4…

So my question is quite simple : is NFS v4 supported on Proxmox 4.1 ?
• If "no", will it be supported in Proxmox 4.2 ?
• If "yes" any pointer or guide or procedure ?
 
Does it work if you use the nfsvers=4 mount option instead?

# mount -t nfs -o nfsvers=4,proto=tcp,timeo=1800,local_lock=none 192.168.210.140:/mnt/data/newmail/virtual/ /tmp/mnt
 
Hello Dietmar,

Thanks for your answer.
Of course the protocol is supported on our server (and as I wrote, It is working in OpenVZ hosts).

Unfortunately It is not working with the line you sent me :

root@proxmini:/home/gregober# mount -t nfs -o nfsvers=4,proto=tcp,timeo=1800,local_lock=none 192.168.210.140:/mnt/data/newmail/virtual/ /tmp/mnt
mount.nfs: Protocol not supported

FYI - I am copying the PVE version of our install :

root@proxmini:/home/gregober# pveversion
pve-manager/4.1-22/aca130cf (running kernel: 4.2.6-1-pve)​


Do you have any other suggestion or any information related to updates in NFS so that we can get a full support of NFS v4 ?

Thanks.
 
Nope…

It looks like the command line should be more :

# modprobe nfs4

The other command returned an error :

root@proxmini:/ # modprobe nfsv4
modprobe: ERROR: could not insert 'nfsv4': Invalid argument​


If I do an lsmod to find out more about NFS, I got those results :

root@proxmini:/ # lsmod | grep nfs
nfsv3 40960 1
nfsd 319488 2
auth_rpcgss 61440 1 nfsd
nfs_acl 16384 2 nfsd,nfsv3
nfs 258048 3 nfsv3
lockd 94208 3 nfs,nfsd,nfsv3
grace 16384 2 nfsd,lockd
fscache 65536 1 nfs
sunrpc 331776 20 nfs,nfsd,auth_rpcgss,lockd,nfsv3,nfs_acl​


But still no luck mounting any nfs4 mount from server…

root@proxmini:/ # mount -t nfs4 -o nfsvers=4,timeo=1800,local_lock=none 192.168.210.140:/mnt/data/newmail/virtual/ /tmp/mnt
mount.nfs4: Protocol not supported​


This is really annoying.
Do you have any other idea how to solve this ?


Thank you for your help.
 
[SOLVED]

Ok, after reading and analyzing the situation, I concluded that I might have skipped a reboot after a kernel upgrade.
So I did reboot, and that solved my issue !


Thanks for your help !
 

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!