mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-12 20:58:26 +03:00
fix #1013 : migrate : sync_disk : --targetstorage with offline disk
targetsid was not used, for disk unused (offline copy) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
739ba34024
commit
d0c671823d
@ -446,6 +446,7 @@ sub sync_disks {
|
||||
|
||||
foreach my $volid (keys %$local_volumes) {
|
||||
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||
my $targetsid = $self->{opts}->{targetstorage} ? $self->{opts}->{targetstorage} : $sid;
|
||||
if ($self->{running} && $self->{opts}->{targetstorage} && $local_volumes->{$volid}->{ref} eq 'config') {
|
||||
push @{$self->{online_local_volumes}}, $volid;
|
||||
} else {
|
||||
@ -453,7 +454,7 @@ sub sync_disks {
|
||||
push @{$self->{volumes}}, $volid;
|
||||
my $insecure = $self->{opts}->{migration_type} eq 'insecure';
|
||||
my $with_snapshots = $local_volumes->{$volid}->{snapshots};
|
||||
PVE::Storage::storage_migrate($self->{storecfg}, $volid, $self->{ssh_info}, $sid,
|
||||
PVE::Storage::storage_migrate($self->{storecfg}, $volid, $self->{ssh_info}, $targetsid,
|
||||
undef, undef, undef, undef, $insecure, $with_snapshots);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user