mirror of
https://github.com/ceph/ceph
synced 2024-12-20 18:33:44 +00:00
b162696b32
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
44 lines
802 B
ReStructuredText
44 lines
802 B
ReStructuredText
============================
|
|
Resizing the RADOS cluster
|
|
============================
|
|
|
|
Adding a new OSD to the cluster
|
|
===============================
|
|
|
|
Briefly...
|
|
|
|
#. Allocate a new OSD id::
|
|
|
|
$ ceph osd create
|
|
123
|
|
|
|
#. Make sure ceph.conf is valid for the new OSD.
|
|
|
|
#. Initialize osd data directory::
|
|
|
|
$ ceph-osd -i 123 --mkfs --mkkey
|
|
|
|
#. Register the OSD authentication key::
|
|
|
|
$ ceph auth add osd.123 osd 'allow *' mon 'allow rwx' -i /var/lib/ceph/osd-data/123/keyring
|
|
|
|
#. Adjust the CRUSH map to allocate data to the new device (see :ref:`adjusting-crush`).
|
|
|
|
|
|
Removing OSDs
|
|
=============
|
|
|
|
Briefly...
|
|
|
|
#. Stop the daemon
|
|
|
|
#. Remove it from the CRUSH map::
|
|
|
|
$ ceph osd crush remove osd.123
|
|
|
|
#. Remove it from the osd map::
|
|
|
|
$ ceph osd rm 123
|
|
|
|
See also :ref:`failures-osd`.
|