[pve-devel] [PATCH qemu-server] fix #503: print correct offline time for stop mode backups

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 8 19:32:37 CEST 2019


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

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 70abe99..22bb3d6 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -439,7 +439,9 @@ sub archive {
 	$self->loginfo("started backup task '$uuid'");
 
 	if ($resume_on_backup) {
-	    $self->loginfo("resume VM");
+	    my $delay = time() - $task->{vmstoptime};
+	    $task->{vmstoptime} = undef; # avoid printing 'online after ..' twice
+	    $self->loginfo("resuming VM again after $delay seconds");
 	    PVE::QemuServer::vm_mon_cmd($vmid, 'cont');
 	}
 
-- 
2.20.1





More information about the pve-devel mailing list