]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC/Migrate.pm
migrate: print mapped volume in error
[pve-container.git] / src / PVE / LXC / Migrate.pm
index 82305c001765a4588f96f59c3efde30f6ea74b1d..35455e16fcfd273fb59b8f08df5dd023c3a248ef 100644 (file)
@@ -476,6 +476,9 @@ sub phase1_cleanup {
 
     if ($self->{volumes}) {
        foreach my $volid (@{$self->{volumes}}) {
+           if (my $mapped_volume = $self->{volume_map}->{$volid}) {
+               $volid = $mapped_volume;
+           }
            $self->log('err', "found stale volume copy '$volid' on node '$self->{node}'");
            # fixme: try to remove ?
        }