]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add some details about rbd-mirror site names
authorIlya Dryomov <idryomov@gmail.com>
Fri, 3 Sep 2021 16:12:40 +0000 (18:12 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 3 Sep 2021 16:17:47 +0000 (18:17 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
doc/rbd/rbd-mirroring.rst

index 5108ad0afcdb35a00f8d8a44f7ca4cc94a085842..ab78d53466e5467d789e028165abb8ab02b59fb2 100644 (file)
@@ -79,9 +79,10 @@ Enable Mirroring
 ----------------
 
 To enable mirroring on a pool with ``rbd``, issue the ``mirror pool enable``
-subcommand with the pool name, and the mirroring mode::
+subcommand with the pool name, the mirroring mode, and an optional friendly
+site name to describe the local cluster::
 
-        rbd mirror pool enable {pool-name} {mode}
+        rbd mirror pool enable [--site-name {local-site-name}] {pool-name} {mode}
 
 The mirroring mode can either be ``image`` or ``pool``:
 
@@ -92,8 +93,15 @@ The mirroring mode can either be ``image`` or ``pool``:
 
 For example::
 
-        $ rbd --cluster site-a mirror pool enable image-pool image
-        $ rbd --cluster site-b mirror pool enable image-pool image
+        $ rbd --cluster site-a mirror pool enable --site-name site-a image-pool image
+        $ rbd --cluster site-b mirror pool enable --site-name site-b image-pool image
+
+The site name can also be specified when creating or importing a new
+`bootstrap token`_.
+
+The site name can be changed later using the same ``mirror pool enable``
+subcommand but note that the local site name and the corresponding site name
+used by the remote cluster generally must match.
 
 Disable Mirroring
 -----------------
@@ -523,6 +531,7 @@ The ``rbd-mirror`` can also be run in foreground by ``rbd-mirror`` command::
 .. _rbd: ../../man/8/rbd
 .. _ceph-conf: ../../rados/configuration/ceph-conf/#running-multiple-clusters
 .. _explicitly enabled: #enable-image-mirroring
+.. _bootstrap token: #bootstrap-peers
 .. _force resync command: #force-image-resync
 .. _demote the image: #image-promotion-and-demotion
 .. _create a Ceph user: ../../rados/operations/user-management#add-a-user