2019独角兽企业重金招聘Python工程师标准>>>
ceph 10.2.x rbd map 错误一例:
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
解决方案:
rbd info vm-128-disk-1
rbd image 'vm-128-disk-1':
size 102400 MB in 25600 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.95a882ae8944a
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
其实就是kernel-rbd 对这些属性不支持,
根据网上案例,配置rbd_default_features = 3 ,测试无效。
于是有了终极武器:
rbd feature disable vm-128-disk-1 exclusive-lock, object-map, fast-diff, deep-flatten
查看:
rbd info vm-128-disk-1
rbd image 'vm-128-disk-1':
size 200 GB in 51200 objects
size 102400 MB in 25600 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.95a882ae8944a
format: 2
features:
flags:
再进行rbd map vm-128-disk-1 ,ok 问题解决