lock remove (lock rm) Release a lock on an image.
map Map image to a block device using the kernel.
merge-diff Merge two diff exports together.
- mirror image demote Demote an image to secondary for RBD mirroring.
+ mirror image demote Demote an image to non-primary for RBD
+ mirroring.
mirror image disable Disable RBD mirroring for an image.
mirror image enable Enable RBD mirroring for an image.
mirror image promote Promote an image to primary for RBD mirroring.
usage: rbd mirror image demote [--pool <pool>] [--image <image>]
<image-spec>
- Demote an image to secondary for RBD mirroring.
+ Demote an image to non-primary for RBD mirroring.
Positional arguments
<image-spec> image specification
return r;
}
- std::cout << "" << std::endl;
+ std::cout << "Image promoted to primary" << std::endl;
return 0;
}
r = image.mirror_image_demote();
if (r < 0) {
- std::cerr << "rbd: error demoting image to secondary" << std::endl;
+ std::cerr << "rbd: error demoting image to non-primary" << std::endl;
return r;
}
- std::cout << "Image demoted to secondary" << std::endl;
+ std::cout << "Image demoted to non-primary" << std::endl;
return 0;
}
&get_arguments_promote, &execute_promote);
Shell::Action action_demote(
{"mirror", "image", "demote"}, {},
- "Demote an image to secondary for RBD mirroring.", "",
+ "Demote an image to non-primary for RBD mirroring.", "",
&get_arguments, &execute_demote);
Shell::Action action_resync(
{"mirror", "image", "resync"}, {},