[pve-devel] [PATCH container 2/2] migrate: allow renaming of volumes

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Feb 11 11:29:45 CET 2022


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 at proxmox.com>
---
 src/PVE/LXC/Migrate.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm
index 1739c78..64bdd38 100644
--- a/src/PVE/LXC/Migrate.pm
+++ b/src/PVE/LXC/Migrate.pm
@@ -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]); };
-- 
2.30.2






More information about the pve-devel mailing list