Creating a test Ceph Cluster on Bare-metal/ VM

Alex Punnen
Techlogs
Published in
1 min readJan 8, 2021

Setting up a Ceph Cluster using CephDeploy tool

Follow https://docs.ceph.com/docs/mimic/start/quick-ceph-deploy/
Few things, before you start.

You could use this blog https://www.linuxtechi.com/install-configure-ceph-cluster-centos-7/ to see how to create the cephadm user and passwordless ssh to other nodes

I used CentOS 7.7 OS version. Use an updated OS version, it will save a lot of headaches.

[root@ceph-1 ~]# cat /etc/*-release
CentOS Linux release 7.7.1908 (Core)

Note when using ceph-deploy please cpecify the version you want to deploy 
ceph-deploy install –release nautilus

I used three nodes ceph-1, ceph-2, ceph-3 , ceph-4 (all in the same NW and allow all in firewall settings for ease)

ceph-1 was for installing from; to the other three nodes ceph-2,ceph-3 and ceph-4 for ceph.

Don’t install/force install in ceph-1 node using ceph-deploy!

I mounted the volumes in ceph-2, ceph-3 and ceph-4. (OpenStack — clean volumes)

Few more steps.

  1. Enable Password-based SSH in all the nodes /etc/ssh/sshd._config and restart sshd service for ssh-copy-id to work if you are stuck there
  2. Make sure the hostnames that you give to commands are same as the machine hostname
  3. Install pip and update remoto and ceph-deploy packages before you start ceph-deploy, if needed

sudo pip install — upgrade remoto
sudo pip install -U ceph-deploy

That’s it. Rest is as per the documentation.

--

--

Alex Punnen
Techlogs

SW Architect/programmer- in various languages and technologies from 2001 to now. https://www.linkedin.com/in/alexpunnen/