Installing a new ceph monitor
To install a new ceph monitor. Execute the following steps:
- Install the role
role::ceph::mon
on the new ceph-mon. - Add the new ceph-mon to the
profile::ceph::monitors
in hiera
Removing a ceph monitor
- Remove the node from
profile::ceph::monitors
in hiera - Stop puppet on the node you want to remove
- Stop ceph-mon and ceph-mgr
- On another ceph-mon, run
ceph mon remove <mon-name>
Reinstalling a storage node
If a storage-node is reinstalled, either because it needs a newer OS or because the node moves from old to new infrastructure, there is no need to start with its OSD fresh. The OSD's can be reinstalled into the cluster if they have not been reformatted with the following steps:
- Run "ceph-disk list" to see which disks are recognized by ceph
- "chown" all the ceph disk's to be owned by the "ceph" user and the "ceph" group
- Restart all the osd by running "ceph-disk activate <path-to-disk>" for each disk that "ceph-disk" lists as an "ceph data" disk.