AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1164842
Accepted
Liquid
Liquid
Asked: 2024-09-06 00:07:40 +0800 CST2024-09-06 00:07:40 +0800 CST 2024-09-06 00:07:40 +0800 CST

ceph 升级后 ceph 协调器不可用

  • 772

我试图将 ceph 从 17 升级到 18.2.4,如下所述

ceph orch upgrade start --ceph-version 18.2.4
Initiating upgrade to quay.io/ceph/ceph:v18.2.4

但此后,协调器不再响应

ceph orch upgrade status
Error ENOENT: Module not found

将后端重新设置为 orchestrator 或 cephadm 失败,因为服务显示为“已禁用”。Ceph mgr 却表示服务已开启。

据我目前所知,我被困在一个运行 reef 的 mgr 守护进程上,而集群的其余部分在 quincy 上运行。

ceph versions
{
    "mon": {
        "ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)": 5
    },
    "mgr": {
        "ceph version 18.2.4 (e7ad5345525c7aa95470c26863873b581076945d) reef (stable)": 1
    },
    "osd": {
        "ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)": 31
    },
    "mds": {
        "ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)": 4
    },
    "overall": {
        "ceph version 17.2.7 (b12291d110049b2f35e32e0de30d70e9a4c060d2) quincy (stable)": 40,
        "ceph version 18.2.4 (e7ad5345525c7aa95470c26863873b581076945d) reef (stable)": 1
    }
}

如何将集群恢复到健康状态?

编辑1 Ceph健康:

  cluster:
    id:     16249ca6-4060-11ef-a8a1-7509512e051b
    health: HEALTH_WARN
            insufficient standby MDS daemons available
            mon gpu001 is low on available space
            1/5 mons down, quorum ***
            Degraded data redundancy: 92072087/608856489 objects degraded (15.122%), 97 pgs degraded, 97 pgs undersized
            7 pgs not deep-scrubbed in time

  services:
    mon: 5 daemons, quorum ***
    mgr: cpu01.fcxjpi(active, since 5m)
    mds: 4/4 daemons up
    osd: 34 osds: 31 up (since 45h), 31 in (since 46h); 31 remapped pgs
 
  data:
    volumes: 1/1 healthy
    pools:   4 pools, 193 pgs
    objects: 121.96M objects, 32 TiB
    usage:   36 TiB used, 73 TiB / 108 TiB avail
    pgs:     92072087/608856489 objects degraded (15.122%)
             29422795/608856489 objects misplaced (4.832%)
             97 active+undersized+degraded
             65 active+clean
             31 active+clean+remapped
  io:
    client:   253 KiB/s rd, 51 KiB/s wr, 3 op/s rd, 2 op/s wr

注意:该问题最初是在 SO [https://stackoverflow.com/posts/78949269] 上提出的,我被建议将其移到这里。我目前正在搜索 MGR 日志以调查状态,并最终强制降级。

ubuntu
  • 1 1 个回答
  • 18 Views

1 个回答

  • Voted
  1. Best Answer
    Liquid
    2024-09-07T00:05:35+08:002024-09-07T00:05:35+08:00

    感谢@eblock 为我指明了正确的方向。这确实与错误有关。https ://tracker.ceph.com/issues/67329

    我通过查看 mgr 日志进行了确认,其显示内容如下:

        debug2024-09-06T10:53:37.389+0000 7fe918b9a700 -1 mgr load Traceback (most recent call last):
      File "/usr/share/ceph/mgr/cephadm/module.py", line 535, in __init__
        self.to_remove_osds.load_from_store()
      File "/usr/share/ceph/mgr/cephadm/services/osd.py", line 917, in load_from_store
        osd_obj = OSD.from_json(osd, rm_util=self.rm_util)
      File "/usr/share/ceph/mgr/cephadm/services/osd.py", line 782, in from_json
        return cls(**inp)
    TypeError: __init__() got an unexpected keyword argument 'original_weight'
    

    我不确定这是否与我所做的任何事情有关。查看配置值(ceph 配置)时,我确实发现了有问题的值:

    ceph config-key get mgr/cephadm/osd_remove_queue
    [{"osd_id": 32, "started": true, "draining": false, "stopped": false, "replace": false, "force": false, "zap": false, "hostname": "cpu03", "original_weight": null, ...}]
    

    这是来自故障机器上仍未删除的 osd。运行 ceph config-key rm mgr/cephadm/osd_remove_queue,重新启动管理器,得到 cep

    • 0

相关问题

  • 无法通过 Ubuntu VPN 访问外部网络

  • ubuntu apt-get upgrade - 如何在 shell 中单击确定?

  • VirtualBox 上 Ubuntu 的访客优化技巧 [关闭]

  • 外部硬盘上的 virtualbox 虚拟硬盘驱动器(Vista 主机上的 ubuntu 客户机)

  • 如何在 Ubuntu 上挂载 LVM 分区?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve