Académique Documents
Professionnel Documents
Culture Documents
1.2 Prerequisites
In order to use this lab successfully, the following are the recommended prerequisites:
• This lab assumes you have a basic working knowledge of ONTAP, but does not require any previous
experience with SnapMirror or SnapVault.
1. On the Jumphost, launch the Chrome web browser from the task bar.
Figure 4-1:
2. Use the cluster2 System Manager button on the browser's bookmark bar to launch and log in to
System Manager for "cluster2".
3. Fill in the System Manager login credentials:
• User Name: admin
• Password: Netapp1!
4. Click the Sign In button to log in to System Manager.
Figure 4-2:
Figure 4-3:
7
6
Figure 4-4:
The “Edit Relationship” dialog window opens, and displays the source and destination volumes for the
selected relationship. Here you can alter the relationships' assigned Mirror Policy and Schedule. You can
again see that this relationship is using the “DPDefault” Mirror Policy, but now you can also see that it is
using the predefined schedule 5min, which the accompanying summary information indicates runs every
day, every 5 minutes of each hour.
If you wanted to create a new policy or a new schedule, you could use the hyperlinks on the right of this
window to start that process, but to view the details of existing policies or schedules you have to look
elsewhere, as you will see later in this lab.
10. Click the Cancel button to close this window without applying any changes.
10
Figure 4-5:
12
11
Figure 4-6:
13
Figure 4-7:
14. In the pane that now displays on the left hand side of the window, click Protection Policies, which you
will find under the “Policies” section of that pane.
15. Note that there are no policies listed in the “Protection Policies” pane, not even the standard DPDefault
policy. ONTAP comes with several pre-defined standard policies, none of which are editable, and this
view only displays custom policies.
16
15
14
Figure 4-8:
The “Create Policy” window opens. In this window you can see the various properties that you can
assign to a custom protection policy through System Manager.
17. Examine the fields in this window. A “Policy Type” value of “Asynchronous Mirror” indicates a
SnapMirror relationship, and when selected the other fields in this window allow you to control various
aspects of the resulting SnapMirror relationship. The other possible “Policy Type” values are used for
"Mirror Vault" (Unified Replication) and SnapVault relationships. Notice how the contents of the “Create
Policy” window change as you select different “Policy Type” values.
18. When you are finished reviewing the contents of the “Create Policy” window, click Cancel.
18
Figure 4-9:
The “Create Policy” window closes, and focus returns to the “SVM Settings” view in System Manager.
Now you will take a closer look at the schedules that exist on cluster2.
19. On the left-hand menu, navigate to Protection > Schedules.
20. In the “Schedules” pane, select the 5min schedule.
21. Click the Edit button.
21
20
19
Figure 4-10:
22
Figure 4-11:
The “Edit Schedule - 5min” window closes, and focus returns to the “Schedules” view in System
Manager.
Since SnapMirror leverages NetApp Snapshot technology, several aspects of SnapMirror behavior
are governed by the underlying volume’s snapshot configuration. For volumes that are in a SnapMirror
relationship, the source volume’s snapshot configuration applies to both the source and destination
volumes, so you will now look at cluster1 to view the source volume’s snapshot configuration.
23. Open a new Chrome browser tab.
24. Click on the browser bookmarks button for cluster1 System Manager.
25. Enter the User Name admin, and the password Netapp1!.
26. Click Sign In.
System Manager displays the “Dashboard” view for cluster1.
27. On the left menu select Storage > Volumes.
28. Select the snapmirror_src1 volume hyperlink in the “Volumes” pane.
27
Figure 4-12:
29. On the upper right of the “Volumes” pane, select More Actions > Manage Snapshots >
Configuration Settings.
29
Figure 4-13:
30
31
Figure 4-14:
The “Configure Volume Snapshot Copies” window closes, and focus returns to the Volumes view in
System Manager.
1. On the Jumphost, launch the Chrome web browser from the task bar.
Figure 4-16:
2. Use the cluster2 System Manager button on the browser's bookmark bar to launch and log in to
System Manager for cluster2.
3. Fill in the System Manager login credentials:
• User Name: admin
• Password: Netapp1!
4. Click the Sign In button to log in to System Manager.
Figure 4-17:
4
Figure 4-18:
Figure 4-19:
The “Browse SVM” window closes, and the “Create Protection Relationship” window opens.
9. In the "Create Protection Relationship" dialog box, select or enter the following:
Relationship Type: Mirror
Cluster: cluster1
SVM: snap_src1
Volume: Click Browse and select the volume mirror_me
Destination Volume SVM: verify it is set to svm_dst1
Volume name suffix: Leave default for this exercise.
Mirror Policy: Click Browse and select DPDefault
Schedule: Click Browse and select 5min
10. Scroll down to the bottom of this window and make sure the Initialize Relationship checkbox is
checked. (This checkbox is not shown in the accompanying screenshot, but is checked by default.)
11. Click Create.
10
Figure 4-20:
The “Create Protection Relationship” window closes, and focus returns to the “Relationships” view of
System Manager for cluster2.
You can now view information regarding the SnapMirror relationship you just created.
12. While still in the “Relationships” window, select the mirror_me relationship. The Relationship State may
display as “Uninitialized”, and the Transfer Status as “Transferring”.
11 12
Figure 4-21:
13. In the main pane, click the Refresh button periodically until the “Transfer Status” value changes to
“Idle”.
13 14
Figure 4-22:
At this point, the baseline transfer of the volume’s contents from the source volume to the destination
volume has completed. Updates to this relationship will occur according to the assigned schedule, in
this case, every five minutes.
1. With the newly created protection relationship still selected, clicking on the Operations > Update button
at the top of the Relationships pane.
Figure 4-23:
Figure 4-24:
Figure 4-25:
4. Click the Refresh button again periodically while you watch the update process execute. Once it finishes
the “Transfer State” field will display “Idle” again, at which point the SnapMirror update operation is
complete.
Figure 4-26:
In this exercise you will review the details of an existing SnapVault relationship between a source and destination
volume.
The topology for this exercise is as follows:
Tasks
Open OnCommand System Manager for Cluster2
View an existing SnapVault Relationship
Edit existing relationship to view what can be modified
View Protection policies
Figure 4-28:
2. Use the cluster2 System Manager button on the browser's bookmark bar to launch and log in to
System Manager for cluster2.
3. Fill in the System Manager login credentials:
• User Name: admin
• Password: Netapp1!
4. Click the Sign In button to log in to System Manager.
Figure 4-29:
5 6 7
8
Figure 4-30:
11
14
Figure 4-31:
The “Edit Relationship” window closes, and focus returns to the “Relationship” view in System Manager.
15. From the left menu, click Storage > SVMs.
16. In the SVM list, click the svm_dst1 hyperlink.
15
Figure 4-32:
System Manager displays the “Overview” page for the svm_dst1 SVM.
17. Click on the SVM Settings tab at upper right of the overview window.
17
Figure 4-33:
18. In the pane that now displays on the left hand side of the window, click Protection Policies, which you
will find under the “Policies” section of that pane.
19. Note that there are no policies listed in the “Protection Policies” pane, not even the standard
XDPDefault policy. ONTAP comes with several pre-defined standard policies, none of which are
editable, and this view only displays custom policies.
20
19
18
Figure 4-34:
The “Create Policy” window opens. In this window you can see the various properties that you can
assign to a custom protection policy through System Manager.
21. Change the “Policy Type:” field to Vault, which indicates this will be a SnapVault policy.
22. Here you can see many of the same configuration options you saw when you examined how to create
a SnapMirror policy in a previous exercise, including the ability to set transfer priorities, and to enable
network compression. The other options under the “Policy Rules” section enable you to assign labels
and retention values for your SnapVault snapshots.
Note: As you will see in the Unified Replication Exercise, assigning labels help to identify
snapshots based on any criteria (backup type, application, frequency, etc). Setting the retention
provides control over the number of snapshots retained.
23. Since the procedure for creating a SnapVault relationship is otherwise the same as creating a
SnapMirror relationship (as you did in the preceding exercise), in the interest of saving time you will not
continue creating a SnapVault relationship here. After you review the contents of the “Create Policy”
window, click the Cancel button to exit the window without applying any changes.
23
Figure 4-35:
The “Create Policy” window closes, and focus returns to the “SVM Settings” view in System Manager.
SnapVault and SnapMirror share the same scheduling engine, and can also share the same schedules,
although in practice it is common to use different schedules for these two types of relationships as they
often require different update frequencies.
In this activity, you have viewed an existing SnapVault relationship including the assigned policy and schedule.
Since SnapMirror and SnapVault share the same scheduling engine the the creation and setup of a protection
relationship are quite similar. Unified Replication increases that similarity further as you will see in an upcoming
lab exercise.
This exercise will demonstrate the powerful capabilities of Unified Replication (SnapMirror and SnapVault existing
within the same volume sharing the same baseline). It will demonstrate how you can set labels and retention
times on the individual snapshots in a volume to behave like a vault snapshot or a DR snapshot.
The tasks you will perform are listed below.
Tasks
Create policies for Unified Replication
Create Mirror-Vault relationship
Create Snapshots and perform update
Figure 4-36:
2. Use the cluster1 System Manager button on the browser's bookmark bar to launch and log in to
System Manager for "cluster1".
3. Fill in the System Manager login credentials:
• User Name: admin
• Password: Netapp1!
4. Click the Sign In button to log in to System Manager.
Figure 4-37:
9
Figure 4-39:
10. Open a browser session for "cluster2" and repeat the previous steps. The same policy must exist on
both source and destination clusters.
Figure 4-40:
Figure 4-41:
The “Browse SVM” window closes, and the “Create Protection Relationship” window opens.
5. In the “Relationship Type” section, set
Relationship Type: Mirror Vault (Unified Replication).
6. In the “Source Volume” section, set
Cluster:cluster1
SVM: snap_src1
Volume: Click Browse and select Unified_Replication_src1.
7. In the “Destination Volume” section, verify
SVM: svm_dst1 - If there were more than one SVM on this cluster, this would be a drop-down
selection box.
Volume Name Suffix: _dest - A custom suffix for the destination volume. For this exercise, leave the
default.
8. In the “Configuration Details” section, set
Mirror and Vault Policy: Click Browse... to select oracle.
Schedule: leave default
9. Scroll down to the bottom of this window and make sure the Initialize Relationship checkbox is
checked. (This checkbox is not shown in the accompanying screenshot, but should be checked by
default.)
10. Click Validate to check the specifications for this relationship.
9
7
10
Figure 4-42:
11. Once the validation is complete, click Create to create the relationship.
Figure 4-43:
12. In the relationship listing monitor the status of the creation and initialization of the newly created Unified
Replication relationship.
12
Figure 4-44:
Figure 4-45:
2. On "cluster1" create some snaphots to transfer during the next SnapMirror update.
Note: The -snapmirror-label option specifies a label that is used by the Vaulting subsystem
when you back up Snapshot copies to the Vault Destination. The -expiry-time option indicates
the time at which the Snapshot copy becomes eligible for deletion.
snapmirror.f37fb61f-5433-11e6-9502-005056010cf1_2152686027.2016-08-25_191500
76KB 0% 17%
daily.2016-08-26_0010 500KB 1% 58%
daily.2016-09-21_0010 624KB 1% 63%
hourly.2016-09-21_1305 72KB 0% 16%
hourly.2016-09-21_1405 72KB 0% 16%
hourly.2016-09-21_1505 72KB 0% 16%
hourly.2016-09-21_1605 680KB 1% 65%
hourly.2016-09-21_1705 72KB 0% 16%
hourly.2016-09-21_1805 68KB 0% 16%
snapmirror.f37fb61f-5433-11e6-9502-005056010cf1_2152686024.2016-09-21_182733
68KB 0% 16%
oraclevault 68KB 0% 16%
oracleDR 64KB 0% 15%
15 entries were displayed.
3. On "cluster2", update the destination volume with the new snapshots you just created on the source
volume.
4. Verify that all the snapmirror relationships are all idle, indicating the snapmirror update operation is
complete.
snapmirror.f37fb61f-5433-11e6-9502-005056010cf1_2152686024.2016-09-21_182733
108KB 0% 23%
oraclevault 108KB 0% 23%
oracleDR 108KB 0% 23%
snapmirror.f37fb61f-5433-11e6-9502-005056010cf1_2152686024.2016-09-21_183141
64KB 0% 15%
4 entries were displayed.
Here you see the snapshots you created at the beginning of this exercise, one as a DR type snapshot
and the other as a backup (i.e. vault) type snapshot by virtue of their different labels and retention
periods. This is significant because snapshots both reside within the same volume. Prior to ONTAP 8.3
this would have required two separate volumes and two separate baselines as it was not possible to mix
the two.
In this activity, you have created a protection relationship between two volumes that combines both a mirror and
a vault relationship (Unified Replication) that reduces network bandwidth and necessary capacity by sharing a
baseline initialization.
2. After the primary volume becomes unavailable, a SnapMirror break operation is performed to fail over
each volume. In the ONTAP operating system, wildcards can be used to perform a SnapMirror operation
on multiple volumes with one command.
Note: If the volumes have been mounted in the namespace, and CIFS shares and NFS export
policies created and applied, clients then have read-write access to the NAS data.
Figure 4-47:
3. Once the volume becomes available again, any changes that occurred during the failover can be
replicated back to the original source volume.
Figure 4-48:
Note: It is important to remember that once the resynchronization is complete, the volume on cluster 2
is still the "source" volume now. Steps 1 and 2 would have to be repeated to return the relationship to its
original state.
In this exercise you will use OnCommand System Manager to make an existing SnapMirror destination volume
writeable, and then reverse the relationship so that the original source volume now mirrors the contents of the
original destination volume.
The tasks you will perform are listed below:
Tasks
Break a SnapMirror relationship
Set up data for testing
Create a snapshot
Reverse resynchronize relationship
Verify results of reverse resync
Figure 4-49:
2. Use the cluster2 System Manager button on the browser's bookmark bar to launch and System
Manager for cluster2.
3. Fill in the System Manager login credentials:
• User Name: admin
• Password: Netapp1!
4. Click the Sign In button to log in to System Manager.
Figure 4-50:
Figure 4-51:
Figure 4-52:
9
10
Figure 4-53:
The “Break” window remains open while System Manager processes the break operation, then
automatically closes when finished, and focus returns to the “Relationships” view in System Manager.
11. Notice in the “Details” section that the relationship state has changed to “Broken Off”, which indicates
that the destination volume no longer accepts updates from the source volume, and also that the
destination volume is now writeable.
12. The “Is Healthy” field may also have gone from green to red indicating that the relationship is not
healthy. You may need to hit the Refresh button a few times (wait 5-10 seconds between presses)
before this change becomes visible.
12
11
Figure 4-54:
Figure 4-55:
3
Figure 4-56:
Figure 4-57:
6
Figure 4-58:
Figure 4-59:
Next you are going to create a snapshot on the source volume. Don't forget that the mirror has been broken off
so the original destination volume doesn't know about the source.txt file and the original source volume doesn't
know about the destination.txt file.
Figure 4-60:
4. On the upper right of the Volumes pane, navigate to More Actions > Manage Snapshots > Create.
Figure 4-61:
Figure 4-62:
The “Create Snapshot Copy” window closes, and focus returns to the “Volume:snapmirror_src1” view in
System Manager.
7. Click the Snapshot Copies button in the upper left of the Volumes pane.
Figure 4-63:
Figure 4-64:
Figure 4-65:
Figure 4-66:
Figure 4-67:
The “Reverse Resync” window remains open while System Manager completes the reverse operation,
and then automatically closes when finished, returning you to the “Relationships” pane in System
Manager.
7. Notice that the “snapmirror_src1” source volume is no longer present in the protection relationship list for
cluster2. This is because the relationship roles have been reversed.
Figure 4-68:
Figure 4-69:
Figure 4-70:
7. On the menu at the top of the pane, click the Snapshot Copies tab.
8. Try to locate the “my_snapshot” snapshot you created earlier in this exercise after breaking off the
original SnapMirror relationship. That snapshot is not present now because when you reversed the
relationship, the source volume reverted to the most recent snapmirror snapshot that both the source
and destination volumes had in common, which is an earlier snapshot than “my_snapshot”. The resync
then replicated any changes on the destination volume that had occured after that common snapshot
back to the source volume.
Figure 4-71:
9. Go back to Windows Explorer, select the K: drive (the original destination volume), and navigate to the
snapmirror_src1_dest folder.
10. Observe that the destination.txt file you previously created here is still present.
10
Figure 4-72:
11. Still in Windows Explorer, select the J: drive (the original source volume), and then navigate to the
snapmirror_src1 folder.
12. Observe that the source.txt file you previously created here is now gone, and that the destination.txt file
you created on the original destination volume is now present here too.
12
Figure 4-73:
The contents of the original source volume now mirror the contents of the original destination volume
when it was updated after the break. If you attempted to write any new files to the original source
volume, you would find that this volume is now read-only.
To make this volume writable again, and once again the “original” source volume in the SnapMirror
relationship, repeat the failover procedure, this time swapping the source and destination clusters,
SVMs, and volumes during the break and reverse re-sync steps. In order to save time, this lab guide
does not walk you through those steps, but you are welcome to do it on your own if you are interested.
In this activity you have take the steps necessary to make a SnapMirror destination available for production
(writable) should the primary site become unavailable. You also resynchronized the relationship in reverse which
is necessary prior to bringing the primary site back online for production.
NetApp provides no representations or warranties regarding the accuracy, reliability, or serviceability of any
information or recommendations provided in this publication, or with respect to any results that may be obtained
by the use of the information or observance of any recommendations provided herein. The information in this
document is distributed AS IS, and the use of this information or the implementation of any recommendations or
techniques herein is a customer’s responsibility and depends on the customer’s ability to evaluate and integrate
them into the customer’s operational environment. This document and the information contained herein may be
used solely in connection with the NetApp products discussed in this document.
®
Go further, faster
© 2018NetApp, Inc. All rights reserved. No portions of this document may be reproduced without prior written consent
of NetApp, Inc. Specifications are subject to change without notice. NetApp, the NetApp logo, Data ONTAP®,
ONTAP®, OnCommand®, SANtricity®, FlexPod®, SnapCenter®, and SolidFire® are trademarks or registered
trademarks of NetApp, Inc. in the United States and/or other countries. All other brands or products are trademarks or
registered trademarks of their respective holders and should be treated as such.