Delta Backup not deleting old snapshots
-
Hi there,
First time poster, long time reader. I recently came across an odd problem with my Delta Backup Jobs. I have a a couple of delta backup jobs running daily backups of VMs. I have noticed that 2 of the VMs in the backup job fail to delete the old delta backup snapshot after a new one has been created. The backup job still succeeds and the next backup job runs without error but it creates a long snapshot chain that has to be manually cleaned up. I have noticed that it only seems to only effect Ubuntu 20.04 VMs if that has anything to do with it (there are two ubuntu 18 vms part of this job that seem to be deleting old delta snapshots).
Xen Orchesta Commit: commit db8ad

-
@Pa3docypris the other snapshots are correctly deleted ?
are these VM on a specific storage ?Do you have anythin in the xo-server logs ( like in journalctl ) VDI_IN_USE ?
can you post the full job JSON ( on the top of the backup log there is a download button ) ? eventually by direct chat to me if you prefer to keep it private
-
@florent PM sent with backup job log. Nothing is showing up for VDI_IN_USE in the xo-server logs. One thing I just noticed is that past two jobs have both been full backups when one should have been a full and then a delta.
-
@Pa3docypris I also had this problem with one single Debian VM. I would delete the snapshot and they would just keep adding every backup. I have lots of the same VMs and lots of other VMs on the pool. Three VMs were basically exactly the same but only one had an issue.
I tried deleting all snapshots on the VM. Changing the CBT state. Doing a full backup up of the VM.... same problem. Snapshots just built up.
I found a CD in the VM drive and it would not eject (with a XCP error). So there was something strange with the VM state. I shutdown the VM, cleared the CD, and restarted the VM. After that, backups worked normally for that VM. So I won't blame XCP or XO, it seems the VM was just in a random strange state that caused problems.