ceph-mon1
ceph-mon2
ceph-mon3
ceph-osd1
ceph-osd2
ceph-osd3
(1)edit /etc/hosts file
## ceph nodes informations
192.168.12.100 ceph-mon1
192.168.12.101 ceph-mon2
192.168.12.102 ceph-mon3
192.168.12.103 ceph-osd1
192.168.12.104 ceph-osd2
192.168.12.105 ceph-osd3
(2) update and restart OS
sudo apt update && sudo apt -y upgrade
sudo reboot
(3) Install basic utils and Ansible
sudo apt -y install software-properties-common git curl bash-completion ansible
(4) generate ssh-key
ssh-keygen -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa
(5) install cephadm
curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
chmod +x cephadm
sudo mv cephadm /usr/local/bin
(6) update all ceph nodes and push the ssh public key
cd ~/
vim prepare-ceph-nodes.yaml
---
- name: Prepare ceph nodes
hosts: ceph-nodes
become: yes
vars:
ceph_admin_user: cephadmin
tasks:
- name: Set timezone
timezone:
name: Asian/Chin
在ubuntu环境部署ceph集群
最新推荐文章于 2024-07-18 11:06:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)