On Thu, Jan 12, 2017 at 2:41 AM, Ilya Dryomov <idryo...@gmail.com> wrote:
> On Wed, Jan 11, 2017 at 6:01 PM, Shinobu Kinjo <ski...@redhat.com> wrote:
>> It would be fine to not support v1 image format at all.
>>
>> But it would be probably friendly for users to provide them with more
>> understandable message when they face feature mismatch instead of just
>> displaying:
>>
>>  * rbd: map failed: (6) No such device or address
>>
>> For instance, show the following something in message:
>>
>>  * Execute rbd feature disable <image-name>
>> deep-flatten,fast-diff,object-map,exclusive-lock
>>
>>  or
>>
>>  * Set rbd default features to 3
>
> We already do that in jewel:
>
> $ sudo rbd map a
> rbd: sysfs write failed
> RBD image feature set mismatch. You can disable features unsupported
> by the kernel with "rbd feature disable".
> In some cases useful info is found in syslog - try "dmesg | tail" or so.
> rbd: map failed: (6) No such device or address
>
> Enumerating the features to be disabled is hard because that depends on
> the version of the rbd.ko module and there is no interface for querying
> the feature set.  The man page can definitely be improved though: move
> --image-feature paragraph into its own section, expand the descriptions
> and add kernel version info.  I'll put that on my TODO list...

That would reasonably make sense.

Regards,

>
> Thanks,
>
>                 Ilya
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to