45Drives Knowledge Base
KB450430 - Adding OSD Nodes to a Ceph Cluster
https://knowledgebase.45drives.com/kb/kb450430-adding-osd-nodes-to-a-cluster/

KB450430 - Adding OSD Nodes to a Ceph Cluster

Posted on June 22, 2021 by Austin Axworthy


Scope/Description

Prerequisites

Steps

Check Ceph Version on all Nodes

CentOS command: rpm -qa | grep ceph
Ubuntu Command: apt list --installed | grep ceph

Set Maintenance Flags

ceph osd set norebalance 

ceph osd set noout 

ceph osd set norecover
ceph -s

Add New Nodes to Host File

vim /etc/hosts

ssh-copy-id root@OSD4
vim /usr/share/ceph-ansible/hosts

cd /usr/share/ceph-ansible

ansible -i hosts -m ping osds

Run the Device-aliasing Playbook to generate the host.yml file for the new OSD Nodes

cd /usr/share/ceph-ansible

ansible-playbook -i hosts device-alias.yml

Run the Core Playbook to add new OSD Nodes

cd /usr/share/ceph-ansible

ansible-playbook -i hosts core.yml --limit osds

Unset Maintenance Flags

ceph osd unset noout

ceph osd unset norecover

ceph osd unset norebalance

Verification

Troubleshooting