#shrink qtree with nas-eco driver

1 messages · Page 1 of 1 (latest)

delicate trout
#

Hi *,

We are using Trident with the NAS-ECO driver. We now want to reduce the size of one Qtree.
This step does not seem to be supported by Red Hat (we opened a case).
We are now thinking of simply shrinking the Qtree quota manually.
Does anyone have any experience with this?
The OpenShift image registry is placed into our qtree and it would take a long time to move all the files to a new PVC.

Is there a supported way to shrink the Qtree quota for this Trident PVC?

midnight sluice
#

According to https://kb.netapp.com/Cloud/Astra/Trident/Can_Trident_with_Kubernetes_or_Openshift_reduce_the_size_of_a_deployed_persistent_volume_PV this is a K8s directive. It mentions that SAN type volumes don't resize smaller and K8s has not put in options for checking what type of storage is being used and if it is allowable to resize smaller.
I quickly tested a small nas-economy volume and the only issues I can see is that K8s is going to report larger storage usage than ONTAP will, but it was not thoroughly tested, so there may be some other issues we have not seen.
Since K8s would have to change, there isn't anything Trident can do to work around the issue.
The supported method of solving this is to create a new PVC of the correct size and manually copy data from the old PVC to the new one (from within a pod) and remove the old PVC.