Re: Issue in renaming rbd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ems@rack6-ramp-4:~$ sudo ceph osd lspools
0 rbd,1 testPool1,3 pool1,
ems@rack6-ramp-4:~$
ems@rack6-ramp-4:~$ sudo rbd ls -p testPool1
rbdTest
rbdTest2
rbdTest3
rbdTest4
rbdTest5
rbdTest6
rbdTest7
rbdTest8
rbdTest9
ems@rack6-ramp-4:~$
ems@rack6-ramp-4:~$ sudo rbd rename testPool1/rbdTest testPool1/rbdTest1
ems@rack6-ramp-4:~$
ems@rack6-ramp-4:~$ sudo rbd ls -p testPool1
rbdTest1
rbdTest2
rbdTest3
rbdTest4
rbdTest5
rbdTest6
rbdTest7
rbdTest8
rbdTest9
ems@rack6-ramp-4:~$


On Wed, Dec 3, 2014 at 7:15 PM, Mallikarjun Biradar <mallikarjuna.biradar@xxxxxxxxx> wrote:
Thanks very much... its working..


On Wed, Dec 3, 2014 at 7:11 PM, Irek Fasikhov <malmyzh@xxxxxxxxx> wrote:
Sorry :).

root@backhb2:~# rbd ls -l | grep test
test                      1024M                                1           
root@backhb2:~# rbd mv rbd/test rbd/test2
root@backhb2:~# rbd ls -l | grep test
test2                     1024M                                1           
root@backhb2:~# rbd rename rbd/test2 rbd/test
root@backhb2:~# rbd ls -l | grep test
test                      1024M                                1 

2014-12-03 16:36 GMT+03:00 Mallikarjun Biradar <mallikarjuna.biradar@xxxxxxxxx>:
I am trying to rename rbd.

ems@rack2-storage-5:~$ sudo rbd -h | grep rename
  (mv | rename) <src> <dest>                  rename src image to dest
ems@rack2-storage-5:~$


On Wed, Dec 3, 2014 at 6:55 PM, Irek Fasikhov <malmyzh@xxxxxxxxx> wrote:
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 <mallikarjuna.biradar@xxxxxxxxx>:
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 <malmyzh@xxxxxxxxx> 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 <mallikarjuna.biradar@xxxxxxxxx>:
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
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




--
С уважением, Фасихов Ирек Нургаязович
Моб.: +79229045757




--
С уважением, Фасихов Ирек Нургаязович
Моб.: +79229045757




--
С уважением, Фасихов Ирек Нургаязович
Моб.: +79229045757


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux