]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC/Migrate.pm
migrate: also set targetsid for unreferenced disks
[pve-container.git] / src / PVE / LXC / Migrate.pm
index 1739c7809de8e0140344e9cca25f52dce4413ec6..2ef1cce42adf738050c6cf37043c2bbb54bc01a8 100644 (file)
@@ -220,6 +220,7 @@ sub phase1 {
            my ($volid, $sid, $volname) = @_;
 
            $volhash->{$volid}->{ref} = 'storage';
+           $volhash->{$volid}->{targetsid} = $targetsid;
        });
     }
 
@@ -304,6 +305,7 @@ sub phase1 {
                'ratelimit_bps' => $bwlimit,
                'insecure' => $opts->{migration_type} eq 'insecure',
                'with_snapshots' => $volhash->{$volid}->{snapshots},
+               'allow_rename' => 1,
            };
 
            my $logfunc = sub { $self->log('info', $_[0]); };