doc/cephfs: fixup add/remove mds docs

Signed-off-by: liu wei <liu.wei8196@zte.com.cn>
This commit is contained in:
liu wei 2018-09-01 02:23:03 +08:00
parent d9ff2782c5
commit a77ca3357c

View File

@ -10,20 +10,20 @@ See `MDS Config Reference`_ for details on configuring metadata servers.
Add a Metadata Server
=====================
#. Create an mds data point ``/var/lib/ceph/mds/mds.<your-mds-id>``.
#. Create an mds data point ``/var/lib/ceph/mds/ceph-{$id}``.
#. Edit ``ceph.conf`` and add MDS section. ::
[mds.<your-mds-id>]
[mds.{$id}]
host = {hostname}
#. Create the authentication key, if you use CephX. ::
$ sudo ceph auth get-or-create mds.<your-mds-id> mon 'profile mds' mgr 'profile mds' mds 'allow *' osd 'allow *' > /var/lib/ceph/mds/ceph-<your-mds-id>/keying
$ sudo ceph auth get-or-create mds.{$id} mon 'profile mds' mgr 'profile mds' mds 'allow *' osd 'allow *' > /var/lib/ceph/mds/ceph-{$id}/keyring
#. Start the service. ::
$ sudo service ceph start mds.<your-mds-id>
$ sudo service ceph start mds.{$id}
#. The status of the cluster shows: ::
@ -46,6 +46,6 @@ the following method.
$ ceph mds fail <mds name>
#. Remove the ``/var/lib/ceph/mds/mds.<your-mds-id>`` directory on the old Metadata server.
#. Remove the ``/var/lib/ceph/mds/ceph-{$id}`` directory on the old Metadata server.
.. _MDS Config Reference: ../mds-config-ref