mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 15:25:36 +00:00
migrate: check if storage is available
This commit is contained in:
parent
33eb09935e
commit
29701766ae
@ -158,7 +158,13 @@ sub prepare {
|
||||
my $vollist = PVE::QemuServer::get_vm_volumes($conf);
|
||||
PVE::Storage::activate_volumes($self->{storecfg}, $vollist);
|
||||
|
||||
# fixme: check if storage is available on both nodes
|
||||
foreach my $volid (@$vollist) {
|
||||
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
|
||||
|
||||
# check if storage is available on both nodes
|
||||
my $scfg = PVE::Storage::storage_check_node($self->{storecfg}, $sid);
|
||||
PVE::Storage::storage_check_node($self->{storecfg}, $sid, $self->{node});
|
||||
}
|
||||
|
||||
# test ssh connection
|
||||
my $cmd = [ @{$self->{rem_ssh}}, '/bin/true' ];
|
||||
|
Loading…
Reference in New Issue
Block a user