VScaler: Adding and removing kolla ceph OSDs

From Define Wiki
Jump to navigation Jump to search

Removing an OSD

docker exec ceph_mon ceph osd out osd.2
marked out osd.2. 
docker exec ceph_mon ceph osd crush remove osd.2
removed osd.2
docker exec ceph_mon ceph auth del osd.2
updated
docker exec ceph_mon ceph osd down osd.2
marked down osd.2.
docker exec ceph_mon ceph osd rm osd.2
removed osd.2

unmount and remove from /etc/fstab

osd.2 is the OSD to be removed

Adding an OSD

dd if=/dev/zero of=/dev/sde bs=1 count=512

parted /dev/sde -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP 1 -1

kolla-ansible deploy -i inventory -t ceph

/dev/sde is the block device to be used for the new OSD.