----------------
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``:
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
-----------------
.. _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