mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 02:30:05 +00:00
migrate: only scan available storages
This commit is contained in:
parent
0f56d571e4
commit
373ea5798a
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.1
|
||||
|
||||
VERSION=2.0
|
||||
PACKAGE=qemu-server
|
||||
PKGREL=44
|
||||
PKGREL=45
|
||||
|
||||
DESTDIR=
|
||||
PREFIX=/usr
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user