Can Trident be configured to use only the NFSv3 vs. NFSv4 protocol?
Applies to
Astra Trident
Answer
- Yes, the NFS version can be set in the trident backend config .json or yaml file
- Use nfsMountOptions to select various mount options.
- The resulting backend config can be overridden if a storageclass has nfsMountOption for same backend, which in turn can be overridden by a specific PVC yaml with NFS mount version options
- You may also need to bounce the pods to change the connection from v4 to v3 or visa-versa.
- You can confirm the NFS version that is currently mounted by going to a worker node where a pod is running and enter the following command, which should show the PVCs and their mount options:
# mount | grep pvc
- Also, from the ONTAP cluster side, you can check the NFS connections using the following ONTAP command:
cluster::> vserver nfs connected-clients show
- Please note that if you make any changes to the trident backend (if using tridentctl), you should run a tridentctl update backend command to update it.
Additional Information
additionalInformation_text