Re: Convert version 1 RBD to version 2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/25/2014 02:08 PM, Graeme Lambert wrote:
> Hi Stuart,
> 
> If this helps, these three lines will do it for you.  I'm sure you could
> rustle up a script to go through all of your images and do this for you.
> 
> rbd export libvirt-pool/my-server - | rbd import --image-format 2 -
> libvirt-pool/my-server2
> rbd rm libvirt-pool/my-server
> rbd mv libvirt-pool/my-server2 libvirt-pool/my-server
> 
> Best regards
> 
> Graeme
> 
> 

Actually will commit all the bytes. If one prefer to keep discarded
places, it is necessary to throw out the copy to the filesystem(or
implement chunk-reader pipe for rbd client).

>  
> On 24/03/14 07:29, Stuart Longland wrote:
>> Hi all,
>>
>> This might be a dumb question, but I'll ask anyway as I don't see it
>> answered.
>>
>> I have a stack of RBD images in the default v1 format.  I'd like to use
>> COW-cloning on these.
>>
>> How does one convert them to version 2 format?  Is there a tool to do
>> the conversion or do I need to export each one and re-import them?
>>
>> Regards,
> 
> 
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux