Feature #2305
closedMoving rbd images between pools
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.
Updated by Greg Farnum about 12 years ago
- Status changed from New to Rejected
We discovered it does work if you keep the image names the same and vary the pool names. :)
Updated by Dan Mick about 12 years ago
- 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.
Updated by Sage Weil about 12 years ago
- Translation missing: en.field_position set to 10
Updated by Sage Weil almost 12 years ago
- Translation missing: en.field_position deleted (
34) - Translation missing: en.field_position set to 32
Updated by Sage Weil almost 12 years ago
- Category set to librbd
- Status changed from 12 to Resolved
- Assignee set to Dan Mick
- Target version set to v0.47
Updated by Jonas Keidel almost 9 years ago
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.
Updated by Марк Коренберг over 7 years ago
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.