Too many snapshots
-
@Pilow Agree.... have to be sure that garbage collection is completed or it'll never catch up if backups continue to be run without the coalesce completing.
-
If each CR backup is now created as a snapshot, instead of a new VM, and the alert triggers after a VM has more than three snapshots, this logically means that the alert will trigger if the CR has a retention value greater than 3.
Have I misunderstood how the CR backup process works?
-
@McHenry I dont think more than 3 snapshots triggers an error, just tested on one VM

it is not recommended for "in production" VMs, but for a CR destination, it's OK (as you would need to start a copy anyway)
your problem, failing CR jobs is probably due to garbage collection not finishing in the one hour timeframe when chain is long.
-
CR jobs are not failing just XO reports too many snapshots under:
Dashboard >> HealthAll good if I can just ignore this warning but thought best to check in case it was an issue.
I got the value of 3 from here.
https://docs.xen-orchestra.com/manage_infrastructure#too-many-snapshots -
@McHenry could you screen the health page ?
where we could see the chain length -
Hello,
I see also this behavior which is "new" since few weeks.
Previously, when a backup start:
- it stake a snapshot ( if there another one before, it delete it ).
- it upload the snapshot as a backup
- it coalesce the backup on the remote.
- end of the game.
Now, the old snapshots are not deleted anymore which can lead easily to some disk full.
Even with a retention of 1, the problem is present.
I observe this only in Backup job, not DR/CR job.
I just updated my XO to latest version, i will see if the issue is fixed.
-
The number of snapshots shows 16, which makes sense as I have two backup schedules, one with a retention of 15 and one with a retention of 1. The daily backup with a retention of 1 resets the chain, as it is a full backup.

-
Hello @McHenry .
Yes but no, once the snapshot is exported, the previous one must be cleaned on local.
Best regards,
-
Thanks.
The old snapshots are being removed as the total never increases beyond 16, so when a new snapshot is added, the old one is removed. -
Thanks.
The old snapshots are being removed as the total never increases beyond 16, so when a new snapshot is added, the old one is removed.immediatly removed, yes, but then Garbage collection takes place.
and perhaps with 19x16 GC to process it can't be done in one hour, and then next CR is launched, etc etc...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
