Too many snapshots
-
I have 15 VMs included in a CR backup job.
Recently, I have seen notifications of "too many snapshots".
Whereas previously, each CR job would create a new VM, it appears now that each CR job creates a new snapshot.

The job itself appears to be configured correctly

I am sure I have a setting wrong, but I cannot find which one.
-
@McHenry What do you have
Number of NBD connection per diskset to? -
-
@McHenry for TOO MANY SNAPSHOTS in this case, better look the RETENTION applied to this CR schedule
how many retention points do you have in the schedule of this job ?
-
Currently set to 15 on one schedule and 1 on the other schedule

-
@McHenry could you screenshot the SNAPSHOTS tab of a problematic VM ?
the new backup & CR code changed the way it is handled as you understood... no more "one VM per replica point", but "one VM with a snapshot per replica point"
you should see 16 snapshots on the VM ?
EDIT : my bad, its the first screenshot you provided... indeed 16 snapshots
I do not remember the snapshots limit per VM (50?) , but you seem to bee far from it
-
the limit enforced by XOA is 30
https://docs.xen-orchestra.com/backup_troubleshooting?utm_source=chatgpt.com#vdi-chain-protection
-
Thank you. I did not know this change had been made.
So now I have the master VM with a snapshot for each backup schedule.

And a CR created VM with 16 snapshots.


I wonder why the health check shows too many snapshots as I am well under 30 per VM

-
@McHenry could be another cap limit on the SR
can you screenshot homepage GENERAL tab of HST150 SR ?how many VDIs present ?
what type of SR is it ? -
Throwing my two cents into the hat, as well.
I had a similar situation. Snapshots would't be rotated out of retention, regardless of what I set on the retention setting (on a subset of VMs ie not all of the).. The thing that solved it for my, was to recreate the affected schedule.
Do note that this will mark the previous backups taken by that technically deleted schedule, as being abandoned/orphaned.But after I did this, snapshots would be properly rotated as expected.
-
-
Recreated, testing now.
-
@Pilow
Was there an announcement about the change in how these CR backups are done with snapshots now?I'd love to read up on it.
-
@McHenry screenshot the GENERAL tab of "Disaster Recovery" SR please
just to see how many VDIs it hosts... at least 288it was announced here
https://xen-orchestra.com/blog/xen-orchestra-6-3/#
-backup
but it is not explaing in details, I gathered information in another topix in this forum from @florentyou also have the Changelog of 6.3.0
https://github.com/vatesfr/xen-orchestra/blob/master/CHANGELOG.md#630-2026-03-31points to PR9524
[Replication] Reuse the same VM as an incremental replication target (PR #9524) -
-
@Pilow Yes; it's been my understanding that this has been the default for many years now.
-
@tjkreidl yeah, but he has 16 snapshots.
but the documentation also talks about vdi chain lengthbut it seems to me impossible to have only 16 snaps and a vdi chain length >30
thats why I wondered perhaps is it a cap limit of snapshots per SR, but I didn't find relevant info about this possibility
you know a lot about Xen, ever heard of this type of per SR limit of snapshots ?
Only info I found is that more than 100/150 VDIs in production per SR can degrade performance -
@Pilow Yes, you are correct that the chain length is also limited. You might try to manually delete some of the snapshots and though the limit is supposed to be 30, perhaps there are other factors involved? Does that VM have a particularly large amount of storage and a lot of changes between snapshots? Are any other of your VMs experiencing similar issues? Your SR appears to be mostly empty, correct? Are there any related errors showing up in /var/log/SMlog ?
-
I wish to maintain 16 restore points using CR, being an hourly restore point over the last two days (8 per day)
I perform a full backup nightly to reset the chain.

It appears that each CR creates a new snapshot and the old snapshot is removed when a new one is crated
The documentation states this error is shown then there are more than 3 snapshots on a VM
https://docs.xen-orchestra.com/manage_infrastructure#too-many-snapshotsIs this a problematic backup strategy?
-
@McHenry Are you sure with that frequent running backups that each backup completes successfully before the next one starts? How long does the full backup typically take (less than 7 hours?) as well as the incrementals (under 1 hour?)? Again, I'd suggest looking in /var/log/SMlog for any error conditions that might help identify an issue. Also, how fragmented is your storage, as that can slow things down quite a bit, as can the lack of adequate CPU power as well as memory (run the top or xentop utility to view the load during backups).
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


