监控通知ceph有个osd挂掉了,经与IT确认磁盘坏掉了,需要更换磁盘。
1、查看故障磁盘的OSD ID
ceph osd tree
![547de0bd5e74f59536e6fec467354bee.png](https://i-blog.csdnimg.cn/blog_migrate/651271938ee2c860ce2f52d79ffdcaef.jpeg)
2、设置osd离开集群
ceph osd out 13systemctl stop ceph-osd-13
3、从crush map中移除故障的osd
ceph osd crush remove osd.13
![fbcb06eb20425c0f75558967130770d6.png](https://i-blog.csdnimg.cn/blog_migrate/414c2ea7ecb993003db3832a573109ca.jpeg)
再次查看osd 列表
![19f4fe56ab2f1d998e1eafecb9081174.png](https://i-blog.csdnimg.cn/blog_migrate/2e040a4b11c55fc0dd7eae0058de8f75.jpeg)
监控通知ceph有个osd挂掉了,经与IT确认磁盘坏掉了,需要更换磁盘。
ceph osd tree
ceph osd out 13systemctl stop ceph-osd-13
ceph osd crush remove osd.13
再次查看osd 列表