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
- Two healthy running IBM Storage Ceph clusters.
- The dashboard is installed on both the clusters.
- Pools created with the same name.
rbdapplication enabled on both the clusters.
Note: Ensure that mirroring is enabled for the pool in which images are
created.
About this task
Creating a bootstrap token from site A
- From the dashboard navigation, go to and click Create Bootstrap Token.
- On the Navigation menu, click the Block drop-down menu, and click Mirroring.
- Click Create Bootstrap token.
- For the provided site name, select the pools to be mirrored.
- For the selected pools, generate a new bootstrap token by clicking Generate.
- Click Copy to Clipboard.
- Click Close.
Figure 1. Create bootstrap token 
- Enable the pool mirror mode.
- Select the pool.
- Click Edit Mode.
- From the Edit pool mirror mode dialog, select Image from the Mode list.
- Click Update.A notification displays that the pool was updated successfully.
Figure 2. Edit pool mirror mode 
Importing the bootstrap token on site B
- From the dashboard navigation, go to
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.
- In the Import Bootstrap Token dialog, select the direction, and paste the token copied earlier, from Site A.
- Click Submit.
Figure 3. Import bootstrap token 
The peer is added and the images are mirrored in the cluster at site B.
- Verify that the health of the pool is in an OK state.
- On the page, in the Pool table, verify the health of the pool.
Creating a Block Device image with mirroring on site A
- Create a Block Device image with mirroring enabled.
- From the dashboard navigation, go to .
- On the Images tab, click Create.
- In the Create Image form, and complete the Name, Size, and Pool.
- Select Mirroring . Note: Select mirroring with either Journal or Snapshot.
- Click Create Image.
- Verify that the image is available at both the sites.
- From the Images table, verify that the image in Site A is set to
primaryand that the image in site B is set tosecondary.
- From the Images table, verify that the image in Site A is set to