Adding storage in nfs 4.0

May 9, 2022
14
1
8
Hi,
When you add storage NFS, the options aviable are :
Default
3
4
4.1
4.2

I think, there is a mistake as if you chose 4 in fact it will use the upper version compatible with the server intead of 4.0

It should be normally ;
Default
3
4.0
4.1
4.2

mount -t nfs -o vers=4 ...
is not the same as
mount -t nfs -o vers=4.0 ...

The first will mount with the max aviable nfs v4 version and the second will stick the version to 4.0
it is especially important if you want to NOT use session trunking/multipath in case you are using multiple interfaces (or IP) on storage and PVE.
I know it is possible to use nfs 3 (it doen't support trunking/multipath) but i prefer to use NFS 4.0 instead.

So actually it is not possible to create a storage sticked on NFS 4.0

Thanks to modify it.

 
You can do that manually in /etc/pve/storage.cfg after created your nfs definition in gui as just define "options vers=4.0" in the part of that nfs share defintion. After that you have to remount that share by disable/enable/boot/manual cmd's.