rbd --pool=x rename y z does not work
$ rbd --pool prod rename sva-ics_ sva-ics rbd: mv/rename across pools not supported source pool: prod dest pool: rbd
$ rbd rename prod/sva-ics_ prod/sva-ics
(Ubuntu 16.04's Ceph 10.2.3)
#3 Updated by Gaurav Garg 5 months ago
current implementation of rename/mv in ceph is like when source and destination pool are different then it will through an error saying rename across pools not supported.
Can we solve this by below approach:
if source and destination pool are same then we can do rename operation like currently we are doing (only meta data change) and if source and destination pool are not same then first we can copy image from source pool to destination pool then we can remove that image from source pool.
#4 Updated by Jason Dillaman 5 months ago
Coping images between pools is a giant change -- and not what this ticket is talking about. The only thing that needs to be fixed here is that if the destination pool is not specified but the source pool is specified, default the destination pool to the source pool. Renaming between pools should continue to not be supported.