mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 17:47:31 +00:00
deactivate volumes after storage_migrate
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
78bd57d9c3
commit
e219712561
@ -585,6 +585,11 @@ sub sync_disks {
|
|||||||
|
|
||||||
$self->{volume_map}->{$volid} = $new_volid;
|
$self->{volume_map}->{$volid} = $new_volid;
|
||||||
$self->log('info', "volume '$volid' is '$new_volid' on the target\n");
|
$self->log('info', "volume '$volid' is '$new_volid' on the target\n");
|
||||||
|
|
||||||
|
eval { PVE::Storage::deactivate_volumes($storecfg, [$volid]); };
|
||||||
|
if (my $err = $@) {
|
||||||
|
$self->log('warn', $err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user