Re: Backups

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

 



On Fri, Apr 19, 2013 at 11:26 AM, Craig Lewis <clewis@xxxxxxxxxxxxxxxxxx> wrote:
> Playing with this a big more, I think I see how to accomplish what I want
> inside Ceph.
>
> I'm only concerned about backing up and restoring the contents of the RADOS
> Gateway.
>
> Using rados mksnap, I can snapshot the 4 gateway pools:
> .rgw
> .rgw.control
> .rgw.gc
> .rgw.buckets
>
> Is there a way to snapshot the four pools (or all pools), in a single
> command?  So far, it looks like I'll have to snap them one at time.

Nope, there's not a cross-pool snapshotting mechanism, sorry.

> To restore, the contents of the .rgw.buckets pool looks fairly straight
> forward.  I'll know the gateway object names that I need to restore, and
> rados ls -p .rgw.buckets will let me map the gateway object to a rados
> object.  I can use rados get to extract the contents of each object, save to
> a local file, then and manually restore to the RADOS Gateway.

Keep in mind that a single RGW object can be chunked into multiple
RADOS objects if it's of sufficient size. These are named predictably
so you should be able to do the translation, though.

> It would be nice if I could start up a radosgw with a --read-only and --snap
> snapshot1 argument, but a manual solution is acceptable at this stage.  I
> won't have to do this often, but I need to know that I can do it if
> necessary.

I think it should work in theory, but if you're talking about copying
data in and out of the cluster it's likely to take a while if you
actually need to do it. It's also not a use case that anybody's
investigated yet, so you should test it out before committing! :)
-Greg
Software Engineer #42 @ http://inktank.com | http://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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux