Lingkungan
- Ubuntu 18.04 Bionic
- Ceph 15.2.X Octopus
Panduan
- Siapkan file hosts pada semua host
sudo bash -c 'cat<<EOF >> /etc/hosts
######## Lab Environment ########
192.168.10.211 aa-bionic-ceph01
192.168.10.212 aa-bionic-ceph02
192.168.10.213 aa-bionic-ceph03
#################################
EOF'
- Update dan upgrade package pada semua host
sudo apt update -y; sudo apt upgrade -y
- Pasang uca repository pada semua host
sudo add-apt-repository cloud-archive:ussuri
- Pasang package ceph-deploy pada
aa-bionic-ceph01
sudo apt install -y ceph-deploy
- Pasang package-package ceph pada semua host
mkdir ~/ceph-deploy; cd ~/ceph-deploy
ceph-deploy install aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
- Inisiasi ceph monitor
ceph-deploy new aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
ceph-deploy mon create aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
- Dapatkan keyring cluster
ceph-deploy gatherkeys aa-bionic-ceph01
Keyring yang akan didapatkan:
- ceph.bootstrap-mds.keyring
- ceph.bootstrap-mgr.keyring
- ceph.bootstrap-osd.keyring
- ceph.bootstrap-rgw.keyring
- ceph.client.admin.keyring
- ceph.mon.keyring
- Persiapkan agar host dapat melakukan administrasi klaster Generate file ceph.conf dan ceph.client.admin.keyring
ceph-deploy admin aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
- Membuat ceph manager
ceph-deploy mgr create aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
- Membuat OSD
ceph-deploy osd create aa-bionic-ceph01 --data /dev/vdb
ceph-deploy osd create aa-bionic-ceph01 --data /dev/vdc
ceph-deploy osd create aa-bionic-ceph01 --data /dev/vdd
ceph-deploy osd create aa-bionic-ceph02 --data /dev/vdb
ceph-deploy osd create aa-bionic-ceph02 --data /dev/vdc
ceph-deploy osd create aa-bionic-ceph02 --data /dev/vdd
ceph-deploy osd create aa-bionic-ceph03 --data /dev/vdb
ceph-deploy osd create aa-bionic-ceph03 --data /dev/vdc
ceph-deploy osd create aa-bionic-ceph03 --data /dev/vdd
- Hasil