bitmap 'virtnbdbackup.X' not found in backing chain when switching to a new backup location #285
-
|
Hi, We are using v2.30 and v2.37. We have a monthly backup scheme that consist of 1 full + 30 incrementals and at the first day of each month we start a new backup chain in a new location. This month we noticed that the initial month's backup failed because: The backup correctly switched to full but is complaining about the missing checkpoints. They exist in the previous month's directory 20250901 but not 20251001 (obviously). We could fix this by copying over the checkpoints subdirectory and .cpt file or by deleting the existing 30 or so (metadata) checkpoints in the running VM. We chose for the second option and then a new full backup started without problem. This problem didn't happen in the previous month so I am confused as what may have caused this? The issue happened with v2.30. We then upgraded to v2.37 but the behaviour didn't change. We still had to delete the metadata checkpoints. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
see readme: most probably in these cases VM was powered off in a way it was not able to write the bitmaps to the qcow file. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Thanks for the reply. I was aware of the README entry. But the reason I also posted the message is because of the comment:
Except it didn't, we had to manually remove all the existing checkpoints.
Do you mean at the point when the new backup chain was started (it was online) or sometime in the past month? |
Beta Was this translation helpful? Give feedback.
-
|
well, it falls back in case an incremental backup is attempted. In your case, an full backup was attempted but it failed to remove the existing checkpoints, because at least one bitmap tied to an old checkpoint was not existant in the qcow image anymore. This can happen for example if the host is powered off (power outage) or the qemu process for the virtual machine dies with another reason not allowing to flush the bitmaps to the qcow image. Or if the virtual machine qcow image was converted without keeping bitmaps.. or.. other reasons. So you have to check what happend to the qcow image or the virtual machine after the checkpoint/bitmap "virtnbdbackup.4" was created for your incremental chain. The more checkpoints exist, the more likely it is that some failure leads to this situation. During a full backup, it allways attempts to remove all old checkpoints, if that doesnt work, you need to manually handle things. It would be possible to implement fallback code that forcefully removes the inconsistent checkpoints, even if the bitmap is not existant anymore and issues an warning. But anyhow, in a well operated system these cases should not happen that often. |
Beta Was this translation helpful? Give feedback.
-
|
Ive pushed some changes to this branch: basically during full backup, checkpoint/bitmap consistency is now validated and if an inconsistency is detected, the As this is an patch working around a particular issue in your environment and nothing that troubles me much, i'd |
Beta Was this translation helpful? Give feedback.
-
|
Hi Michael, Thanks for the explanation and the proposed fix. I am working on trying to get some sponsoring sorted. |
Beta Was this translation helpful? Give feedback.
-
|
changes merged to new version 2.38 |
Beta Was this translation helpful? Give feedback.
changes merged to new version 2.38