root@backhb2:~# ceph osd pool -h | grep rename
osd pool rename <poolname> <poolname>    rename <srcpool> to <destpool>


2014-12-03 16:23 GMT+03:00 Mallikarjun Biradar <
[email protected]>:

> Hi,
>
> I am trying to rename in the same pool.
>
> sudo rbd rename rbdPool1 -p testPool2 rbdPoolTest1 -p testPool2
>
> -Thanks & Regards,
> Mallikarjun Biradar
>
> On Wed, Dec 3, 2014 at 6:50 PM, Irek Fasikhov <[email protected]> wrote:
>
>> Hi.
>> You can only rename in the same pool.
>> For transfer to another pool: rbd cp and rbd export/import.
>>
>> 2014-12-03 16:15 GMT+03:00 Mallikarjun Biradar <
>> [email protected]>:
>>
>>> Hi all,
>>>
>>> Whether renaming rbd is allowed?
>>>
>>> I am getting this error,
>>>
>>> ems@rack6-ramp-4:~$ sudo rbd rename rbdPool1 -p testPool2 rbdPoolTest1
>>> -p testPool2
>>> rbd: mv/rename across pools not supported
>>> source pool: testPool2 dest pool: rbd
>>> ems@rack6-ramp-4:~$
>>>
>>> ems@rack6-ramp-4:~$ sudo rbd rename rbdPool1 rbdPoolTest1
>>> rbd: rename error: (2) No such file or directory
>>> 2014-12-03 18:41:50.786397 7f73b4f75840 -1 librbd: error finding source
>>> object: (2) No such file or directory
>>> ems@rack6-ramp-4:~$
>>>
>>> ems@rack6-ramp-4:~$ sudo rbd ls -p testPool2
>>> rbdPool1
>>> ems@rack6-ramp-4:~$
>>>
>>> Why its taking rbd as destination pool, though I have provided another
>>> pool as per syntax.
>>>
>>> Syntax in rbd help:
>>> rbd   (mv | rename) <src> <dest>                  rename src image to
>>> dest
>>>
>>> The rbd which I am trying to rename is mounted and IO is running on it.
>>>
>>> -Thanks & regards,
>>> Mallikarjun Biradar
>>>
>>> _______________________________________________
>>> ceph-users mailing list
>>> [email protected]
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>>
>>>
>>
>>
>> --
>> С уважением, Фасихов Ирек Нургаязович
>> Моб.: +79229045757
>>
>
>


-- 
С уважением, Фасихов Ирек Нургаязович
Моб.: +79229045757
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to