一: RGW部署

 



[[email protected] 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)
[[email protected] cluster]# ceph-deploy rgw create node-10
------------------------------
[node-10][INFO  ] Running command: systemctl start [email protected]
[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

[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] 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       
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] 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>[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] 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       
[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] cluster]# systemctl restart ceph-radosgw.target
[[email protected] cluster]# systemctl status ceph-radosgw.target
● ceph-radosgw.target - ceph target allowing to start/stop all [email protected] 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 [email protected] instances at once.
[[email protected] cluster]#
[[email protected] cluster]#

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

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

[[email protected] cluster]#
[[email protected] cluster]#
[[email protected] 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"

[[email protected] cluster]#


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

二:S3 Browser(GUI )测试

ceph RGW 部署测试

 

ceph RGW 部署测试

 

 

 

 ~]#

~]#

~]# 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

~]#

~]#

~]#

相关文章: