https://rancher.com/ logo
Title
l

late-needle-80860

10/10/2022, 2:02 PM
Anyone here with some input on what’s considered best practice in regards to the combo of Longhorn<>Velero .. in regards to cleaning up snapshots. • Our Velero is set to retain 5 backups … and CSI Snapshots is enabled ◦ Velero triggers Longhorn via the
VolumeSnapshotClass
• Longhorn backs up and is configured to integrate with MinIO to store the data … We’re seeing a lot of storage usage and after having read > https://longhorn.io/docs/1.3.1/volumes-and-nodes/volume-size/ I’m thinking about if it’ll be beneficial to configure a
snapshot recurring job
with a
retention of 1
in order to get these snapshots taking up storage space to reclaim disk space. As my thinking/understanding is that the data is stored on MinIO anyways and
Velero
tracks the data on MinIO and on restore will trigger
Longhorn
- again over
CSI
VolumeSnapshot
for restore … and the data will be fetched from
MinIO
. So the data in all these
snapshots
that one can see on the sub-volume page for a specific
Volume
can be reclaimed and we still have backup data in the case we need it for restore. Is this correctly understood? And thank you very much.
Anyone please?
n

narrow-egg-98197

10/11/2022, 4:47 PM
You mean create the snapshot with a retention of 1 and backup the data via Velero in case of recovery? If so, I think it would be helpful to clean up disk space by deleting snapshot.
l

late-needle-80860

10/11/2022, 4:56 PM
A pvc backup is done by Velero triggering longhorn via the csi snapshot controller … We’ve not configured any retention in longhorn. As we’re trying to rely on the retention settings of longhorn. There’s already some issues around volume snapshots not being deleted by longhorn automatically on the longhorn GitHub repo — I hope that makes it clearer
*rely on the retention settings of Velero Of course
But, if configuring longhorn with that retention setting helps - because we’re relying on longhorn … then it’s cool
Is there a better place to discuss/debate this question. I would love to land somewhere we here we don’t get unnecessary disk space usage alerts and the like. —- Shouldn’t the backups in longhorn be deleted when Velero deletes a backup? Thank you
n

narrow-egg-98197

10/15/2022, 2:38 PM
I think we're working on enabling snapshots to be cleaned up periodically, which saves disk space occupied by volume snapshots. (Ref. https://github.com/longhorn/longhorn/issues/3836)
l

late-needle-80860

10/15/2022, 7:44 PM
Yeah that’s right. I’ve seen that issue before and I’m tracking it. Nothing else to do then than set up a job that cleans up snapshots. Shouldn’t be a prob. If the snapshots are deleted as the backup data is still there externally - and longhorn do not need this volume snapshot data in the case of a restore right? When the backup system is external to Velero and data stored externally as well? Thanks
Is there any news on when we might see this into a new minted version of Longhorn?
n

narrow-egg-98197

10/17/2022, 2:27 AM
This item is scheduled to be released in v1.4.0 with a release date of December 29th.
🎯 1