Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: spell out image features unsupported by the kernel #13812

Merged
merged 1 commit into from Mar 14, 2017

Conversation

idryomov
Copy link
Contributor

@idryomov idryomov commented Mar 6, 2017

/sys/bus/rbd/supported_features is available on kernels starting with
4.11. Example output:

$ sudo rbd map x
rbd: sysfs write failed
RBD image feature set mismatch. This image cannot be mapped because the following immutable features are unsupported by the kernel: data-pool.
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (6) No such device or address

$ sudo rbd map -p foo y
rbd: sysfs write failed
RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable foo/y object-map fast-diff deep-flatten".
In some cases useful info is found in syslog - try "dmesg | tail" or so.
rbd: map failed: (6) No such device or address

or, if /sys/bus/rbd/supported_features isn't there:

$ sudo rbd map z
rbd: sysfs write failed
RBD image feature set mismatch. Try disabling 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

Fixes: http://tracker.ceph.com/issues/19095
Signed-off-by: Ilya Dryomov idryomov@gmail.com

@idryomov
Copy link
Contributor Author

idryomov commented Mar 6, 2017

The kernel patch has to go in first.

@idryomov
Copy link
Contributor Author

idryomov commented Mar 6, 2017

retest this please

@shinobu-x
Copy link
Contributor

LGTM

Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. While you are in here -- can you drop the " or so" portion of the 'try "dmesg | tail" or so' message?

@idryomov
Copy link
Contributor Author

idryomov commented Mar 9, 2017

@dillaman I think that's a verbatim copy from mount(8), which means it's at least a dozen years old. Is there something wrong with it?

@dillaman
Copy link

dillaman commented Mar 9, 2017

@idryomov It just reads like a non-native English speaker wrote that clause. The best I can figure is that perhaps the goal was to say "or similar". It's just a trivial thing that bugs me every time I see a user paste that error message in a message or IRC chat. Not that big of a deal, just a suggestion to clean it up.

/sys/bus/rbd/supported_features is available on kernels starting with
4.11.  Example output:

    $ sudo rbd map x
    rbd: sysfs write failed
    RBD image feature set mismatch. This image cannot be mapped because the following immutable features are unsupported by the kernel: data-pool.
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

    $ sudo rbd map -p foo y
    rbd: sysfs write failed
    RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable foo/y object-map fast-diff deep-flatten".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

or, if /sys/bus/rbd/supported_features isn't there:

    $ sudo rbd map z
    rbd: sysfs write failed
    RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

Fixes: http://tracker.ceph.com/issues/19095
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
@idryomov idryomov force-pushed the wip-krbd-feature-disable-msg branch from 1fc9cf4 to eec0015 Compare March 10, 2017 20:18
@idryomov idryomov changed the title [DNM] rbd: spell out image features unsupported by the kernel rbd: spell out image features unsupported by the kernel Mar 10, 2017
@idryomov
Copy link
Contributor Author

Dropped " or so" and took off DNM.

Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@idryomov idryomov merged commit aa647f4 into ceph:master Mar 14, 2017
@idryomov idryomov deleted the wip-krbd-feature-disable-msg branch March 14, 2017 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants