<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">This will invoke vss on Windows clients?<br><br>Lindsay Mathieson </div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">From: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:wolfgang@linksystems.org">Wolfgang Link</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Sent: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">9/12/2014 8:13 PM</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">To: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:pve-devel@pve.proxmox.com">pve-devel@pve.proxmox.com</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Subject: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">[pve-devel] [PATCH] Add qga freeze in vzdump in snapshot mode</span><br><br></div>it will freeze the filesystem to provide consistents.<br><br>Signed-off-by: Wolfgang Link <wolfgang@linksystems.org><br>---<br> PVE/VZDump/QemuServer.pm | 18 ++++++++++++++++--<br> 1 file changed, 16 insertions(+), 2 deletions(-)<br><br>diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm<br>index fd36c69..b9edea1 100644<br>--- a/PVE/VZDump/QemuServer.pm<br>+++ b/PVE/VZDump/QemuServer.pm<br>@@ -286,8 +286,8 @@ sub archive {<br> my $resume_on_backup;<br> <br> my $skiplock = 1;<br>-<br>- if (!PVE::QemuServer::check_running($vmid)) {<br>+ my $vm_is_running = PVE::QemuServer::check_running($vmid);<br>+ if (!$vm_is_running) {<br> eval {<br> $self->loginfo("starting kvm to execute backup task");<br> PVE::QemuServer::vm_start($self->{storecfg}, $vmid, undef, <br>@@ -380,8 +380,22 @@ sub archive {<br> <br> $qmpclient->queue_cmd($vmid, $add_fd_cb, 'getfd', <br> fd => $outfileno, fdname => "backup");<br>+<br>+ if ($self->{vmlist}->{$vmid}->{agent} && $vm_is_running){<br>+ eval {PVE::QemuServer::vm_mon_cmd($vmid,"guest-fsfreeze-freeze");};<br>+ if (my $err = $@) {<br>+ $self->logerr($err);<br>+ } <br>+ }<br>+ <br> $qmpclient->queue_execute();<br> <br>+ if ($self->{vmlist}->{$vmid}->{agent} && $vm_is_running ){<br>+ eval {PVE::QemuServer::vm_mon_cmd($vmid,"guest-fsfreeze-thaw");};<br>+ if (my $err = $@) {<br>+ $self->logerr($err);<br>+ }<br>+ }<br> die $qmpclient->{errors}->{$vmid} if $qmpclient->{errors}->{$vmid}; <br> <br> if ($cpid) {<br>-- <br>1.7.10.4<br><br>_______________________________________________<br>pve-devel mailing list<br>pve-devel@pve.proxmox.com<br>http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel<br></body></html>