How to remove OSD from Ceph cluster

###How to remove OSD from Ceph cluster It is not well described in the docs.

  • Look into OSD list (ceph osd tree). Select one you want to remove. Let’s say it is an ‘osd.11’.
  • Mark it ‘out’: ceph osd out osd.11 If you see “osd.11 is already out” — it’s ok.
  • Mark it as ‘down’: ceph osd down osd.11
  • Remove it: ceph osd rm osd.11. If it says ‘Error EBUSY: osd.11 is still up; must be down before removal.’ that means OSD is not dead yet. Go to the host it resides on and kill it (systemctl stop ceph-osd@11), and repeat rm operation.
  • Now it would list in ceph osd tree with ‘DNE’ status (DNE = do not exists). To clean up this status, remove it from CRUSH map: ceph osd crush rm osd.11
  • Last step: remove it authorization (it should prevent problems with 'couldn’t add new osd with same number’): ceph auth del osd.11. Please note: in the real life you should be really careful not to damage data on the OSD, so this instruction should be used only for dead OSDs without any hope for recover.

转载于:https://my.oschina.net/xueyi28/blog/1052735

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值