]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: use dirty bitmap for not running VMs too
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 19 Oct 2020 12:18:39 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Nov 2020 10:22:47 +0000 (11:22 +0100)
Now that VMs can be started during a backup, it makes sense to create a
dirty bitmap in these cases too, since the VM might be resumed and thus
continue running normally even after the backup is done.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/VZDump/QemuServer.pm

index 9aad8b69c70dd03af2f32282f15faf34b57ae194..5003676c42d00a411b819b79e716014e1c4c21f2 100644 (file)
@@ -299,8 +299,7 @@ my $bitmap_action_to_human = sub {
     my $action = $info->{action};
 
     if ($action eq "not-used") {
-       return "disabled (no support)" if $self->{vm_was_running};
-       return "disabled (VM not running)";
+       return "disabled (no support)";
     } elsif ($action eq "not-used-removed") {
        return "disabled (old bitmap cleared)";
     } elsif ($action eq "new") {
@@ -554,7 +553,7 @@ sub archive_pbs {
 
        my $is_template = PVE::QemuConfig->is_template($self->{vmlist}->{$vmid});
        $params->{'use-dirty-bitmap'} = JSON::true
-           if $qemu_support->{'pbs-dirty-bitmap'} && $self->{vm_was_running} && !$is_template;
+           if $qemu_support->{'pbs-dirty-bitmap'} && !$is_template;
 
        $params->{timeout} = 60; # give some time to connect to the backup server