qemu-server/PVE
Fiona Ebner a39866732f fix #5440: vzdump: better cleanup fleecing images after hard errors
By recording the allocated fleecing images in the VM config, they
are not immediately orphaned, should a hard error occur during
backup that prevents cleanup.

They are attempted to be cleaned up during the next backup run.

In the cleanup helper, check if fleecing images are still attached in
QEMU and detach them. This allows recovering from more failure
scenarios. However, to avoid a deadlock, a left-over backup job needs
to be canceled first. While canceling a left-over backup already
happens when cleanup is done for a subsquent backup, it is required
for other cases that like cleanup before migration (to be added in a
following commit).

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/20250127112923.31703-15-f.ebner@proxmox.com
2025-04-07 14:13:01 +02:00
..
API2 config: add fleecing section 2025-04-07 14:13:01 +02:00
CLI fix #5980: importdisk: fix spurious warning 2024-12-09 19:46:03 +01:00
QemuServer config: make special section handling generic 2025-04-07 14:13:01 +02:00
VZDump fix #5440: vzdump: better cleanup fleecing images after hard errors 2025-04-07 14:13:01 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm fix #5440: vzdump: better cleanup fleecing images after hard errors 2025-04-07 14:13:01 +02:00
QemuMigrate.pm migration: remove unused variable 2025-04-07 14:13:01 +02:00
QemuServer.pm config: add fleecing section 2025-04-07 14:13:01 +02:00
QMPClient.pm tree-wide: fix various typos in comments 2024-12-05 12:33:24 +01:00