Starting VM While Backup Running

Mar 11, 2019
121
33
68
Canada
www.weehooey.com
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)?
  • 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.
We would like to start the VM before the backup has finished (because the backup takes a long time).

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" :D

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
 
Just noticed something... the "Start" button has changed to "Resume". I suspect that once the dirty-bitmap has been taken, the "image" has been frozen and it is safe to start.

It would be great to get confirmation if that is the case.
 
Thanks.

At what point is it safe to start (resume) without fear of backing up the booting version of the drive?

What if there are two drives?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!