[ceph-users] Re: the easiest way to copy image to another cluster

2022-04-21 Thread Tony Liu
Thank you Anthony! I agree that rbd-mirror is more reliable and manageable
and it's not that complicated to user. I will try both and see which works 
better
for me.

Tony

From: Anthony D'Atri 
Sent: April 21, 2022 09:02 PM
To: Tony Liu
Cc: ceph-users@ceph.io; d...@ceph.io
Subject: Re: [ceph-users] the easiest way to copy image to another cluster

As someone noted, rbd export / import work.  I’ve also used rbd-mirror for 
capacity management, it works well for moving attached as well as unattached 
images.  When using rbd-mirror to move 1-2 images at a time, adjustments to 
default parameters speeds progress substantially.  It’s easy to see when src 
and dst are synced, then flip primary / secondary, disable mirroring, and rm 
the src.  I’ve used this technique (via an in-house wrapper service) to move 
hundreds of images.  It can handle snaps even, with the right execution.



> On Apr 21, 2022, at 8:40 PM, Tony Liu  wrote:
>
> Hi,
>
> I want to copy an image, which is not being used, to another cluster.
> rbd-mirror would do it, but rbd-mirror is designed to handle image
> which is being used/updated, to ensure the mirrored image is always
> consistent with the source. I wonder if there is any easier way to copy
> an image without worrying about the update/sync, like copy a snapshot
> or a backup image.
>
>
> Thanks!
> Tony
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: the easiest way to copy image to another cluster

2022-04-21 Thread Tony Liu
Thank you Mart! Pipe is indeed easier.
I found this blog. Will give it a try.
https://machinenix.com/ceph/how-to-export-a-ceph-rbd-image-from-one-cluster-to-another-without-using-a-bridge-server

Tony

From: Mart van Santen 
Sent: April 21, 2022 08:52 PM
To: Tony Liu
Cc: ceph-users@ceph.io; d...@ceph.io
Subject: Re: [ceph-users] the easiest way to copy image to another cluster

Hi Tony,

Have a look at rbd export and rbd import, they dump the image to a file or 
stdout. You can pipe the rbd export directly into an rbd import assuming you 
have a host which has access to both ceph clusters.

Hope this helps!

Mart

From mobile

> On Apr 22, 2022, at 11:42, Tony Liu  wrote:
>
> Hi,
>
> I want to copy an image, which is not being used, to another cluster.
> rbd-mirror would do it, but rbd-mirror is designed to handle image
> which is being used/updated, to ensure the mirrored image is always
> consistent with the source. I wonder if there is any easier way to copy
> an image without worrying about the update/sync, like copy a snapshot
> or a backup image.
>
>
> Thanks!
> Tony
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: the easiest way to copy image to another cluster

2022-04-21 Thread Anthony D'Atri
As someone noted, rbd export / import work.  I’ve also used rbd-mirror for 
capacity management, it works well for moving attached as well as unattached 
images.  When using rbd-mirror to move 1-2 images at a time, adjustments to 
default parameters speeds progress substantially.  It’s easy to see when src 
and dst are synced, then flip primary / secondary, disable mirroring, and rm 
the src.  I’ve used this technique (via an in-house wrapper service) to move 
hundreds of images.  It can handle snaps even, with the right execution.  



> On Apr 21, 2022, at 8:40 PM, Tony Liu  wrote:
> 
> Hi,
> 
> I want to copy an image, which is not being used, to another cluster.
> rbd-mirror would do it, but rbd-mirror is designed to handle image
> which is being used/updated, to ensure the mirrored image is always
> consistent with the source. I wonder if there is any easier way to copy
> an image without worrying about the update/sync, like copy a snapshot
> or a backup image.
> 
> 
> Thanks!
> Tony
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: the easiest way to copy image to another cluster

2022-04-21 Thread Mart van Santen
Hi Tony,

Have a look at rbd export and rbd import, they dump the image to a file or 
stdout. You can pipe the rbd export directly into an rbd import assuming you 
have a host which has access to both ceph clusters.

Hope this helps!

Mart

From mobile

> On Apr 22, 2022, at 11:42, Tony Liu  wrote:
> 
> Hi,
> 
> I want to copy an image, which is not being used, to another cluster.
> rbd-mirror would do it, but rbd-mirror is designed to handle image
> which is being used/updated, to ensure the mirrored image is always
> consistent with the source. I wonder if there is any easier way to copy
> an image without worrying about the update/sync, like copy a snapshot
> or a backup image.
> 
> 
> Thanks!
> Tony
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io