]> git.proxmox.com Git - pve-container.git/commitdiff
migrate: allow renaming of volumes
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 11 Feb 2022 10:29:45 +0000 (11:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 11 Feb 2022 15:16:07 +0000 (16:16 +0100)
the config is now updated anyway because of target-storage support, so
volume renaming is both 'free' and improves the chances of migration
with and without changing storages actually works successfully.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC/Migrate.pm

index 1739c7809de8e0140344e9cca25f52dce4413ec6..64bdd3841c4a75f8f4029fb69fa92b06813a3870 100644 (file)
@@ -304,6 +304,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]); };