Re: Copy RBD image from replicated to erasure pool possible?

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

 



Running "rbd help <command name>" will provide documentation for all
accepted optionals (there is also bash completion for all optionals as
well).

On Mon, Dec 18, 2017 at 4:49 PM, Caspar Smit <casparsmit@xxxxxxxxxxx> wrote:
> Hi all,
>
> Allthough undocumented, i just tried:
>
> "rbd -p rbd copy disk1 disk1ec --data-pool ecpool"
>
> And it worked! :)
>
> The copy is now on the erasure coded pool.
>
> Kind regards,
> Caspar
>
> 2017-12-18 22:32 GMT+01:00 Caspar Smit <casparsmit@xxxxxxxxxxx>:
>>
>> Hi all,
>>
>> http://ceph.com/community/new-luminous-erasure-coding-rbd-cephfs/
>>
>> Since it is possible in Luminous to use RBD directly on erasure coded
>> pools the question arises how i can migrate an RBD image from a replicated
>> pool to an erasure coded pool.
>>
>> I've got two pools configured, one replicated pool named rbd and an
>> erasure coded pool named ecpool
>>
>> The rbd pool stores a 100GB rbd image called 'disk1'
>>
>> i've created a 'destination' rbd image in the erasure coded pool called
>> 'disk1ec' using:
>>
>> rbd -p rbd create --size 100G --data-pool ecpool disk1ec
>>
>> I've tried: rbd -p rbd copy disk1 disk1ec
>>
>> but that fails with:
>>
>> librbd: rbd image disk1ec already exists
>>
>> Which is obvious because the docs says the copy command will create the
>> destination rbd image.
>>
>> When i don't create the disk1ec image first and do a rbd copy the result
>> is just another rbd image in the replicated pool.
>>
>> So how would i copy (or move) the rbd image from replicated to erasure? Is
>> there maybe a flag to the copy command to specify the data_pool for the
>> destination?
>>
>> Kind regards and thanks in advance for any advice,
>> Caspar
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>



-- 
Jason
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux