mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-23 05:20:34 +00:00
vzdump: log QGA FS freeze/thaw try in task log
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7a4bdb3662
commit
82b25dbc0c
@ -417,9 +417,12 @@ sub archive {
|
|||||||
|
|
||||||
if ($self->{vmlist}->{$vmid}->{agent} && $vm_is_running) {
|
if ($self->{vmlist}->{$vmid}->{agent} && $vm_is_running) {
|
||||||
$agent_running = PVE::QemuServer::qga_check_running($vmid);
|
$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){
|
if ($agent_running){
|
||||||
|
$self->loginfo("issuing guest-agent 'fs-freeze' command");
|
||||||
eval { mon_cmd($vmid, "guest-fsfreeze-freeze"); };
|
eval { mon_cmd($vmid, "guest-fsfreeze-freeze"); };
|
||||||
if (my $err = $@) {
|
if (my $err = $@) {
|
||||||
$self->logerr($err);
|
$self->logerr($err);
|
||||||
@ -430,6 +433,7 @@ sub archive {
|
|||||||
my $qmperr = $@;
|
my $qmperr = $@;
|
||||||
|
|
||||||
if ($agent_running){
|
if ($agent_running){
|
||||||
|
$self->loginfo("issuing guest-agent 'fs-thaw' command");
|
||||||
eval { mon_cmd($vmid, "guest-fsfreeze-thaw"); };
|
eval { mon_cmd($vmid, "guest-fsfreeze-thaw"); };
|
||||||
if (my $err = $@) {
|
if (my $err = $@) {
|
||||||
$self->logerr($err);
|
$self->logerr($err);
|
||||||
|
Loading…
Reference in New Issue
Block a user