3.3. Use replication

3.3.1. setup shares to replicate

Now that the replication is running and configured, you have to define, which shares should be replicated.

Navigate to shares -> projects.
You will notice a new menu item since you installed the second zpool. This menu can be seen at the upper left corner of the screen and specifies, which zpool you are currently working on.
Click on pools and select mypool1. Now, you should see the projects, you created in the earlier labs.
ZFSAttack_03_05_replication5.png
Click on the pen icon next to myproject (the project, you build in lab 2) and navigate to replication.
ZFSAttack_03_06_replication6.png
Click the “+” – icon next to Actions.
ZFSAttack_03_07_replication7.png
Select the target machine, you defined in the last step (called target) and the pool mypool2.
Leave the other options on default.
On the bottom, you can select, if you want a continouus replication or a scheduled one. Scheduled means that your data will be replicated on a regular basis (like, for example, once per hour). In a continouus replication however, the appliance constantly monitors your source zpool and replicates any changes to the target in nearly real time.
Let’s select scheduled replication for now. Click add.
ZFSAttack_03_08_replication8.png
You will see your defined action as well as information about the last and the next scheduled run.
You now have to start a first manual replication by clicking the icon next to status, shaped like two arrows in a circle.
When you do so you will notice some status messages at the top of your screen, displaying start and the end of the operation.

Now let’s see, what has been done.

3.3.2. View replicated shares

Navigate to shares -> shares.
In the top left menu, select mypool2 and you be presented with an empty list of shares.
Directly beneath Filesystem you will notice a menu bar show all, local, replica. Click on replica.
ZFSAttack_03_09_replication9.png
Here you will see the shares, that are the replicas of the original ones on mypool1. Notice, that you set the replication on project level, so both shares inside the project (myshare and myclone) will be replicated.

Take a while and play around in the menu to become familiar with the concept.
Go to the next page, if you are ready to break some stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *