KVM snapshots are not being removed #11959
-
|
Hi! My KVM snapshots are not being removed, neither through the "keep" parameter of the automatic scheduling nor even when I manually select the snapshot and delete it. In the snapshot_store_ref table, the state column is only changed to Hidden, and therefore the physical files continue to occupy space in the secondary storage. I am using version 4.21.0.0, snapshot.backup.to.secondary = true and kvm.incremental.snapshot = true. Does anyone know what I need to do to actually remove the snapshots from the secondary storage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
@bigsys-it , this depends a bit, the wnapshots are “hidden” because they may still be parents to other snapshots. Untill coalesced these intermediate shapshots are still needed. Is it that there are newer snapshots after the ones you try to delete? |
Beta Was this translation helpful? Give feedback.
Hello @bigsys-it,
The KVM incremental snapshots will be kept in storage until no new snapshot depends on them, as @DaanHoogland explained.
By default, a snapshot chain will last 16 snapshots, then a new chain will be created; meaning that after you create 16 snapshots, on the 17th, it will be a new full snapshot and will not depend on the previous 16; thus, when the 16th snapshot is deleted, its whole chain will also be gone.
To configure this behavior you may change the
snapshot.delta.maxparameter to a different snapshot chain size.