Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rdb map error in ceph what to do with rbd sysfs write failed

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to do the rdb map error rbd sysfs write failed in ceph, I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

Created a rbd image

$rbd create-- size 4096 docker_test

Then, an error occurred while mapping the rbd mirror to a local device on the Ceph client side.

Rbd map docker_test-- name client.adminrbd: sysfs write failedRBD 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.

Reason: some features of rbd mirroring are not supported by OS kernel, so the mapping failed. Let's take a look at which features are supported by the image.

$rbd info docker_testrbd image 'docker_test': size 4096 MB in 1024 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.43702ae8944a format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:

You can see the feature feature column, because the kernel of my OS only supports layering, but nothing else, so we need to disable some features that are not supported. Method 1: directly diable the unsupported feature of rbd image:

$rbd feature disable docker_test exclusive-lock object-map fast-diff deep-flatten

Method 2: specify the required features when creating a rbd image, such as:

$rbd create-size 4096 docker_test-image-feature layering

Method 3: if you still want to do it once and for all, modify the Ceph configuration file / etc/ceph/ceph.conf in the server that executes the command to create rbd image, and under global section, add

Rbd_default_features = 1

Then create a rdb image.

$rbd create-- size 4096 docker_test

After using the above three methods, view the information of the rbd image.

$rbd info docker_testrbd image 'docker_test': size 4096 MB in 1024 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.43a22ae8944a format: 2 features: layering flags:

Try mapping rdb mirroring to the local parcel device again, successfully!

$rbd map docker_test-name client.admin/dev/rbd0 above is all the content of the article "what to do with rdb map errors in rbd sysfs write failed in ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report