Professional Documents
Culture Documents
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
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.
Site 2
ESXi 5
vCenter SRM
NetApp SIM
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.
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.
2. Mount the ESXi 5 iso and start ESXi Install. Follow all default settings.
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.
3. Add Host.
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.
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
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.
1. The installation is straight forward just run the install and follow wizard with all defaults.
4. Double click Filer01 entry and enter username and password. 5. Expand Storage and click aggregates and see the disk count to be 55.
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.
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.
8. Click Add.
8. Enter details and click Next. 9. Enter details and click Next.
10. Enter DSN and user credentials and click Next and the Install.
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.
7. Enter Site Nameand then click Next. 8. Enter IP address of simulator and username/password and click. Then wait.
11. Click the newly created Array Manager Site2. To pair the arrays click Enable on the right.
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)
4. 5. 6. 7.
Select Datastore and Click Next. Enter Name Click Finish. Now your new protection group should look like this.
4. 5. 6. 7.
Select Protection Group. Select Test Network. Name the Plan and click Finish. Plan should look like this.
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.
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/