.. code-block:: python
:linenos:
- ioctx = cluster.open_ioctx(pool_id)
+ ioctx = cluster.open_ioctx2(pool_id)
Once you have an I/O context, you can read/write objects, extended attributes,
mirroring.
mirror image resync Force resync to primary image for RBD
mirroring.
- mirror image status Show RDB mirroring status for an image.
+ mirror image status Show RBD mirroring status for an image.
mirror pool demote Demote all primary images in the pool.
mirror pool disable Disable RBD mirroring by default within a
pool.
[--format <format>] [--pretty-format]
<image-spec>
- Show RDB mirroring status for an image.
+ Show RBD mirroring status for an image.
Positional arguments
<image-spec> image specification
Positional arguments
<pool-name> pool name
<remote-cluster-spec> remote cluster spec
- (example: [<client name>@]<cluster name>
+ (example: [<client name>@]<cluster name>)
Optional arguments
-p [ --pool ] arg pool name
&get_arguments, &execute_resync);
Shell::Action action_status(
{"mirror", "image", "status"}, {},
- "Show RDB mirroring status for an image.", "",
+ "Show RBD mirroring status for an image.", "",
&get_status_arguments, &execute_status);
} // namespace mirror_image
at::add_pool_options(positional, options);
positional->add_options()
("remote-cluster-spec", "remote cluster spec\n"
- "(example: [<client name>@]<cluster name>");
+ "(example: [<client name>@]<cluster name>)");
options->add_options()
("remote-client-name", po::value<std::string>(), "remote client name")
("remote-cluster", po::value<std::string>(), "remote cluster name");