rbd-nbd implementation not working well with rbd

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

 



Hello,

I've been testing the new implementation for rbd-nbd merged in https://github.com/ceph/ceph/pull/15317
and have a few observations/questions for people with more knowledge on this subject than I.

For the ceph repo, git log tells me I am at this commit
commit dce8e7da8618a80c33f926a584534148a5fdb751

1. new rbd-nbd does not support -c

vagrant@jz1:~/ceph/build/bin$ sudo ./rbd-nbd list-mapped -c /etc/ceph/ceph.conf
rbd-nbd: unknown args: -c

We have fixed this by adding a ceph_argparse_early_args somewhere in rbd-nbd.cc


2. After a rbd mv, rbd-nbd list-mapped does not update like rbd does

vagrant@jz1:~/ceph/build/bin$ sudo ./rbd mv pool1/image1 pool1/image2
vagrant@jz1:~/ceph/build/bin$ ./rbd-nbd list-mapped
pid  pool  image  snap device
2337 pool1 image1 -    /dev/nbd0
vagrant@jz1:~/ceph/build/bin$ sudo ./rbd ls pool1
image2


3. As far as I know, the implementation in rbd-nbd now checks /proc/<pid>/cmdline to get the command that performed the `rbd-nbd map` and then obtain the image spec from that. Would there be any way to modify either rbd or rbd-nbd so that they are aware of each other?

Thanks,
Johnny
Email Disclaimer & Confidentiality Notice
This message is confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you are not an intended recipient you should not deliver, distribute or copy this e-mail. Please notify the sender immediately by e-mail and delete this e-mail from your system. Copyright © 2017 by Istuary Innovation Labs, Inc. All rights reserved.

��.n��������+%������w��{.n����z��u���ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux