This message was deleted.
# longhorn-storage
a
This message was deleted.
b
because it consuming huge size (like double the size), we need to disable the snapshot !!
b
it’s not possible to disable snapshots because they are part of how longhorn works. instead you can delete all existing backups & snapshots and then Longhorn will compress most of the snapshots and you will be able to save space
👍 1

https://www.youtube.com/watch?v=HqJ2iaXZHVw

b
Is there any feature to delete all existing backups and snapshot automatically
b
yes, using kubectl you can do something like
kubectl delete snapshot --namespace XXX
and
kubectl delete backup --namespace XXX
b
ok
but no solution from longhorn to automatically delete right !!!
b
it doesn't make sense to have such functionality as you can do the same thing with a simple kubectl command
b
Yes , kubectl is not an automated solution, just my question was a feature in setting to delete backup or snapshot on some retention and I believe it does not have now
b
of you delete all snapshot one time, then no snapshot will be created (if they are created, they will be deleted automatically for eg when moving s replica on another node) - check out the latest longhorn version, I think that they've release a feature that is cleaning up longhorn snapshots automatically
b
Great thanks for the update
f
Thanks @blue-kitchen-51801 for helping! @bitter-tailor-6977 yes, in the incomming Longhorn v1.5.0, we have that feature https://longhorn.io/docs/1.5.0/snapshots-and-backups/scheduling-backups-and-snapshots/
l
Is there way to remove snapshot which was taken during the expand of the pv ?
327 Views