ceph RGW 部署测试

一: RGW部署

 



[root@node-10 cluster]# ceph-deploy install --rgw node-10
-----------------------

[node-10][DEBUG ] Package matching 2:ceph-radosgw-13.2.8-0.el7.x86_64 already installed. Checking for update.
[node-10][DEBUG ] Nothing to do
[node-10][INFO  ] Running command: ceph --version
[node-10][DEBUG ] ceph version 14.2.8 (2d095e947a02261ce61424021bb43bd3022d35cb) nautilus (stable)
[root@node-10 cluster]# ceph-deploy rgw create node-10
------------------------------
[node-10][INFO  ] Running command: systemctl start ceph-radosgw@rgw.node-10
[node-10][INFO  ] Running command: systemctl enable ceph.target
[ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host node-10 and default port 7480

[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]#  netstat -ntlp|grep 7480
tcp        0      0 0.0.0.0:7480            0.0.0.0:*               LISTEN      5405/radosgw       
tcp6       0      0 :::7480                 :::*                    LISTEN      5405/radosgw       
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# curl http://node-10:7480
<?xml version="1.0" encoding="UTF-8"?><ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>anonymous</ID><DisplayName></DisplayName></Owner><Buckets></Buckets></ListAllMyBucketsResult>[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# netstat -ntlp|grep 7480
tcp        0      0 0.0.0.0:7480            0.0.0.0:*               LISTEN      5405/radosgw       
tcp6       0      0 :::7480                 :::*                    LISTEN      5405/radosgw       
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# systemctl restart ceph-radosgw.target
[root@node-10 cluster]# systemctl status ceph-radosgw.target
● ceph-radosgw.target - ceph target allowing to start/stop all ceph-radosgw@.service instances at once
   Loaded: loaded (/usr/lib/systemd/system/ceph-radosgw.target; enabled; vendor preset: enabled)
   Active: active since Tue 2020-03-24 17:39:51 CST; 7s ago

Mar 24 17:39:51 node-10 systemd[1]: Reached target ceph target allowing to start/stop all ceph-radosgw@.service instances at once.
[root@node-10 cluster]#
[root@node-10 cluster]#

在ceph.conf 文件添加如下civetweb 作为http服务

[client.rgw.node-10]
rgw_frontends = "civetweb port=80"

[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# cat ceph.conf
[global]
fsid = e59a2590-37b2-4153-8d90-3a14dfdb8f43
public_network = 100.183.135.0/24
cluster_network = 100.100.100.0/24
mon_initial_members = node-10, node-11, node-12
mon_host = 100.183.135.100,10.183.135.111,100.183.135.112
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx

[client.rgw.node-10]
rgw_frontends = "civetweb port=80"

[root@node-10 cluster]#


[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# ceph-deploy --overwrite-conf config push node-10 node-11 node-12
[root@node-10 cluster]# ceph-deploy admin node-10 node-11 node-12
[root@node-10 cluster]#
[root@node-10 cluster]#
[root@node-10 cluster]# systemctl restart ceph.target
[root@node-10 cluster]#  systemctl restart ceph-radosgw.target

二:S3 Browser(GUI )测试

 

 

 

 

 ~]#

~]#

~]# s3cmd ls s3://test001

2020-5-18 02:13 666894336   s3://test001/CentOS-7-x86_64-Minimal-1503-01.iso

2020-5-18 01:03       319   s3://test001/ceph.conf

~]#

~]#

~]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值