5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

live restore: slightly more status output

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-06 19:38:53 +02:00
parent 1057fc7436
commit a09b39f163

View File

@ -6390,7 +6390,7 @@ sub restore_proxmox_backup_archive {
local $SIG{TERM} =
local $SIG{QUIT} =
local $SIG{HUP} =
local $SIG{PIPE} = sub { die "interrupted by signal\n"; };
local $SIG{PIPE} = sub { die "got signal ($!) - abort\n"; };
my $conf = PVE::QemuConfig->load_config($vmid);
die "cannot do live-restore for template\n"
@ -6401,7 +6401,7 @@ sub restore_proxmox_backup_archive {
$err = $@;
if ($err) {
warn "Detroying live-restore VM, all temporary data will be lost!\n";
warn "destroying partially live-restored VM, all temporary data will be lost!\n";
$restore_deactivate_volumes->($storecfg, $devinfo);
$restore_destroy_volumes->($storecfg, $devinfo);
unlink $conffile;
@ -6466,7 +6466,9 @@ sub pbs_live_restore {
mon_cmd($vmid, 'cont');
qemu_drive_mirror_monitor($vmid, undef, $jobs, 'auto', 0, 'stream');
# all jobs finished, remove blockdevs now to disconnect from PBS
print "restore-drive jobs finished successfully, removing all tracking block devices"
." to disconnect from Proxmox Backup Server\n";
for my $ds (sort keys %$restored_disks) {
mon_cmd($vmid, 'blockdev-del', 'node-name' => "$ds-pbs");
}