前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >How to remove OSD from Ceph cluster

How to remove OSD from Ceph cluster

作者头像
domain0
发布2018-08-01 18:26:43
1K0
发布2018-08-01 18:26:43
举报
文章被收录于专栏:运维一切运维一切

###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.
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017/06/28 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档