Re: how to sepcify the point a rbd mapped?

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

 



On Fri, Sep 25, 2015 at 6:25 AM, Jaze Lee <jazeltq@xxxxxxxxx> 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/<poolname>/<imagename>[@<snapname>]

Thanks,

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



[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