Do you need to shutdown VMs to backup them with stop mode? Or is it needlessly loosing uptime by doing so?
Here is how I used to think it works:
I thought it does not matter if the VM is running or not. In both cases the VM will be shutdown, a complete backup taken, during that the VM will be offline, after that the VM starts up again.
Since I often do snapshots when the VM is shutdown, and do a backup afterwards, or the backups take place automated at night, I never noticed that this is not true.
Here is how I now think it works:
A running VM will gracefully shutdown, when starting a backup in stop mode.
Since the shutdown VM now does not have an data in RAM, we can now create a dirty bitmap and get a consistent "reference point". We can immediately start up the VM again, way before the backup is finished.
What I still don't get:
Is the dirty bitmap there to just to know the state of the shutdown VM, and it will only backup the state of the VM when it was shut down?
Or is the dirty bitmap there to keep track of the changes and create a backup of the up and running VM again? Does that include RAM?
I think the former has to be true, otherwise would there not be again a small inconsistency risk involved?
Here is how I used to think it works:
I thought it does not matter if the VM is running or not. In both cases the VM will be shutdown, a complete backup taken, during that the VM will be offline, after that the VM starts up again.
Since I often do snapshots when the VM is shutdown, and do a backup afterwards, or the backups take place automated at night, I never noticed that this is not true.
Here is how I now think it works:
A running VM will gracefully shutdown, when starting a backup in stop mode.
Since the shutdown VM now does not have an data in RAM, we can now create a dirty bitmap and get a consistent "reference point". We can immediately start up the VM again, way before the backup is finished.
What I still don't get:
Is the dirty bitmap there to just to know the state of the shutdown VM, and it will only backup the state of the VM when it was shut down?
Or is the dirty bitmap there to keep track of the changes and create a backup of the up and running VM again? Does that include RAM?
I think the former has to be true, otherwise would there not be again a small inconsistency risk involved?