ceph-mon 无法在 rasberry pi (raspbian 8.0) 上启动

ceph-mon 无法在 rasberry pi (raspbian 8.0) 上启动

ceph-mon 无法在 rasberry pi (raspbian 8.0) 上启动

我最近购买了 3 个树莓派节点来创建一个小型存储集群,以便在家里进行测试。我发现了一些设置此操作的程序,看来人们已经成功完成了

我正在运行 Raspbian GNU/Linux 8.0 (jessie)。我正在使用 ceph-deploy 安装集群,它似乎安装了 ceph ARM 软件包的版本 10.2.5-7.2+rpi1。

当我尝试启动 ceph-mon 服务时,我从 systemd 收到以下错误:

Dec 14 19:59:46 ceph-master systemd[1]: Starting Ceph cluster monitor daemon...
Dec 14 19:59:46 ceph-master systemd[1]: Started Ceph cluster monitor daemon.
Dec 14 19:59:47 ceph-master ceph-mon[28237]: *** Caught signal (Segmentation fault) **
Dec 14 19:59:47 ceph-master ceph-mon[28237]: in thread 756a5c30 thread_name:admin_socket
Dec 14 19:59:47 ceph-master systemd[1]: [email protected]: main process exited, code=killed, status=11/SEGV
Dec 14 19:59:47 ceph-master systemd[1]: Unit [email protected] entered failed state.
Dec 14 19:59:47 ceph-master systemd[1]: [email protected] holdoff time over, scheduling restart.
Dec 14 19:59:47 ceph-master systemd[1]: Stopping Ceph cluster monitor daemon...
Dec 14 19:59:47 ceph-master systemd[1]: Starting Ceph cluster monitor daemon...
Dec 14 19:59:47 ceph-master systemd[1]: Started Ceph cluster monitor daemon.
Dec 14 19:59:49 ceph-master ceph-mon[28256]: *** Caught signal (Segmentation fault) **
Dec 14 19:59:49 ceph-master ceph-mon[28256]: in thread 75654c30 thread_name:admin_socket
Dec 14 19:59:49 ceph-master ceph-mon[28256]: ceph version 10.2.5 (c461ee19ecbc0c5c330aca20f7392c9a00730367)
Dec 14 19:59:49 ceph-master ceph-mon[28256]: 1: (()+0x4b1348) [0x54fae348]
Dec 14 19:59:49 ceph-master ceph-mon[28256]: 2: (__default_sa_restorer()+0) [0x768bb480]
Dec 14 19:59:49 ceph-master ceph-mon[28256]: 3: (AdminSocket::do_accept()+0x28) [0x550ca154]
Dec 14 19:59:49 ceph-master ceph-mon[28256]: 4: (AdminSocket::entry()+0x22c) [0x550cc458]
Dec 14 19:59:49 ceph-master systemd[1]: [email protected]: main process exited, code=killed, status=11/SEGV
Dec 14 19:59:49 ceph-master systemd[1]: Unit [email protected] entered failed state.
Dec 14 19:59:49 ceph-master systemd[1]: [email protected] holdoff time over, scheduling restart.
Dec 14 19:59:49 ceph-master systemd[1]: Stopping Ceph cluster monitor daemon...
Dec 14 19:59:49 ceph-master systemd[1]: Starting Ceph cluster monitor daemon...
Dec 14 19:59:49 ceph-master systemd[1]: Started Ceph cluster monitor daemon.
Dec 14 19:59:50 ceph-master ceph-mon[28271]: *** Caught signal (Segmentation fault) **
Dec 14 19:59:50 ceph-master ceph-mon[28271]: in thread 755fcc30 thread_name:admin_socket
Dec 14 19:59:50 ceph-master systemd[1]: [email protected]: main process exited, code=killed, status=11/SEGV
Dec 14 19:59:50 ceph-master systemd[1]: Unit [email protected] entered failed state.
Dec 14 19:59:50 ceph-master systemd[1]: [email protected] holdoff time over, scheduling restart.
Dec 14 19:59:50 ceph-master systemd[1]: Stopping Ceph cluster monitor daemon...
Dec 14 19:59:50 ceph-master systemd[1]: Starting Ceph cluster monitor daemon...
Dec 14 19:59:50 ceph-master systemd[1]: [email protected] start request repeated too quickly, refusing to start.
Dec 14 19:59:50 ceph-master systemd[1]: Failed to start Ceph cluster monitor daemon.
Dec 14 19:59:50 ceph-master systemd[1]: Unit [email protected] entered failed state.

我在这里寻求指导,因为我不确定为什么这不起作用。我的 apt 存储库使用以下 URL:

root@ceph-master:~# cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi

root@ceph-master:~# cat /etc/apt/sources.list.d/ceph.list
deb https://download.ceph.com/debian-jewel/ jessie main

还有其他人尝试过这个并遇到类似的问题吗?关于如何继续或解决此问题有什么建议吗?

答案1

Dec 14 19:59:47 ceph-master ceph-mon[28237]: *** Caught signal (Segmentation fault) **

那是一个编程错误。 ceph 正在访问一个指向涅槃的指针。

正如 @SYN 所说 - 你可能会更幸运地使用更新版本的 ceph,这个错误可能会被修复。如果没有,那么您应该将错误以及上游日志中可见的堆栈跟踪报告给 ceph 开发人员 - 当错误被捕获并修复时,每个人都应该感到高兴,尤其是在存储软件中。

答案2

我终于让 ceph 在我的 Raspberry Pi 3 上运行了。 Ceph 存储库仅具有适用于 arm64 架构的 ARM 软件包。所有的armhf包都消失了。我认为 ceph 社区不再关心 32 位,而一直关注 64 位。诀窍是安装 Ubuntu 的 arm64 版本。 download.ceph.com 上提供的唯一 arm64 软件包适用于 xenial 或 trusty。在多次尝试安装 64 位版本的 ubuntu 失败后,我使用了 64 位版本的 debian,只是将存储库更改为指向:

deb http://ports.ubuntu.com/ubuntu-ports xenial main universe
deb http://ports.ubuntu.com/ubuntu-ports xenial-updates main universe
deb http://ports.ubuntu.com/ubuntu-ports xenial-security main universe

我在这里找到了 64 位 rpi debian 映像:

https://github.com/bamarni/pi64/releases

我已经启动并运行了 ceph luminous!

ceph-admin@ceph-node0:~/my-cluster$ sudo ceph -s
  cluster:
    id:     5fa3e5e2-04ea-407e-b6f1-8ef5a3b3b1f2
    health: HEALTH_OK

  services:
    mon: 1 daemons, quorum ceph-node0
    mgr: ceph-node0(active)
    osd: 3 osds: 3 up, 3 in

  data:
    pools:   0 pools, 0 pgs
    objects: 0 objects, 0 bytes
    usage:   3164 MB used, 168 GB / 171 GB avail
    pgs:     

相关内容