Re: rbd object map

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

 



On Fri, Aug 7, 2015 at 9:13 AM, Max Yehorov <myehorov@xxxxxxxxxx> wrote:
> Hi,
>
> Object map feature was added in hammer. It is possible to create and
> delete an image with object map enabled using rbd, though it is not
> possible to map the image which has object map or exclusive lock
> features enabled, e.g.:
>
>   ceph@ceph1:~$ rbd create foo --size=42 --image-format=2 --image-features=15
>   ceph@ceph1:~$ sudo rbd map foo
>   rbd: sysfs write failed
>   rbd: map failed: (6) No such device or address
>
>
> I checked rbd.c in linux/drivers/block/rbd.c, it looks like that it
> only supports layering and striping as of kernel 4.1 branch.

Correct, and note that RBD_FEATURE_STRIPINGV2 is only partially
supported - you can map a STRIPINGV2 image only if it was created
with default striping parameters, i.e. you didn't specify --stripe-unit
or --stripe-count at create time.

>
>   #define RBD_FEATURE_LAYERING    (1<<0)
>   #define RBD_FEATURE_STRIPINGV2  (1<<1)
>   #define RBD_FEATURES_ALL \
>         (RBD_FEATURE_LAYERING | RBD_FEATURE_STRIPINGV2)
>
>   /* Features supported by this (client software) implementation. */
>
>   #define RBD_FEATURES_SUPPORTED  (RBD_FEATURES_ALL)
>
> Is object map a partial feature in hammer? If so, will there be a
> complete support of object map in some upcoming ceph release?

ceph releases and kernel releases are not tied together.  object map is
fully supported by librbd, it's just not supported by the kernel client
yet.  Work is under way, but it won't show up in anything earlier than
kernel 4.4.

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