Ceph Object Gateway的使用

(1) 使用要求:
    a) 集羣的狀態是 activ+clean。節點配置,將admnode也做爲client-node使用
                  主機名         角色               磁盤                         
        ================================================================
        a) admnode      deploy-node,client-node     
        b) node1          mon1,osd.2,mds        Disk(/dev/sdb  capacity:10G)
        c) node2          osd.0,mon2            Disk(/dev/sdb  capacity:10G)
        d) node3          osd.1,mon3            Disk(/dev/sdb  capacity:10G)
    b) 確保7480端口沒有被佔用,或者沒有被防火牆屏蔽(打開方法見http://docs.ceph.com/docs/master/start/quick-start-preflight/)
    c) Client節點安裝了 Ceph Object Gateway 包,若沒有安裝使用以下命令
        # ceph-deploy install --rgw <client-node> [<client-node> ...]node

(2) 使用方法
    a) 在deploy節點是,使用命令給client節點建立rgw實例
        # ceph-deploy rgw create <client-node's-host-name>
        ...
        [node1][WARNIN]    D-Bus, udev, scripted systemctl call, ...).
        [ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host node1 and default port 7480
       
        經過以下命令查詢7480端口,確認Ceph Object Gateway (RGW)服務開啓
        # sudo netstat -tlunp | grep 7480
            tcp        0      0 0.0.0.0:7480            0.0.0.0:*               LISTEN      10399/radosgw 
   
    b) 查看RGW服務,經過在client節點的瀏覽器打開以下網址,則RRW服務測試成功。
        # http://<ip-of-client-node or client node's host name>:7480
        網頁中會出現以下相似XML配置信息:
        <?xml version="1.0" encoding="UTF-8"?>
        <ListAllMyBucketsResult>
          <Owner>
            <ID>anonymous</ID>
            <DisplayName></DisplayName>
          </Owner>
            <Buckets>
          </Buckets>
        </ListAllMyBucketsResult>瀏覽器

相關文章
相關標籤/搜索