Ceph-rgw服务在安装后自动停止 [英] Ceph-rgw Service stop automatically after installation

查看:79
本文介绍了Ceph-rgw服务在安装后自动停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

in my local cluster (4 Raspberry PIs) i try to configure a rgw gateway. Unfortunately the services disappears automatically after 2 minutes.

[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个守护程序处于活动状态)不再可见:

After one minute the service(rgw: 1 daemon active) is no longer visible:

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配置文件.

Solution: On the gateway node, open the Ceph configuration file in the /etc/ceph/ directory.

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

Find an RGW client section similar to the example:

[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/zh-CN/red_hat_ceph_storage/3/html-single/object_gateway_guide_for_red_hat_enterprise_linux/index

这篇关于Ceph-rgw服务在安装后自动停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆