change NFS Version on TrueNAS Scale Datastore

bumann

Renowned Member
May 1, 2016
30
1
73
40
Hi,

i use a Truenas Scale as NFS Sorage for my 3 Node Cluster.
Actual i use NFSv3, but i want to use NFSv4.1
Can i change the Version without struggel?
I think i stop the vms bevore change.
I read some on internet they said it is not a good idea.
 
Normally in linux a actual "nfs-server" will support v3, v4.0, v4.1 and v4.2 same time by config.
As same is true for a "nfs-client" both would try to do a mount with the highest possible version if not defined otherwise (mount cmd or /etc/fstab).
So you could for testing just mount your same actual used share to another directory with other nfs version and check the results without get in problem with your actual running vm's. Btw. pve do v4.2 mounts by default too so you limit the version to use in truenas or in pve before.
 
Hello,

Good morning. Just to clarify, you're using NFS v3 on TrueNAS and PVE and you'd like to swtich to 4.x?

The issue you'll run into is that Proxmox's GUI tools for managing NFS depend on the NFS v3 RPC tools.
NFS v4 doesn't support those RPC tools, and doesn't seem to implement a replacement.
(I spent several hours at one point trying to figure out why my NFSv4 shares were all suddenly dead in Proxmox before I realized what was going on.)

So, for instance, Proxmox's GUI cannot detect or add available NFS shares on an NFS server that's v4 only. And adding v4 shares and then turning off v3 on TrueNAS seems to break those shares (though I haven't tested this in a while).

So, here's what I'd do:
Leave NFS v3 and v4 enabled in TrueNAS.
When you add the NFS share to Proxmox, used the advanced options to have it connect via whatever version of NFS 4.x you want to use.
Proxmox will use NFS v3 to set up the share, and then NFS v4 to actually connect.

EDIT: It might be possible to import shares from an NFSv4-only server if you wanted to use the PVE CLI tools to do it and knew all the details (inicluding share path) for your NFS shares. It's not worth it, IMO. Let it use NFSv3 to set up the share, and then it'll work at NFSv4 as long as you tell it to.
 
Last edited: