These installation instructions use MicroCeph – Ceph in a snap. MicroCeph is a pure upstream Ceph distribution designed for small scale and edge deployments, which can be installed and maintained with minimal knowledge and effort.
To get started, install the MicroCeph snap with the following command on each node to be used in the cluster:
sudo snap install microceph
Then bootstrap the cluster from the first node:
sudo microceph cluster bootstrap
On the first node, add other nodes to the cluster:
sudo microceph cluster add node[x]
Copy the resulting output to be used on node[x]:
sudo microceph cluster join pasted-output-from-node1
Repeat these steps for each additional node you would like to add to the cluster.
Check the cluster status with the following command:
sudo microceph.ceph status
Here you should see that all the nodes you added have joined the cluster, in the familiar ceph status output.
Next, add some disks to each node that will be used as OSDs:
sudo microceph disk add /dev/sd[x] --wipe
Repeat for each disk you would like to use as an OSD on that node, and additionally on the other nodes in the cluster. Cluster status can be verified using:
sudo microceph.ceph status
sudo microceph.ceph osd status