官术网_书友最值得收藏!

  • Ceph Cookbook(Second Edition)
  • Vikhyat Umrao Michael Hackett Karan Singh
  • 274字
  • 2021-07-02 23:19:17

How to do it…

  1. To install and configure the Ceph  RGW, we will use the ceph-ansbile from ceph-node1, which is our ceph-ansible and one of the monitor node. Log in to the ceph-node1 and perform the following commands:
    1. Make sure that the ceph-node1 can reach the rgw-node1 over the network by using the following command:
                # ping rgw-node1 -c 1
    1. Allow ceph-node1 a password-less SSH login to rgw-node1 and test the connection.

The root password for rgw-node1 is the same as earlier, that is, vagrant.
# ssh-copy-id rgw-node1
# ssh rgw-node1 hostname

  1. Add rgw-node1 to the ceph-ansible hosts file and test the Ansible ping command:
        # ansible all -m ping
  1. Update all.yml file to install and configure the Ceph RGW in the VM rgw-node1:
        [root@ceph-node1 ceph-ansible]# cd /usr/share/
ceph-ansible/group_vars/
[root@ceph-node1 group_vars]# vim all.yml
  1. Enable the radosgw_civetweb_port and radosgw_civetweb_bind_ip option. In this book, rgw-node1 has IP 192.168.1.106 and we are using port 8080:
  1. Change the directory back to /usr/share/ceph-ansible and then run the playbook, it will install and configure the RGW in rgw-node1:
        $ cd ..
$ ansible-playbook site.yml
  1. Once ceph-ansible finishes the installation and configuration, you will have the following recap output:
  1. Once it completes, you will have the radosgw daemon running in rgw-node1:
  1. And you will notice in the following screenshot that we now have more pools which got created for RGW:
  1. The Civetweb web server that is embedded into the radosgw daemon should now be running on the specified port, 8080:
  1. You will have the following entries related to this RGW in rgw-node1 VM /etc/ceph/ceph.conf:
主站蜘蛛池模板: 吉木乃县| 巧家县| 虞城县| 拉孜县| 皋兰县| 荣昌县| 崇州市| 安义县| 鞍山市| 马公市| 安阳市| 平果县| 达日县| 方正县| 岚皋县| 宝坻区| 东城区| 公主岭市| 洛宁县| 遂宁市| 芒康县| 武邑县| 香河县| 库车县| 定日县| 张掖市| 治多县| 年辖:市辖区| 集贤县| 柘荣县| 皮山县| 瓮安县| 邛崃市| 阿拉善右旗| 利津县| 拜泉县| 朝阳区| 大新县| 肥西县| 抚顺市| 北碚区|