]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Doc: add a note about a CRUSH corner case with `ceph osd out` 4674/head
authorlafont <francois.lafont@crdp.ac-versailles.fr>
Thu, 14 May 2015 00:01:01 +0000 (02:01 +0200)
committerlafont <francois.lafont@crdp.ac-versailles.fr>
Thu, 14 May 2015 00:02:33 +0000 (02:02 +0200)
Signed-off-by: François Lafont <francois.lafont@ac-versailles.fr>
doc/rados/operations/add-or-rm-osds.rst

index bfb9ff71043eaff4de65a4bae09c3357b76bd7d8..76b043e25fe7e4b6ee417f91381b5c423128bb00 100644 (file)
@@ -244,6 +244,27 @@ You should see the placement group states change from ``active+clean`` to
 ``active, some degraded objects``, and finally ``active+clean`` when migration
 completes. (Control-c to exit.)
 
+.. note:: Sometimes, typically in a "small" cluster with few hosts (for
+   instance with a small testing cluster), the fact to take ``out`` the
+   OSD can spawn a CRUSH corner case where some PGs remain stuck in the
+   ``active+remapped`` state. If you are in this case, you should mark
+   the OSD ``in`` with:
+
+       ``ceph osd in {osd-num}``
+
+   to come back to the initial state and then, instead of marking ``out``
+   the OSD, set its weight to 0 with:
+
+       ``ceph osd crush reweight osd.{osd-num} 0``
+
+   After that, you can observe the data migration which should come to its
+   end. The difference between marking ``out`` the OSD and reweighting it
+   to 0 is that in the first case the weight of the bucket which contains
+   the OSD isn't changed whereas in the second case the weight of the bucket
+   is updated (and decreased of the OSD weight). The reweight command could
+   be sometimes favoured in the case of a "small" cluster.
+
+
 
 Stopping the OSD
 ----------------