[CentOS] qcow2 --> logical volume

Scott Gennari sgennari at simons-rock.edu
Wed Apr 12 18:17:28 UTC 2017



On 04/12/2017 10:19 AM, Philippe BOURDEU d'AGUERRE wrote:
> Le 12/04/2017 à 15:31, Scott Gennari a écrit :
>> How would can you import/migrate this .qcow2 into a logical volume? Any
>> advice would be greatly appreciated.
>
>
> - get size of qcow2 image:
>
> qemu-img info yourFile.qcow2
>
> - create a logical volume of same size:
>
> ssm create -s xxxxxxxb -n yourLvName -p centos
>
> - copy image:
>
> qemu-img convert yourFile.qcow2 -O raw /dev/centos/yourLvName
>

That worked perfectly. Thank you, Philippe!

Cheers,
Scott




More information about the CentOS mailing list