[PVE-User] Migrating a vmdk from NAS to LVM

Dhaussy Alexandre ADhaussy at voyages-sncf.com
Thu Oct 6 16:21:47 CEST 2016


Le 13/09/2016 à 05:30, Alexandre DERUMIER a écrit :
>> ok, this could be a fast workaround to implement
>> # qemu-img info -f vmdk /nas/proxmox/testmox2/testmox2.vmdk
>>
May i send this patch to pve-devel ?

> --- /tmp/Plugin.pm    2016-09-13 10:24:11.665002256 +0200
> +++ /usr/share/perl5/PVE/Storage/Plugin.pm    2016-09-13
> 10:32:45.384107517 +0200
> @@ -625,7 +625,9 @@
>        return wantarray ? (0, 'subvol', 0, undef) : 1;
>        }
>
> -    my $cmd = ['/usr/bin/qemu-img', 'info', '$filename'];
> +    my $cmd = ['/usr/bin/qemu-img', 'info'];
> +    push @$cmd, '-f', 'vmdk' if $filename =~ /.vmdk$/;
> +    push @$cmd, $filename;
>
>        my $format;
>        my $parent;


More information about the pve-user mailing list