migrate: only scan available storages

This commit is contained in:
Dietmar Maurer 2012-07-16 10:19:11 +02:00
parent 0f56d571e4
commit 373ea5798a
3 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.1
VERSION=2.0
PACKAGE=qemu-server
PKGREL=44
PKGREL=45
DESTDIR=
PREFIX=/usr

View File

@ -181,13 +181,14 @@ sub sync_disks {
foreach my $storeid (@sids) {
my $scfg = PVE::Storage::storage_config($self->{storecfg}, $storeid);
next if $scfg->{shared};
next if !PVE::Storage::storage_check_enabled($self->{storecfg}, $storeid, undef, 1);
# get list from PVE::Storage (for unused volumes)
my $dl = PVE::Storage::vdisk_list($self->{storecfg}, $storeid, $vmid);
PVE::Storage::foreach_volid($dl, sub {
my ($volid, $sid, $volname) = @_;
# check if storage is available on both nodes
my $scfg = PVE::Storage::storage_check_node($self->{storecfg}, $sid);
# check if storage is available on target node
PVE::Storage::storage_check_node($self->{storecfg}, $sid, $self->{node});
$volhash->{$volid} = 1;

View File

@ -1,3 +1,9 @@
qemu-server (2.0-45) unstable; urgency=low
* migrate: only scan available storages
-- Proxmox Support Team <support@proxmox.com> Mon, 16 Jul 2012 10:18:22 +0200
qemu-server (2.0-44) unstable; urgency=low
* migrate: only scan necessary storage for unused volumes