(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>浏览器