]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: log QGA FS freeze/thaw try in task log
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Nov 2019 19:18:15 +0000 (20:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Nov 2019 19:20:30 +0000 (20:20 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index 1826edb48f4ef6e2ce2ec822516ad47d0a34c617..3d9c61a6c06e72c370b05f381bbebfd0d7daecd1 100644 (file)
@@ -417,9 +417,12 @@ sub archive {
 
        if ($self->{vmlist}->{$vmid}->{agent} && $vm_is_running) {
            $agent_running = PVE::QemuServer::qga_check_running($vmid);
+           $self->loginfo("skipping guest-agent 'fs-freeze', agent configured but not running?")
+               if !$agent_running;
        }
 
        if ($agent_running){
+           $self->loginfo("issuing guest-agent 'fs-freeze' command");
            eval { mon_cmd($vmid, "guest-fsfreeze-freeze"); };
            if (my $err = $@) {
                $self->logerr($err);
@@ -430,6 +433,7 @@ sub archive {
        my $qmperr = $@;
 
        if ($agent_running){
+           $self->loginfo("issuing guest-agent 'fs-thaw' command");
            eval { mon_cmd($vmid, "guest-fsfreeze-thaw"); };
            if (my $err = $@) {
                $self->logerr($err);