Lingkungan

  • Ubuntu 18.04 Bionic
  • Ceph 15.2.X Octopus

Panduan

  1. 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'
  1. Update dan upgrade package pada semua host
sudo apt update -y; sudo apt upgrade -y
  1. Pasang uca repository pada semua host
sudo add-apt-repository cloud-archive:ussuri
  1. Pasang package ceph-deploy pada aa-bionic-ceph01
sudo apt install -y ceph-deploy
  1. 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
  1. 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
  1. 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
  1. 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
  1. Membuat ceph manager
ceph-deploy mgr create aa-bionic-ceph01 aa-bionic-ceph02 aa-bionic-ceph03
  1. 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
  1. Hasil

Referensi