Re: how to sepcify the point a rbd mapped?

2015-09-25 Thread Ilya Dryomov
On Fri, Sep 25, 2015 at 6:25 AM, Jaze Lee  wrote:
> Hello,
> I know we can map a rbd image to a block device into kernel by
> ‘rbd map’ command。
> But we can not specify which block device. For example, if i have
> a rbd named rbd_0,
> i want it mapped into /dev/rbd_0 when it mapped.
>
> Is there some way to do that?

No, it's going to pick the lowest available ID.  The ID is picked
atomically by the kernel driver, you have no control over it.

If you want stable names, you should use udev symlinks, which look like

/dev/rbd//[@]

Thanks,

Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


how to sepcify the point a rbd mapped?

2015-09-24 Thread Jaze Lee
Hello,
I know we can map a rbd image to a block device into kernel by
‘rbd map’ command。
But we can not specify which block device. For example, if i have
a rbd named rbd_0,
i want it mapped into /dev/rbd_0 when it mapped.

Is there some way to do that?

-- 
谦谦君子
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html