- Ceph Cookbook(Second Edition)
- Vikhyat Umrao Michael Hackett Karan Singh
- 293字
- 2021-07-02 23:19:07
How to do it…
A Ceph storage cluster requires at least one monitor to run. For high availability, a Ceph storage cluster relies on an odd number of monitors and more than one, for example, 3 or 5, to form a quorum. It uses the Paxos algorithm to maintain quorum majority. You will notice that your Ceph cluster is currently showing HEALTH_WARN; this is because we have not configured any OSDs other than ceph-node1. By default, the data in a Ceph cluster is replicated three times, that too on three different OSDs hosted on three different nodes.
Since we already have one monitor running on ceph-node1, let's create two more monitors for our Ceph cluster and configure OSDs on ceph-node2 and ceph-node3:
- Update the Ceph hosts ceph-node2 and ceph-node3 to /etc/ansible/hosts:

- Verify that Ansible can reach the Ceph hosts mentioned in /etc/ansible/hosts:

- Run Ansible playbook in order to scale up the Ceph cluster on ceph-node2 and ceph-node3:

Once playbook completes the ceph cluster scaleout job and plays the recap with failed=0, it means that the Ceph ansible has deployed more Ceph daemons in the cluster, as shown in the following screenshot.
You have three more OSD daemons and one more monitor daemon running in ceph-node2 and three more OSD daemons and one more monitor daemon running in ceph-node3. Now you have total nine OSD daemons and three monitor daemons running on three nodes:

- We were getting a too few PGs per OSD warning and because of that, we increased the default RBD pool PGs from 64 to 128. Check the status of your Ceph cluster; at this stage, your cluster is healthy. PGs - placement groups are covered in detail in Chapter 9, Ceph Under the Hood.
- 腦動力:Linux指令速查效率手冊
- Mastering Spark for Data Science
- 21天學(xué)通PHP
- 控制與決策系統(tǒng)仿真
- WOW!Illustrator CS6完全自學(xué)寶典
- Getting Started with MariaDB
- 傳感器技術(shù)應(yīng)用
- 大數(shù)據(jù)挑戰(zhàn)與NoSQL數(shù)據(jù)庫技術(shù)
- 機(jī)器學(xué)習(xí)流水線實戰(zhàn)
- C語言寶典
- Word 2007,Excel 2007辦公應(yīng)用融會貫通
- Mastering GitLab 12
- 運(yùn)動控制系統(tǒng)(第2版)
- 漢字錄入技能訓(xùn)練
- 伺服與運(yùn)動控制系統(tǒng)設(shè)計