Re: move rbd image (with snapshots) to different pool

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

 



On Fri, Jun 15, 2018 at 12:15 PM, Steve Taylor
<steve.taylor@xxxxxxxxxxxxxxxx> wrote:
> I have done this with Luminous by deep-flattening a clone in a different pool. It seemed to do what I wanted, but the RBD appeared to lose its sparseness in the process.

Hmm, Luminous librbd clients should have kept object-sized sparseness
during the flatten operation [1] since it will not copy-up a zeroed,
object-sized block from the parent to the child image.  Jewel clients
would not preserve object-level sparseness, so a flatten operation
would result in a fully allocated image [2].

> Can anyone verify that and/or comment on whether Mimic's "rbd deep copy" does the same?

The "rbd export --export-format 2" and "rbd deep copy" actions both
preserve the sparseness of the source image since they rely on RADOS
providing the -- not restricted to object-sized sparseness like a
copy-up operation.

> Steve Taylor | Senior Software Engineer | StorageCraft Technology Corporation
> 380 Data Drive Suite 300 |?Draper | Utah | 84020
> Office: 801.871.2799 |
>
> If you are not the intended recipient of this message or received it erroneously, please notify the sender and delete it, together with any attachments, and be advised that any dissemination or copying of this message is prohibited.
>
>
>
> -----Original Message-----
> From: ceph-users <ceph-users-bounces@xxxxxxxxxxxxxx> On Behalf Of Jason Dillaman
> Sent: Friday, June 15, 2018 7:45 AM
> To: Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx>
> Cc: ceph-users <ceph-users@xxxxxxxxxxxxxx>
> Subject: Re:  move rbd image (with snapshots) to different pool
>
> The "rbd clone" command will just create a copy-on-write cloned child of the source image. It will not copy any snapshots from the original image to the clone.
>
> With the Luminous release, you can use "rbd export --export-format 2 <image-spec> - | rbd import --export-format 2 - <image-spec>" to export / import an image (and all its snapshots) to a different pool.
> Additionally, with the Mimic release, you can run "rbd deep copy" to copy an image (and all its snapshots) to a different pool.
>
> On Fri, Jun 15, 2018 at 3:26 AM, Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> wrote:
>>
>> If I would like to copy/move an rbd image, this is the only option I
>> have? (Want to move an image from a hdd pool to an ssd pool)
>>
>> rbd clone mypool/parent@snap otherpool/child
>>
>>
>> _______________________________________________
>> 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
>

[1] https://github.com/ceph/ceph/blob/luminous/src/test/cli-integration/rbd/formatted-output.t#L888
[2] https://github.com/ceph/ceph/blob/jewel/src/test/cli-integration/rbd/formatted-output.t#L855

-- 
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