mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 15:25:36 +00:00
migrate: cleanup nbd source disks earlier
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
504105c638
commit
28412ae488
@ -885,6 +885,11 @@ sub phase3_cleanup {
|
||||
|
||||
if ($self->{livemigration}) {
|
||||
if ($self->{storage_migration}) {
|
||||
# remove drives referencing the nbd server from source
|
||||
# otherwise vm_stop might hang later on
|
||||
foreach my $drive (keys %{$self->{target_drive}}){
|
||||
PVE::QemuServer::vm_mon_cmd_nocheck($vmid, "device_del", id => $drive);
|
||||
}
|
||||
# stop nbd server on remote vm - requirement for resume since 2.9
|
||||
my $cmd = [@{$self->{rem_ssh}}, 'qm', 'nbdstop', $vmid];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user