Converting journal-based mirroring to snapshot-based mirroring

Learn to convert journal-based mirroring to snapshot-based mirroring by using the command-line.

Before you begin

Before you begin, make sure that you have the following prerequisites in place:
  • A running IBM Storage Ceph cluster.
  • Root-level access to the node.

About this task

Convert journal-based mirroring to snapshot-based mirroring by disabling mirroring and enabling snapshots.

Procedure

  1. Log in to the Cephadm shell.
    Example,
    [root@rbd-client ~]# cephadm shell
  2. Disable mirroring for a specific image within the pool.
    Syntax,
    rbd mirror image disable POOL_NAME/IMAGE_NAME
    Example,
    [ceph: root@rbd-client /]# rbd mirror image disable mirror_pool/mirror_image
    Mirroring disabled
  3. Enable snapshot-based mirroring for the image.
    Syntax,
    rbd mirror image enable POOL_NAME/IMAGE_NAME snapshot
    The following example enables snapshot-based mirroring for the mirror_image image in the mirror_pool pool.
    ceph: root@rbd-client /]# rbd mirror image enable mirror_pool/mirror_image snapshot
    Mirroring enabled