Adding peer in mirroring

Add storage cluster peer for the rbd-daemon mirror to discover its peer storage cluster on the IBM Storage Ceph Dashboard.

Before you begin

Before you begin, make sure that you have the following prerequisites in place:
  • Two healthy running IBM Storage Ceph clusters.

  • The dashboard is installed on both the clusters.

  • Pools created with the same name.

  • rbd application enabled on both the clusters.

Note: Ensure that mirroring is enabled for the pool in which images are created.

About this task

For more information, see Configuring two-way mirroring.

Creating a bootstrap token from site A

  1. From the dashboard navigation, go to Block > Mirroring and click Create Bootstrap Token.
  2. On the Navigation menu, click the Block drop-down menu, and click Mirroring .

  3. Click Create Bootstrap token .

    1. For the provided site name, select the pools to be mirrored.
    2. For the selected pools, generate a new bootstrap token by clicking Generate.
    3. Click Copy to Clipboard.
    4. Click Close.
      Figure 1. Create bootstrap token
      Create bootstrap token
  4. Enable the pool mirror mode.
    1. Select the pool.
    2. Click Edit Mode .
    3. From the Edit pool mirror mode dialog, select Image from the Mode list.
    4. Click Update .

      A notification displays that the pool was updated successfully.

      Figure 2. Edit pool mirror mode
      Edit pool mirror mode

Importing the bootstrap token on site B

  1. From the dashboard navigation, go to Block > Mirroring and click Import Bootstrap Token from the action drop-down.
    Note: Ensure that mirroring mode is enabled for the specific pool for which you are importing the bootstrap token.
  2. In the Import Bootstrap Token dialog, select the direction, and paste the token copied earlier, from Site A. -
  3. Click Submit.
    Figure 3. Import bootstrap token
    Import bootstrap token

    The peer is added and the images are mirrored in the cluster at site B.

  4. Verify that the health of the pool is in an OK state.
    • On the Block > Mirroring page, in the Pool table, verify the health of the pool.

Creating a Block Device image with mirroring on site A

  1. Create a Block Device image with mirroring enabled.
    1. From the dashboard navigation, go to Block > Images.
    2. On the Images tab, click Create.
    3. In the Create RBD form, fill in the Name , Size.
    4. Select Mirroring .
      Note: Select mirroring with either Journaling or Snapshot .
    5. Click Create RBD.
  2. Verify that the image is available at both the sites.
    • From the Images table, verify that the image in Site A is set to primary and that the image in site B is set to secondary.