Re: Migrating objects from one pool to another?

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

 




On 26/03/2015, at 23.01, Gregory Farnum <greg@xxxxxxxxxxx> wrote:

On Thu, Mar 26, 2015 at 2:53 PM, Steffen W Sørensen <stefws@xxxxxx> wrote:

On 26/03/2015, at 21.07, J-P Methot <jpmethot@xxxxxxxxxx> wrote:

That's a great idea. I know I can setup cinder (the openstack volume manager) as a multi-backend manager and migrate from one backend to the other, each backend linking to different pools of the same ceph cluster. What bugs me though is that I'm pretty sure the image store, glance, wouldn't let me do that. Additionally, since the compute component also has its own ceph pool, I'm pretty sure it won't let me migrate the data through openstack.
Hm wouldn’t it be possible to do something similar ala:

# list object from src pool
rados ls objects loop | filter-obj-id | while read obj; do
    # export $obj to local disk
    rados -p pool-wth-too-many-pgs get $obj
    # import $obj from local disk to new pool
    rados -p better-sized-pool put $obj
done

You would also have issues with snapshots if you do this on an RBD
pool. That's unfortunately not feasible.
What isn’t possible, export-import objects out-and-in of pools or snapshots issues?

/Steffen
_______________________________________________
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