Moving rbd images between pools
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.
#2 Updated by Dan Mick almost 9 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.
#6 Updated by Jonas Keidel over 5 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.