We would like to power on a VM after starting a backup. When is it safe to do that if we want a clean backup of the VM's drive (assuming only one drive)?
My assumption is there are two times after which it would be safe to power on:
a) after: "INFO: sata0: dirty-bitmap status: created new"
or
b) after the backup has been completed
- We have a VM with an old database on it.
- We prefer to backup the VM with it powered off to avoid any corruption of the old database.
- It takes a long time for the backup to run because the dirty-bitmap is lost when we power it off.
My assumption is there are two times after which it would be safe to power on:
a) after: "INFO: sata0: dirty-bitmap status: created new"
or
b) after the backup has been completed
Code:
INFO: starting new backup job: vzdump 124 --remove 0 --mode snapshot --storage backup_prime --node pve70
INFO: Starting Backup of VM 124 (qemu)
INFO: Backup started at 2021-09-07 16:46:26
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: OLD-DB-SERVER
INFO: include disk 'sata0' 'VM_HDD:vm-124-disk-0' 877G
INFO: creating Proxmox Backup Server archive 'vm/124/2021-09-07T20:46:26Z'
INFO: starting kvm to execute backup task
INFO: enabling encryption
INFO: started backup task 'f1e354ba-ec02-4b75-873b-d8c929fd578b'
INFO: sata0: dirty-bitmap status: created new
INFO: 0% (188.0 MiB of 877.0 GiB) in 3s, read: 62.7 MiB/s, write: 30.7 MiB/s
INFO: 1% (9.3 GiB of 877.0 GiB) in 1m 53s, read: 84.9 MiB/s, write: 9.5 MiB/s
INFO: 2% (17.5 GiB of 877.0 GiB) in 3m 39s, read: 79.6 MiB/s, write: 4.5 MiB/s