]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update RBD mirroring instructions for pool demotion/promotion 13758/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 3 Mar 2017 00:58:39 +0000 (19:58 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 8 Mar 2017 17:02:27 +0000 (12:02 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
doc/rbd/rbd-mirroring.rst

index e28497ffee21b142caba2e44abf1c0e3d2b3395c..5f1c1148907d0cc9a16c961072e5ada5cd6a51e5 100644 (file)
@@ -182,7 +182,7 @@ image on the alternate cluster.
    failover of an image. An external mechanism is required to coordinate the
    full failover process (e.g. closing the image before demotion).
 
-To demote an image to non-primary with ``rbd``, specify the
+To demote a specific image to non-primary with ``rbd``, specify the
 ``mirror image demote`` command along with the pool and image name::
 
         rbd mirror image demote {pool-name}/{image-name}
@@ -191,15 +191,33 @@ For example::
 
         rbd --cluster local mirror image demote image-pool/image-1
 
-To promote an image to primary with ``rbd``, specify the ``mirror image promote``
-command along with the pool and image name::
+To demote all primary images within a pool to non-primary with ``rbd``, specify
+the ``mirror pool demote`` command along with the pool name::
 
-        rbd mirror image promote {pool-name}/{image-name}
+        rbd mirror pool demote {pool-name}
+
+For example::
+
+        rbd --cluster local mirror pool demote image-pool
+
+To promote a specific image to primary with ``rbd``, specify the
+``mirror image promote`` command along with the pool and image name::
+
+        rbd mirror image promote [--force] {pool-name}/{image-name}
 
 For example::
 
         rbd --cluster remote mirror image promote image-pool/image-1
 
+To promote all non-primary images within a pool to primary with ``rbd``, specify
+the ``mirror pool promote`` command along with the pool name::
+
+        rbd mirror pool promote [--force] {pool-name}
+
+For example::
+
+        rbd --cluster local mirror pool promote image-pool
+
 .. tip:: Since the primary / non-primary status is per-image, it is possible to
    have two clusters split the IO load and stage failover / failback.