Re: rbd-nbd: list-mapped : is it possible to display associtation between rbd volume and nbd device ?

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

 



Would you mind opening a feature tracker ticket [1] to document the
proposal? Any chance you are interested in doing the work?

[1] http://tracker.ceph.com/projects/rbd/issues

On Tue, Aug 23, 2016 at 11:15 AM, Alexandre DERUMIER
<aderumier@xxxxxxxxx> wrote:
> I have find a way, nbd device store the pid of the running rbd-ndb process,
> so:
>
>
> #cat /sys/block/nbd0/pid
> 18963
> #cat /proc/18963/cmdline
> rbd-nbd map pool/testimage
>
>
>
>
> ----- Mail original -----
> De: "Jason Dillaman" <jdillama@xxxxxxxxxx>
> À: "aderumier" <aderumier@xxxxxxxxx>
> Cc: "ceph-users" <ceph-users@xxxxxxxxxxxxxx>
> Envoyé: Mardi 23 Août 2016 16:30:38
> Objet: Re:  rbd-nbd: list-mapped : is it possible to display associtation between rbd volume and nbd device ?
>
> I don't think this is something that could be trivially added. The
> nbd protocol doesn't really support associating metadata with the
> device. Right now, that "list-mapped" command just tests each nbd
> device to see if it is connected to any backing server (not just
> rbd-nbd backed devices).
>
> On Tue, Aug 23, 2016 at 5:28 AM, Alexandre DERUMIER <aderumier@xxxxxxxxx> wrote:
>> Hi, I'm currently testing rbd-nbd, to implement them in lxc instead krbd (to support new rbd features )
>>
>>
>> #rbd-nbd map pool/testimage
>> /dev/nbd0
>> #rbd-nbd list-mapped
>> /dev/nbd0
>>
>>
>> Is is possible to implement something like
>>
>> #rbd-nbd list-mapped
>> /dev/nbd0 pool/testimage
>>
>>
>> Regards,
>>
>> Alexandre
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
> --
> Jason
>



-- 
Jason
_______________________________________________
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