centos ceph raid0 bcache 故障osd更换
首先停止故障osd运行:
# ceph osd out osd.4
# systemctl stop ceph-osd@4.service
解除bcache绑定(停用前端缓存),假设故障osd是建立在bcache1上,缓存盘的cset-uuid为805bc5f1-36e9-4685-a86a-3ea8c03f1172,我osd只是偶尔出现错误即将故障,而不是不能识盘,所以正常解除绑定清理脏数据:
# echo 805bc5f1-36e9-4685-a86a-3ea8c03f1172 > /sys/block/bcache1/bcache/detach