SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Recently Changed Pages:

View All Pages


View All Tags


LinkedIn




WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

View All Comments

srmpgrp

SRM 5.1: Create Protection Groups and Recovery Plans

This article explains how protection groups and recovery plans are made. Notice that the protection group is created at the protected site and the recovery plan is created at the recovery site.

Create SnapMirrored Volume

This is already discussed in NetApp SnapMirror but I wanted to do a quick and dirty one here anyway, just based on commandline interaction:

On the source filer:

filer02B> vol create R_01B_FC_PRD_02B_01 aggr0 30g
filer02B> vol autosize R_01B_FC_PRD_02B_001 -m 50g -i 5g on
filer02B> vol options R_01B_FC_PRD_02B_01 nosnap on
filer02B> vol options R_01B_FC_PRD_02B_01 no_atime_update on
filer02B> vol options R_01B_FC_PRD_02B_01 fractional_reserve 0
filer02B> snap reserve R_01B_FC_PRD_02B_01 0

On the target filer:

filer02b> vol create R_02B_FC_PRD_01B_01 -s none aggr0 50g
filer02b> vol options R_02B_FC_PRD_01B_01 nosnap on
filer02b> vol options R_02B_FC_PRD_01B_01 no_atime_update on
filer02b> vol options R_02B_FC_PRD_01B_01 fractional_reserve 0
filer02b> snap reserve R_02B_FC_PRD_01B_01 0
filer02b> vol restrict R_02B_FC_PRD_01B_01
filer02b> snapmirror initialize -S 10.10.18.72:R_01B_FC_PRD_02B_01 filer02b:R_02B_FC_PRD_01B_01
filer02b> rdfile /etc/snapmirror.conf
filer02b> wrfile /etc/snapmirror.conf
--- Add the entire output of the rdfile command and add an extra line for the new snapmirror

Now create a LUN and a datastore in the new volume and place a VM on this.

Note: After adding a new volume you have to include the volume in (both) the array managers for replication.

Create Protection Group

To create a protection group log in to the vSphere Client and open the Site Recovery View. At the protected site, click the “Protection Groups” button in the left bottom corner, and then click the “Create Protection Group” button in the left top corner:
srmpgrp01.jpg
In the Create Protection Group wizard select the protected site and the array manager pair under which the datastore/VM you want to protect lives in:
srmpgrp02.jpg
Now select the datastore group on which the VM is located. As you can see, all datastores and RDM that are part of the VMs on these datastores are automatically selected:
srmpgrp03.jpg
Now name and describe the group:
srmpgrp04.jpg
Review the settings and finish the wizard. This might take a while due to the protecting of VMs:
srmpgrp05.jpg
Note that due to inventory issues your VM could display some kind of warning. After double-clicking the VM and selecting a destination VM folder I got the protection state to OK for my VM:
srmpgrp08.jpg
Also, a placeholder VM is created in the destination cluster on the placeholder storage group:
srmpgrp09.jpg

Troubleshooting

When you create a protection group and get the error Unable to protect VM XXX due to unresolved devices, this is mostly due to missing inventory mappings:
srmpgrp06.jpgsrmpgrp07.jpg

Create Recovery Plan

At the recovery site, click the “Recovery Plans” button in the left bottom corner, and then click the “Create Recovery Plan” button in the left top corner:
srmpgrp10.jpg
Select the site where the VMs will be recovered, which is The Hague. Since I'm logged on the recovery site, this is also the local site:
srmpgrp11.jpg
Select the protection group you'll use:
srmpgrp12.jpg
Select the test network:
srmpgrp13.jpg
Name and describe the recovery plan:
srmpgrp14.jpg
Review the settings and finish the wizard:
srmpgrp15.jpg
You can now review the VMs that are part of the recovery plan, before you run a test:
srmpgrp16.jpg

Run a Test

You can now run a test of your recovery plan by pressing the test button. Do not press the Recovery button unless you really want to. Part of the recovery is to shutdown your production VM, while test keeps your production environment untouched:
srmpgrp17.jpg
After clicking test a general warning will popup telling you what you're about to do. You can select to do a final replication of changes to the recovery site, I choose not to to save time:
srmpgrp18.jpg
A final warning appears, click Start to run the test:
srmpgrp19.jpg
Now the test is actually running:
srmpgrp20.jpg

When the test is done you should perform a Cleanup operation to return to your protected state.

SRM Troubleshooting

In case you find that logging in does not work as expected after doing a test, take a look at DC role seizing AD DC Role Seizing, we have to do this sometimes.

We also ran into this problem a few times, with DNS not fully starting.

You could leave a comment if you were logged in.
srmpgrp.txt · Last modified: 2021/09/24 00:25 (external edit)