linux - Ceph-rgw 服务安装后自动停止

标签 linux raspberry-pi cluster-computing ceph

在我的本地集群(4 个 Raspberry PI)中,我尝试配置 rgw 网关。不幸的是,该服务在 2 分钟后自动消失。

[ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host OSD1 and default port 7480


cephuser@admin:~/mycluster $ ceph -s
  cluster:
    id:     745d44c2-86dd-4b2f-9c9c-ab50160ea353
    health: HEALTH_WARN
            too few PGs per OSD (24 < min 30)

  services:
    mon: 1 daemons, quorum admin
    mgr: admin(active)
    osd: 4 osds: 4 up, 4 in
    rgw: 1 daemon active

  data:
    pools:   4 pools, 32 pgs
    objects: 80 objects, 1.09KiB
    usage:   4.01GiB used, 93.6GiB / 97.6GiB avail
    pgs:     32 active+clean

  io:
    client:   5.83KiB/s rd, 0B/s wr, 7op/s rd, 1op/s wr

一分钟后,服务(rgw:1守护进程处于事件状态)不再可见:

cephuser@admin:~/mycluster $ ceph -s
  cluster:
    id:     745d44c2-86dd-4b2f-9c9c-ab50160ea353
    health: HEALTH_WARN
            too few PGs per OSD (24 < min 30)

  services:
    mon: 1 daemons, quorum admin
    mgr: admin(active)
    osd: 4 osds: 4 up, 4 in

  data:
    pools:   4 pools, 32 pgs
    objects: 80 objects, 1.09KiB
    usage:   4.01GiB used, 93.6GiB / 97.6GiB avail
    pgs:     32 active+clean

非常感谢您的帮助

最佳答案

解决方案: 在网关节点上,打开/etc/ceph/目录下的Ceph配置文件。

查找与示例类似的 RGW 客户端部分:

[client.rgw.gateway-node1]
host = gateway-node1
keyring = /var/lib/ceph/radosgw/ceph-rgw.gateway-node1/keyring
log file = /var/log/ceph/ceph-rgw-gateway-node1.log
rgw frontends = civetweb port=192.168.178.50:8080 num_threads=100

https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/object_gateway_guide_for_red_hat_enterprise_linux/index

关于linux - Ceph-rgw 服务安装后自动停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59751876/

相关文章:

mysql - 可以免费安装mySQL Cluster吗?

makefile - 使用 distcc 在 Raspberry pi 上编译 gnuradio

mysql - percona集群第二个节点未启动

PHP 执行脚本时默认使用 --ansi

linux - 查找包含关键字和提取编号的所有行

raspberry-pi - GPS数据解析

迁移到外部硬盘 RPi 后 MySQL 将无法启动

java - 跨集群共享 Java 同步块(synchronized block),还是使用全局锁?

linux - 需要在 shell 脚本中剪切部分字符串

linux - meminfo中的SReclaimable是什么意思