XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Delta Backup not deleting old snapshots

    Scheduled Pinned Locked Moved Backup
    4 Posts 3 Posters 30 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Pa3docypris
      last edited by Pa3docypris

      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

      10292e57-d340-486f-b638-7ab6883baa5b-image.png

      florentF A 2 Replies Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @Pa3docypris
        last edited by

        @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

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Pa3docypris @florent
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Andrew Top contributor @Pa3docypris
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post