VScaler: Adding and removing kolla ceph OSDs

From Define Wiki
Revision as of 11:30, 19 February 2018 by Martin t (talk | contribs) (→‎Removing an OSD)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Removing an OSD

docker exec ceph_mon ceph osd out osd.2

docker exec ceph_mon ceph osd crush remove osd.2

docker exec ceph_mon ceph auth del osd.2

docker exec ceph_mon ceph osd down osd.2

docker exec ceph_mon ceph osd rm 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.