Feature #2305
closed
Moving rbd images between pools
Added by Stefan Kleijkers about 12 years ago.
Updated over 7 years ago.
Description
It would be nice to have an option to move rbd's between pools with a syntax like:
rbd mv <first poolname>/<image name> <second poolname>/<image name>
At the moment rbd claims the name is already in use (if the image name is the same) and just renames in the same pool if the image name is different. So it ignores the poolname.
- Status changed from New to Rejected
We discovered it does work if you keep the image names the same and vary the pool names. :)
- Status changed from Rejected to 12
Not quite; copy works, but slowly (because of course it's duplicating all the data). I don't know if mv/rename could be implemented more efficient by updating pointers, but I assume it could. In any case, it should either be implemented or the error-handling and documentation fixed to say that it doesn't work across pools.
- Translation missing: en.field_position set to 10
- Translation missing: en.field_position deleted (
34)
- Translation missing: en.field_position set to 32
- Category set to librbd
- Status changed from 12 to Resolved
- Assignee set to Dan Mick
- Target version set to v0.47
I have to reopen this topic: why is it not possible to move a rbd image to another pool?
The reason why I reopen this topic is that I have two racks of servers and I want to define one pool for each rack, but one cluster over all racks. And for migration I want to move one image from one pool to another.
I move images using this command:
qemu-img convert -f raw -O raw -t unsafe -T unsafe -p rbd:prod/bck-red-konkurs3 rbd:backups/bck-red-konkurs3
It seems, this is the most effective solution for now.
Also available in: Atom
PDF