used for offline migration of local volumes
Signed-off-by: Stoiko Ivanov <[email protected]>
---
PVE/QemuMigrate.pm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 8f4ee5b..740c673 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -452,8 +452,12 @@ sub sync_disks {
push @{$self->{volumes}}, $volid;
my $insecure = $self->{opts}->{migration_type} eq 'insecure';
my $with_snapshots = $local_volumes->{$volid}->{snapshots};
+ my $bwlimit = PVE::Storage::get_bandwidth_limit('migrate',
[$targetsid, $sid], $self->{opts}->{bwlimit});
+ #JSONSchema and get_bandwidth_limit use kbps - storage_migrate
bps
+ $bwlimit = $bwlimit * 1024 if defined($bwlimit);
+
PVE::Storage::storage_migrate($self->{storecfg}, $volid,
$self->{ssh_info}, $targetsid,
- undef, undef, undef, undef,
$insecure, $with_snapshots);
+ undef, undef, undef, $bwlimit,
$insecure, $with_snapshots);
}
}
};
--
2.11.0
_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel