nfs rsize wsize with Netapp

sicmtp

New Member
Jun 21, 2023
3
0
1
Hi,

I want to change my storage.cfg with this option:

options vers=3,rsize=131072,wsize=131072

The nfs server in a netapp (ONTAP 9.11)

When I reboot or try to remount my nfs volume, the server doesn't change the rsize or wsize.


root@XXXX:~# mount|grep rsize


X.X.X.X/vol_proxmox_XXXX/proxmox_XXXX on /mnt/pve/groot_windows type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.4.6.205,mountvers=3,mountport=635,mountproto=udp,local_lock=none,addr=X.X.X.X)


Have you got any idea why it's not possible to mount with different rsize and wsize?

Thanks in advance.
 
Given that its mounted under /mnt/pve I presume you are using Proxmox to attach Netap as NFS storage?
In that case, what does your /etc/pve/storage.cfg look like?
Have you updated it with something like: pvesm set groot_windows --options <string>

see "man pvesm" :
--options <string>
NFS mount options (see man nfs)


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
I create a new volume on netapp.

I write on storage.cfg file:

nfs: groot_XXX


export /vol_proxmox_xxxx/proxmox_XXX


path /mnt/pve/groot_XXX


server X.X.X.X


content images


prune-backups keep-all=1


options vers=3,rsize=131072,wsize=131072


When I reboot server, the rsize and wsize option are 65536 and not 131072
 
That would indicate that your NFS server (netapp) only supports a maximum of 65536

man nfs:
Code:
  If an rsize value is not specified, or if the specified rsize value is larger than the maximum that either client or server can support,
 the client and server negotiate the largest rsize value that they can both support.

Code:
 If  a wsize value is not specified, or if the specified wsize value is larger than the maximum that either client or server can support,
 the client and server negotiate the largest wsize value that they can both support.

https://community.netapp.com/t5/ONT...d-from-settings-in-etc-fstab-file/td-p/154669


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
The solution:
On netapp you have to modifiy

  • ONTAP 9 (C mode): tcp-max-xfer-size
::> set -privilege advanced
::*> vserver nfs modify -vserver <vserver_name> -tcp-max-xfer-size <integer_max_xfer_size> [-tcp-max-xfer-size: range 8192 to 1048576 bytes, default 65536 bytes]
::*> vserver nfs show -vserver <vserver_name> -field tcp-max-xfer-size
::*> set -privilege admin

https://kb.netapp.com/onprem/ontap/...e_NFS_TCP_maximum_transfer_size_for_a_Vserver

Thanks
 

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!