On Tue, Dec 6, 2011 at 18:38,  <[email protected]> wrote:
> I have another little question. Could I map specific image to specific device?
>
> For example:
> Before re-boot
> id      pool    image   snap    device
> 0       rbd     foo1    -       /dev/rbd0
> 1       rbd     foo3    -       /dev/rbd2
>
> How could I re-map the image(foo3) to device(/dev/rbd2) but skip rbd1?  The 
> command provided by ceph CLI cannot achieve this.
>
> If I re-map the image to another device, it would not sync with iSCSI 
> configuration and may cause problem.

I'm just confirming what Damien said. Don't rely on the numbering to
be consistent even from one boot to another; we provide a udev helper
that assigns more permanent names, based on the pool, image name, and
potentially snapshot name. You'll get a symlink like
/dev/rbd/POOL/IMAGE or /dev/rbd/POOL/IMAGE@SNAP, use that name.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to