#Use Qtrees instead of FlexVol for PVC
1 messages · Page 1 of 1 (latest)
We have relatively old hardware and it won't allow us to create more than 1000 volumes: error creating volume k8s_c_m_fkhrlzjs_pvc_acae3d2b_e59b_4baa_a0a9_da8b34920869: API status: failed, Reason: Maximum number of volumes reached on node "scl-fc2b"., Code: 13063)]
if you are using SAN, use SAN economy, if you are using NAS, use NAS economy, see:
https://docs.netapp.com/us-en/trident/trident-use/ontap-nas.html#ontap-nas-driver-details
how ontap-nas-economy storage driver works around volume number limitations on Node?
The economy drivers populate 1 flexvol with multiple qtrees/ luns. The 1st PVC creates a flexvol initially, based on the criteria in the SC, Trident Backend. and PVC matching the SVM configs and available space, assigned aggrs, etc. Then each PVC request creates 1 qtree (NAS), or lun (SAN), **within **that flexvol, up to the volume limits for Trident (300 qtrees in 1 flexvol NAS), (200 luns for 1 SAN flexvol). New Flexvols will be only created if the SC, Backend, and PVC criteria does not match what is available in SVM, or not enough space, including snapshot reserve, etc..
I would assume that PVC provisioning in this case wound be thin.
also, keep in mind that NAS-ECO is not compatible with CSI Snapshots.
If that feature is required, & if RWO is enough, SAN-ECO is the way to go
based on https://docs.netapp.com/us-en/trident/trident-use/ontap-nas.html we can use RWO, ROX, RWX, RWOP with ontap-nas-economy
seems like RWX would work. wondering is "spaceReserve: volume" (thick provisions would work for PVCs). i.e. if we request 50Gb PVC, ontap-nas-economy would allocate QTree with the space requested and hold it for this PVC. just like ontap-naa would.