]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: fix rst syntax
authorSage Weil <sage@newdream.net>
Tue, 6 Dec 2011 00:16:35 +0000 (16:16 -0800)
committerSage Weil <sage@newdream.net>
Tue, 6 Dec 2011 00:16:35 +0000 (16:16 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
doc/ops/manage/grow/mon.rst

index 15b5df09a3cd4db44adb156791761210ffe112cf..7fe5f933af396fc5bdaa4630a64729b8afd2563c 100644 (file)
@@ -5,9 +5,9 @@
 Adding a monitor
 ----------------
 
-1) Initialize the new monitor's data directory with the ``ceph-mon
---mkfs`` command.  You need to provide the new monitor with three
-pieces of information:
+#. Initialize the new monitor's data directory with the ``ceph-mon
+   --mkfs`` command.  You need to provide the new monitor with three
+   pieces of information:
 
    - the cluster fsid
    - one or more existing monitors to join
@@ -15,19 +15,18 @@ pieces of information:
 
    The simplest way to do this is probably::
 
-     $ ceph mon getmap -o /tmp/monmap
-     $ ceph auth export mon. -o /tmp/monkey
+     $ ceph mon getmap -o /tmp/monmap           # provides fsid and existing monitor addrs
+     $ ceph auth export mon. -o /tmp/monkey     # mon. auth key
      $ ceph-mon -i newname --mkfs --monmap /tmp/foo --keyring /tmp/monkey
 
-2) Start the new monitor and it will automatically join the cluster::
+#. Start the new monitor and it will automatically join the cluster::
 
-     $ ceph-mon -i newname
-
-3) If you would like other nodes to be able to use this monitor during
-their initial startup, you'll need to adjust ``ceph.conf`` to add a
-section and ``mon addr`` for the new monitor, or add it to the
-existing ``mon host`` list.
+    $ ceph-mon -i newname
 
+#. If you would like other nodes to be able to use this monitor during
+   their initial startup, you'll need to adjust ``ceph.conf`` to add a
+   section and ``mon addr`` for the new monitor, or add it to the
+   existing ``mon host`` list.
 
 Removing a monitor from a healthy cluster
 -----------------------------------------
@@ -46,16 +45,16 @@ Removing a monitor from an unhealth/down cluster
 The mon cluster may not be up because you have lost too many nodes to
 form a quorum.
 
-1) On a surviving monitor node, find the most recent monmap::
+#) On a surviving monitor node, find the most recent monmap::
 
      $ ls $mon_data/monmap
      1  2  accepted_pn  last_committed  latest
 
    in this case it is 2.
 
-2) Copy to a temporary location and modify the monmap to remove the
-node(s) you don't want.  Let's say the map has ``mon.a``, ``mon.b``,
-and ``mon.c``, but only ``mon.a`` is surviving::
+#) Copy to a temporary location and modify the monmap to remove the
+   node(s) you don't want.  Let's say the map has ``mon.a``, ``mon.b``,
+   and ``mon.c``, but only ``mon.a`` is surviving::
 
      $ cp $mon_data/monmap/2 /tmp/foo
      $ monmaptool /tmp/foo --rm b
@@ -66,7 +65,7 @@ and ``mon.c``, but only ``mon.a`` is surviving::
      $ service ceph stop mon
 
 4) Inject the modified map on any surviving nodes.  For example, for
-``mon.a``::
+   ``mon.a``::
 
      $ ceph-mon -i a --inject-monmap /tmp/foo   # for each surviving monitor
 
@@ -75,4 +74,4 @@ and ``mon.c``, but only ``mon.a`` is surviving::
      $ service ceph start mon           # on each node with a surviving monitor
 
 6) Remove the old monitors from ``ceph.conf`` so that nobody tries to
-connect to the old instances.
\ No newline at end of file
+   connect to the old instances.
\ No newline at end of file