Support for PVCs whose actual size is different from configured size in the manifest


In some cases a PVC’s manifest shows one size while the size of the actual volume underneath is much larger. Backups work fine, but when a restore is performed the PVC is created with the size specified in the manifest, which may not be sufficient to hold all the data.


Add the annotation “” to the PVC and set its value to the actual size (using appropriate units as understood by Kubernetes).


kubectl -n <NAMESPACE> annotate pvc <PVC-NAME>

Note that this annotation needs to be present at backup time.