:command:`mirror pool info` [*pool-name*]
Show information about the pool or namespace mirroring configuration.
- For both pools and namespaces, it includes the mirroring mode
+ For both pools and namespaces, it includes the mirroring mode, mirror UUID
and remote namespace. For pools, it additionally includes the site name,
- peer UUID, mirror UUID, remote cluster name, and remote client name.
+ peer UUID, remote cluster name, and remote client name.
:command:`mirror pool peer add` [*pool-name*] *remote-cluster-spec*
Add a mirroring peer to a pool.
}
if (mirror_mode != RBD_MIRROR_MODE_DISABLED) {
+ r = rbd.mirror_uuid_get(io_ctx, &mirror_uuid);
+ if (r < 0) {
+ return r;
+ }
r = rbd.mirror_remote_namespace_get(io_ctx, &remote_namespace);
if (r < 0) {
return r;
}
}
if (formatter != nullptr) {
+ formatter->dump_string("mirror_uuid", mirror_uuid);
formatter->dump_string("remote_namespace", remote_namespace);
} else {
+ std::cout << "Mirror UUID: " << mirror_uuid << std::endl;
std::cout << "Remote Namespace: " << remote_namespace << std::endl
<< std::endl;
}