[pve-devel] applied: [PATCH qemu-server] vzdump: log QGA FS freeze/thaw try in task log

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 27 20:26:02 CET 2019


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/VZDump/QemuServer.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 1826edb..3d9c61a 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -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);
-- 
2.20.1





More information about the pve-devel mailing list