Re: rbd image association

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

 



On 06/03/2013 09:17 AM, Roman Alekseev wrote:
On 03.06.2013 11:08, Wolfgang Hennerbichler wrote:
On Mon, Jun 03, 2013 at 10:52:14AM +0400, Roman Alekseev wrote:
Hi,

Is it possible to associate certain rbd device with the appropriate
rbd image (for example : image1 > /dev/rbd0)?
We always need to map image1 to /dev/rbd0, image2 to /dev/rbd1 etc.
Because I'm using /dev/rbd* in some configuration files.
Hi,

I can't remember exactly, but I think there is something like
/dev/rbd/<pool>/<imagename> which simply symlinks to /dev/rbdX. This
should solve your issue.
Thanks
HTH
Wolfgang

Dear Wolfgang,

I was trying to use the command ln -s /dev/rbd1 image1 but it creates
wrong symlink. Most likely there is more specific command to symlink the
image and device correctly.


Why are you symlinking? Like Wolfgang mentioned, udev takes care of this for you.

Just use /dev/rbd/pool/imagename which is created by udev.

Thanks.



--
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on
--
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