Managing mirroring on a pool
Learn to enable and disable mirroring on a Ceph Block Device pool by using the command-line interface. You can also get the mirroring status for a pool.
Before you begin
Enabling mirroring on a pool
Procedure
Enable mirroring on a pool, by using the mirror pool enable
command.
Be sure to run the command on both peer
clusters.
rbd mirror pool enable POOL_NAME MODEThe
following example enables
pool mode mirroring of the whole pool named
data.[root@rbd-client ~]# rbd mirror pool enable data pool
Disabling mirroring on a pool
Before you begin
About this task
Procedure
Disable mirroring on a pool, by using the mirror pool disable
command.
rbd mirror pool disable POOL_NAME
The following example disables mirroring of a pool named
data.[root@rbd-client ~]# rbd mirror pool disable data
Getting mirroring status for a pool
About this task
Procedure
Run the following command to get the pool
status.
Syntax
rbd mirror pool status POOL_NAMETo output status details for every mirroring image in a pool, use the --verbose option.
Example
[root@site-a ~]# rbd mirror pool status data
health: OK
daemon health: OK
image health: OK
images: 1 total
1 replaying