You are on page 1of 35

Virtual Vargi

Virtual Resources and News

VMware Site Recovery Manager 5 & NetApp Simulator 8.1

Version 1.0 January 2012 http://virtual-vargi.blogspot.com/

Contents
1 2 3 4 Introduction ................................................................................................................................. 3 LAB Setup .................................................................................................................................... 4 LAB Environment ....................................................................................................................... 5 LAB Build steps .......................................................................................................................... 6

Step 1 Setting up Workstation ........................................................................................................ 6 Step 2 Build Domain Controller (DC01) ........................................................................................ 6 Step 3 Build vCenter Servers (VC01 and VC02) ......................................................................... 7 Step 4 Build ESXi Host (ESX01 & ESX02) ................................................................................... 9 Step 5 Add ESX to vCenter ........................................................................................................... 11 Step 6 NetApp Simulator ............................................................................................................... 12 Step 7 OnCommand System Manager 2.0R1 ............................................................................ 17 Step 8 Create an iSCSI LUN and add to ESXi ........................................................................... 18 Step 9 Install SRM .......................................................................................................................... 24 Step 11 Configure SRM (Sites and Array Managers) ............................................................... 27 Step 12 Configure SRM (Protection Groups) ............................................................................. 30 Step 13 Configure SRM (Recovery Plan) ................................................................................... 32 Step 14 Configure SRM (Run Test) ............................................................................................. 33 Links ..................................................................................................................................................... 35

1 Introduction
This document came to being with the requirement to be familiar with SRM 5. As you cant substitute hands on time and the only time I can get is Lab time, I decided to see what was out there in terms of Lab setups and what Ill need to set my LAB up. First port of call was Google! The most popular result was a document titled SRM in a Box by Tomas ten Dam (http://tendam.wordpress.com/2008/11/18/srm-in-a-box-final-release-the-complete-setup/) hence the title of this document. I would like to thank Tomas for his great work on the his document. The information in this document are the steps I used to build a LAB where I could test SRM 5 and NetApp Simulator and not real world SRM architecture. It is only for testing and educational purposes.

2 LAB Setup
HARDWARE WHAT I USED. The Physical Host PC:
AMD Phenom II X6 1090T Processor 3.2 GHz 16 GB RAM DDR3 VMware Workstation 8.x. Windows 7 Pro 64 Bit 120 Gig Corsair Force GT SSD

SOFTWARE WHAT I USED.


Windows Server 2008 R2 Datacenter SQL ManagementStudio x64 The Netapp simulator 8.1 VMware vCenter (VMware-VIMSetup-all-5.0.0-456005) VMware SRM 5.0.0 474459 The Netapp SRA 2.0 OnCommand System Manger 2.0R1 A ESXi 5 Build 469512 Putty

3 LAB Environment
Well go through setting up lab environment. The LAB will be divided into two sites consisting of 1 ESXi 5 host, 1 vCenter Server and a NetApp Simulator for Storage. There will be also 1 DC/Management Server managing both sites as shown in diagram below. From a network perspective we are going to use a flat network (NAT on VM) for ease of setup and troubleshooting. I used 192.168.44.x range.

Vmware SRM 5 & Netapp Sim LAB Site 1


ESXi 5

vCenter SRM Domain Controller NetApp SIM

AD DNS OnCommand System Manger

Site 2
ESXi 5

vCenter SRM

NetApp SIM

4 LAB Build steps Step 1 Setting up Workstation


Create two folders in workstation by right clicking My Computer and selecting New Folder.

When finished should look like this.

Step 2 Build Domain Controller (DC01)


1. Next we build our DC. Right click the whitespace and select New Virtual Machine.

2. Follow the New VM wizard and use the parameter detailed below.

Note: Remove unwanted devices and Select the correct Hard Disk to store VM files

3. Start VM and install Server 2008 install VMware Tools and then promote to Domain Controller. If you are not sure how to this you can Google DCPROMO. I have some links that can get you started.

4. Once complete should look like this.

Step 3 Build vCenter Servers (VC01 and VC02)


1. Create a new VM with the parameters shown below.

2. Install Server 2008 and Name VM (VC01), install VMware Tools and then add to domain and then login as Domain Admin. The mount vCenter Server iso.

3. Go to console of VM. You see installer window.(if you dont browse to cd and click autorun.exe) Select vCenter Server and then Click Install. Use all the defaults.

4. Make sure you fulfill the prerequisites. Have this role configured.

Look in links section of this document for links for more details on installation of vCenter. 5. After vCenter installation we need to install vSphere Client. You do this starting vCenter installer and selecting vSphere Client. Follow wizard and use default settings.

6. Repeat Steps to build second vCenter Server (VC02). 7. For now we leave it as it is and will configure more after we build ESX hosts. 8. Then move VMs to appropriate folders and we should be looking like this.

Step 4 Build ESXi Host (ESX01 & ESX02)


1. Create a new VM with the parameters shown below.

2. Mount the ESXi 5 iso and start ESXi Install. Follow all default settings.

3. Go to Domain Controller and enter DNS entries for ESX serves.

4. Back on ESX configure Network Settings. Press F2 and enter password the select configure network settings

5. Next go through all the options that are applicable and enter settings that fit your LAB.

6. Repeat Steps to build second ESXi Server (ESX02).

7. Move VMs to correct folders and now we look like this.

Step 5 Add ESX to vCenter


1. Start vSphere client. 2. Create Datacenter Site1.

3. Add Host.

4. Repeat for second ESX02 on VC02.

Step 6 NetApp Simulator


1. Download Simulator. I used 8.1 (7-mode) for workstation in my LAB.

2. Make a folder where your other VMs are stored called Filer01. Extract the download file to the new folder. 3. Import to Workstation by using file menu and selecting Open.

4. Select the DataONTAP VM file and click OPEN.

5. Once imported, Rename VM and Move to Site1 folder.

6. Now edit the network to match your other VMs.

7. Boot Simulator for initial and do its initial configuration. We need to change the serial number as we are going to have two simulators running and managed by OnCommand System Manager. When it boots press a key other than enter to break the boot, and then run the following commands. set bootarg.nvram.sysid=1111111101 set SYS_SERIAL_NUM=1111111101 boot

8. When the simulator boots back up hit Control-C and then select option 4 Clean Configuration and initialize disks.

9. Then follow these answers; Zero disks, reset config and install a new file system?: Yes This will erase all the data on the disks, are you sure?: Yes The virtual filer will reboot, re-initialize and run through the wipe procedure Please enter the new hostname []: FILER01 Do you want to enable IPv6? [n]: Do you want to configure interface groups? [n]: Please enter the IP address for Network Interface e0a []: 192.168.44.150 Please enter the netmask for Network Interface e0a [255.255.255.0]: Please enter media type for e0a {100tx-fd, tp-fd, 100tx, tp, auto (10/100/1000)} [auto]: Please enter flow control for e0a {none, receive, send, full} [full]:

Do you want e0a to support jumbo frames? [n]: Please enter the IP address for Network Interface e0b []: Please enter the IP address for Network Interface e0b []: Please enter the IP address for Network Interface e0b []:
Note: leave configuring the 3 interfaces e0b, e0c, e0d for later

Would you like to continue setup through the web interface? [n]: Please enter the name or IP address of the Ipv4 default gateway: 192.168.44.2 Please enter the name or IP address of the administration host: 192.168.44.132 Please enter timezone [GMT]: Where is the filer located? []: Enter the root directory for HTTP files [/home/http]: Do you want to run DNS resolver? [n]: Do you want to run NIS client? [n]:

10. At this point I test I can ping and enter a DNS record for the filer. 11. From the DC run Putty and connect to the simulator.

12. We need to add more disks which will give us a little more storage that we can create a LUN for a VM to run on. In the reference section I will have links that will show you how to add a larger amount of storage. We start by running the following commands; priv set advanced useradmin diaguser unlock useradmin diaguser password

13. Enter systemshell and login with user diag

Then run these; setenv PATH "${PATH}:/sim/bin" cd /sim/dev sudo makedisks.main -n 14 -t 23 -a 2 sudo makedisks.main -n 14 -t 23 -a 3 exit useradmin diaguser lock priv set admin reboot

14. After the system comes back up, login and we can assign the new disks. Run the following; disk assign all aggr status f (to check any failed disks) aggr add aggr0 52

15. We need to run ssome other commands and add licenses not all licaenses are required for SRM but I like to install them so I can run other tests. Run the following: options security.passwd.rules.enable off

snap reserve -A aggr0 0 snap sched -A aggr0 0 options autosupport.enable off aggr options aggr0 raidsize 28 license add DZDACHD #CIFS license add ANLEAZL #Flex_clone license add BSLRLTG #ISCSI license add BQOEAZL #NFS license add RKBAFSN #SMDOMINO license add BCJEAZL #snapmangerexchnage license add DFVXFJJ #snapmirror license add XJQIVFK #snapmirror_sync license add DNDCBQH #snaprestore license add JQAACHD #snapvalidator license add PVOIVFK #sv_ontap_pri license add PDXMQMI #sv_ontap_sec license add RIQTKCL #syncmirror_local site ndmpd on options nfs.export.auto-update off 16. These licenses can also be added from System Manger.

17. Repeat the steps to add Filer02.

Step 7 OnCommand System Manager 2.0R1


Here are steps to install OnCommand System Manager to manager the NetApp Simulators.
Note: Download System Manger from NetApp NOW site.

1. The installation is straight forward just run the install and follow wizard with all defaults.

2. Launch the System Manger

3. Add the Simulator Filer01 by clicking add.

4. Double click Filer01 entry and enter username and password. 5. Expand Storage and click aggregates and see the disk count to be 55.

Step 8 Create an iSCSI LUN and add to ESXi


ESX PREPARATION FOR ISCSI. 1. Logon to vCenter. 2. Go to Host> Configuration> Storage Adapters and click add and select adapter. Clock OK.

3. Once added take note of iqn.

4. With iSCSI Software Adapter selected. Click properties on the bottom pane.

Run these steps after LUN is created in the NetApp Prep section.

5. Click Dynamic Discovery and click Add. Enter IP address of Simulator. Click OK then Close.

6. Now the LUN will me mounted. If not visible click Rescan All.
Note: Make sure iSCSI service is running on Simulator.

7. Click Storage and then Add Storage.

8. Follow the wizard and add a datastore. Click Finish.

NETAPP PREPERATION Creating a LUN will consists of 4 basic steps. We are going to use System Manger for these tasks. And they are; Create the flexible volumes (FlexVols) that will store the LUNs for ESX Server. Create the LUNs that ESX will use to establish a VMFS datastore. Create the initiator group(s) (igroups) that will enable connectivity from the ESX server(s) to the NetApp storage system. Map the LUNs to the appropriate igroup. This enables visibility of the LUNs to connected systems based on igroup. 1. Start System Manager 2. Expand Storage from Menu and select LUNs and click Create.

3. Click Next.

4. Enter Name, Type is VMware and size 20GB and Thin Provisioned. Click Next.

5. Leave Defaults and Click Next. 6. This window click Add Initiator Group.

7. Enter Name and select VMware as OS. Click Imitators TAB.

8. Click Add.

9. Enter iqn from steps above and click OK.

10. Click Create.

11. Check the MAP box and click Next.

12. Click Next on Summary window.

13. Click Finish.

Step 9 Install SRM


There are a couple of requirements for SRM. One is a Database created and a DSN ODBC connection created. To create a database you need to install SQL Server Management Studio. 1. Start SQL Server Management Studio and create a Database called SRM

2. Add a System DSN via ODBC

3. Start install of SRM 5.

4. Use defaults until vSphere replication Select Do not Install.

5. Enter details and click Next.

6. Click Yes. 7. Click Next.

8. Enter details and click Next. 9. Enter details and click Next.

10. Enter DSN and user credentials and click Next and the Install.

11. Click Finish.

12. Start vCenter client and click Plug-Ins> Mange Plugins. Click link Download and Install.

13. Click Ignore. 14. Click run. Then OK 15. Accept all defaults for install and click finish when done.

16. Confirm Icon is on home page and Start.

17. Now install NetApp SRA 2.0.

Step 11 Configure SRM (Sites and Array Managers)


1. Now back to main page click Sites bottom left.

2. Create connection by clicking Configure Connection.

3. Enter required information when connected click Finish.

4. Now click Array Manger bottom left.

5. Main page will show below.

6. Click Add Array Manger.

7. Enter Site Nameand then click Next. 8. Enter IP address of simulator and username/password and click. Then wait.

9. Once successfully completed you will see this.

10. Array Manager should be as follows.

11. Click the newly created Array Manager Site2. To pair the arrays click Enable on the right.

12. Now this should be enabled.

13. If you get the error below check the following;

options httpd.admin.access legacy options.httpd.admin.enable on check ip_hostname_mapping.txt (SRA 2.0 IAG page 20) check use_ip_for_snapmirror_relation (on/off; default value is off) (SRA 2.0 IAG page 20)

Step 12 Configure SRM (Protection Groups)


1. Before we create a Protection group Build a VM and store it the replicated Datastore. Then click Protection Groups bottom lefts. 2. Now click Create protection group.

3. Select recovery Site.

4. 5. 6. 7.

Select Datastore and Click Next. Enter Name Click Finish. Now your new protection group should look like this.

Step 13 Configure SRM (Recovery Plan)


1. Click Recovery Plans.

2. Then Create recovery Plan

3. Select Recovery Site and click Next.

4. 5. 6. 7.

Select Protection Group. Select Test Network. Name the Plan and click Finish. Plan should look like this.

Step 14 Configure SRM (Run Test)


1. Click Test and then Next.

2. Then click Start and go to Recovery Steps Tab. You will see progress details here.

Note: on Simulator you can run snapmirror status and see progress.

3. Test is now complete.

4. Now run Clean Up.

Links Active Directory


http://www.petri.co.il/installing-active-directory-windows-server-2008.htm http://www.youtube.com/watch?v=MK8pkoDs96M

vCenter http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenterserver-50-installation-setup-guide.pdf http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC& externalId=2003790 ESXi 5 http://www.vladan.fr/installation-of-vmware-esxi-5-inside-of-vmware-workstation-8/ http://www.sysprobs.com/guide-install-vmware-vsphere-5-esxi-5-vmware-workstationwindows-7 http://www.youtube.com/watch?v=soKjh8JAqJs Simulator http://now.netapp.com/NOW/download/tools/simulator/ontap/8.1/vsim_licenses_810.txt SRM http://www.vmware.com/files/pdf/products/SRM/VMware-vCenter-Site-RecoveryManager-Evaluation-Guide.pdf http://www.microsoft.com/download/en/details.aspx?id=7593 SnapMirror http://www.sysadmintutorials.com/tutorials/netapp/netapp-snapmirror-setup/

You might also like