Deploy Ceph Cluster

to deploy new ceph cluster, first install docker with this link.

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

Note: As I mentioned before, you also can use podman too.

after docker check your lvm2 version:

lvm version
output > LVM version:     2.03.16(2) (2022-05-18)

install chrony too:

in debian based:
apt install -y chrony

in rocky:
dnf install -y chrony

now check python version:

python3 --version
output > Python 3.12.3

Lets start to deploy:

with cephadm command, bootstarp new cluster:

cephadm --docker bootstrap --mon-ip 172.16.1.111

Note: To seprate cluster network user --cluster-network [network-subnet]

example:

cephadm --docker bootstrap --mon-ip 172.16.1.111 --cluster-netwokr 172.16.2.0/24

Note: the --docker switch is for installation cluster on docker, default, cephadm bootstrap new cluster on podman and no need to add specific swith to it.

After deploying cluster finished, it gives you a password to login in dashboard with it. with https://172.16.1.111:8443 you can access your ceph dashboard. Note: if you have problem to access dashboard, check your system firewall.

after changing password, you see ceph dashboard. It is normal if you see your cluster status is in warning. because ceph default wants at least 3 OSDs in your cluster.

install ceph-common package to work with ceph command:

apt  install ceph-common -y

Last updated