【问题标题】:Rogue Ceph OSD not assigned to a hostRogue Ceph OSD 未分配给主机
【发布时间】:2017-01-27 13:16:38
【问题描述】:

我为 ceph 添加了一个额外的驱动器,但在 zapping 磁盘后,创建失败,因为它正在被设备映射器使用。重新启动后它已正确创建,但在运行 ceph osd tree 时我得到:

ID WEIGHT  TYPE NAME         UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 4.53099 root default
-2 3.62700     host mymachine2
 0 0.90399         osd.0          up  1.00000          1.00000
 3 2.72299         osd.3          up  1.00000          1.00000
-3 0.90399     host mymachine4
 1 0.90399         osd.1          up  1.00000          1.00000
 2       0 osd.2                down        0          1.00000

我已阅读文档,但没有找到删除“流氓”osd.2 的方法

ceph health 目前不显示任何警告或错误。有什么建议么?

【问题讨论】:

    标签: ceph


    【解决方案1】:

    如果你试试这个:

    ceph osd crush reweight osd.2 0.0
    

    然后等待重新平衡

    ceph osd out 2
    service ceph stop osd.2
    ceph osd crush remove osd.2
    ceph auth del osd.2
    ceph osd rm 2
    

    这能解决问题吗?

    【讨论】:

    • 是的!或多或少... reweight 给出了以下错误Error ENOENT: device 'osd.2' does not appear in the crush map 然后service ceph stop osd.2 没有输出,正如我猜的那样。 Crush 说 osd.2 没有出现在 Crush 地图中,并且 auth del 说实体不存在……但 ceph osd rm 2 实际上将其删除。谢谢!
    猜你喜欢
    • 2022-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多