Incremental backup chain broken after Alma Linux 9 OS update in the VM #238
Replies: 15 comments
-
I dont see how virtnbdbackup is at fault here, did the alma update do changes on the qcow images? Have the qcow images been converted during said update? There is an option to keep bitmaps during conversion, with the bitmaps missing there is no way the Backup until can continue a chain. You should investigate the reason why the bitmaps are missing now. Most probably they have been converted without the option to keep existing bitmaps. handling these edge situations is non trivial and it’s better to error out instead of risking data loss. |
Beta Was this translation helpful? Give feedback.
-
@abbbi , thanks for your answer.
virsh checkpoint-list al9cdr
Name Creation Time
-----------------------------------------------
virtnbdbackup.0 2024-11-22 13:56:07 -0500
virtnbdbackup.1 2024-11-22 13:56:25 -0500
virtnbdbackup.10 2024-11-22 22:14:06 -0500
virtnbdbackup.11 2024-11-22 22:58:26 -0500
virtnbdbackup.12 2024-11-22 23:07:56 -0500
virtnbdbackup.13 2024-11-22 23:34:50 -0500
virtnbdbackup.14 2024-11-23 00:10:19 -0500
virtnbdbackup.15 2024-11-23 00:16:48 -0500
virtnbdbackup.16 2024-11-23 07:47:03 -0500
virtnbdbackup.17 2024-11-23 10:34:18 -0500
virtnbdbackup.18 2024-11-23 10:42:35 -0500
virtnbdbackup.19 2024-11-23 10:57:15 -0500
virtnbdbackup.2 2024-11-22 14:32:08 -0500
virtnbdbackup.20 2024-11-23 11:13:35 -0500
virtnbdbackup.21 2024-11-23 11:59:53 -0500
virtnbdbackup.22 2024-11-23 14:59:53 -0500
virtnbdbackup.3 2024-11-22 15:15:33 -0500
virtnbdbackup.4 2024-11-22 15:25:19 -0500
virtnbdbackup.5 2024-11-22 15:37:00 -0500
virtnbdbackup.6 2024-11-22 16:04:40 -0500
virtnbdbackup.7 2024-11-22 16:38:02 -0500
virtnbdbackup.8 2024-11-22 16:52:16 -0500
virtnbdbackup.9 2024-11-22 21:49:22 -0500 As you can see, ALL checkpoints are still present in the VM. |
Beta Was this translation helpful? Give feedback.
-
The checkpoints are not the bitmaps, the bitmaps for a checkpoint are saved in the qcow images directly in your case the checkpoints are existing bit the bitmaps are missing |
Beta Was this translation helpful? Give feedback.
-
As you can also see, it would be a lot of work to delete the checkpoints one by one in all machines. |
Beta Was this translation helpful? Give feedback.
-
How would that even happen?? |
Beta Was this translation helpful? Give feedback.
-
In a situation where the checkpoints exist but the bitmaps are missing there is something seriously wrong, I could remove the checkpoints forcefully in this case ( during full backup ) but diring inc or diff backups there is no way to recover gracefully and continue the backup chain |
Beta Was this translation helpful? Give feedback.
-
Something must have altered the qcow images |
Beta Was this translation helpful? Give feedback.
-
To help you figure it out, here is the log of the last successful incremental backup on the aforementioned VM,
|
Beta Was this translation helpful? Give feedback.
-
I can emphatically tell you that is NOT the case. |
Beta Was this translation helpful? Give feedback.
-
The Backup util does not touch the qcow images for the bitmaps in any way it all goes through the libvirt api. If libvirt is removing a checkpoint it also deletes the bitmap. This usually only happens during a full backup. |
Beta Was this translation helpful? Give feedback.
-
I agree but there was NO full backup in between. For reference, here is the incremental script for the vm=al9cdr && virtnbdbackup -d $vm -l inc -o /zfs212/vms-bkp/$vm |
Beta Was this translation helpful? Give feedback.
-
Like said, you should check what has reset bitmap information in the qcow images, check with qemu-img info util if they are all gone or just some of them. I still don’t see how this issue is caused by the backup util Maybe also check alma upgrade and/or libvirt logs |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestion. image: al9cdr.qcow2
file format: qcow2
virtual size: 50 GiB (53687091200 bytes)
disk size: 24.5 GiB
cluster_size: 65536
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
bitmaps:
[0]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.13
granularity: 65536
[1]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.12
granularity: 65536
[2]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.11
granularity: 65536
[3]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.10
granularity: 65536
[4]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.9
granularity: 65536
[5]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.8
granularity: 65536
[6]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.7
granularity: 65536
[7]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.6
granularity: 65536
[8]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.5
granularity: 65536
[9]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.4
granularity: 65536
[10]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.3
granularity: 65536
[11]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.2
granularity: 65536
[12]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.1
granularity: 65536
[13]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.0
granularity: 65536
[14]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.14
granularity: 65536
[15]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.18
granularity: 65536
[16]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.17
granularity: 65536
[17]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.16
granularity: 65536
[18]:
flags:
[0]: in-use
[1]: auto
name: virtnbdbackup.15
granularity: 65536
refcount bits: 16
corrupt: false
extended l2: false
Child node '/file':
filename: al9cdr.qcow2
protocol type: file
file length: 24.5 GiB (26292322304 bytes)
disk size: 24.5 GiB
Format specific information:
extent size hint: 1048576 |
Beta Was this translation helpful? Give feedback.
-
At one point of the discussion, you mentioned a |
Beta Was this translation helpful? Give feedback.
-
Yes that’s the reason for the issue the bitmaps must have existed at some point Check libvirtd logs (on the hypervisor) for what happened during backup 22 |
Beta Was this translation helpful? Give feedback.
-
Version used
2.17
Describe the bug
qcow3
format.5.14.0-503.14.1.el9_5.x86_64
) and the backup chain now fails with this error message :Expected behavior
One would expect that a relatively minor OS update in the VM would not break down the incremental backup chain.
Instead, that virtnbdbackup would be able to cope with minor changes at the OS level.
Hypervisor information:
libvirt-10.5.0-7.el9_5.alma.1.src.rpm
installedLogfiles:
Workaround:
Beta Was this translation helpful? Give feedback.
All reactions