部署RGW节点

RGW(RADOS Gateway)是Ceph集群对外提供对象存储服务的一个网关,为客户端访问Ceph集群提供了一个兼容S3和Swift的RESTfulAPI接口。本章节主要介绍如何配置RGW节点。

  1. 根据ceph.conf的配置,创建RGW实例,在主节点ceph1上执行。具体配置设置内容可参考配置RGW节点

    1
    2
    3
    4
    cd /root/ceph-mycluster 
    ceph-deploy rgw create ceph1:bucket1 
    ceph-deploy rgw create ceph2:bucket2 
    ceph-deploy rgw create ceph3:bucket3
    

  2. 上述命令执行成功后,查看3个RGW进程是否在线。

    1
    ceph -s
    

    返回信息如下所示:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    cluster: 
    id:     0207ddea-2150-4509-860d-365e87420b3e 
    health: HEALTH_OK 
     
    services: 
    mon: 3 daemons, quorum ceph1,ceph2,ceph3 (age 25h) 
    mgr: ceph3(active, since 2d), standbys: ceph2, ceph1 
    osd: 1 osds: 1 up (since 25h), 1 in (since 9d) 
    rgw: 3 daemons active (3 hosts, 1 zones)