Backup fails after a restore · abbbi/virtnbdbackup · Discussion #48 (original) (raw)

Restoring a virtual machine will create a new qcow image. The bitmap information is saved in two places:

  1. libvirt saves checkpoint information
  2. the qcow images include the dirty bitmap tied to the checkpoint.

If you have restored the virtual machine disk, there are no bitmaps existant in the restored qcow image.
You have to create a new full backup chain, but virtnbdbackup will fail to remove the checkpoints because
of the missing bitmap.

To cleanup the situation remove the existing checkpoints from libvirt using:

virsh checkpoint-list [..]
virsh checkpoint-delete [..]

if virsh checkpoint-delete fails because it is missing the bitmaps (likely), remove the checkpoint metadata only using
the