By all means I am not an expert with NetApp hardware or VMware SRM. However over earlier this year I got the task to get SRM installed and working with our new NetApp AFF arrays. I figured this would be a great place to share the steps taken to get everything up and running. As with any deployment always check the compatibility matrixes to ensure you are going to be supported by your vendors.
So lets get started.
- A pair of NetApp Arrays. For my setup I was working with a pair of NetApp A400 AFF running ONTAP 9.8
- NetApp ONTAP Tools for VMware (Formally the VSC) Installed.
ONTAP tools for VMware vSphere 9.8 Documentation Center (netapp.com)
ONTAP Tools for VMware 9.8 Download (NetApp Support Login Required) - VMware SRM Installed. for the purposes of this I deployed the virtual appliance version SRM 8.4 as VMware has discontinued support for the Windows version. If you need a guide on installing SRM, VMware has a great document with step by step instructions. VMware SRM 8.4 Documentation
- Have download the NetApp SRA. ONTAP Tools for VMware 9.8 Download (NetApp Support Login Required)
Now that you have the prerequisites done we can configure ONTAP Tools and get the arrays added.
- Enable TLS 1.2. By default TLS is not enabled and it needs to be enabled for the NetApp SRA to be able to communicate with the ONTAP Tools for VMware.
- From the console of the ONTAP Tools VM, login using the Maint Login.
- Select Option 1 "Application Configuration"
- Select Option 13 "Enable TLS Protocol"
- Acknowledge the warning that the operation will restart ONTAP Tools for VMware.
- Type the protocol you wish to enable. I used just TLSv1.2
- Press Enter
- Follow the Prompts to Exit"
- Creating a VSC/ONTAP Tools User on the NetApp Array. Starting in ONTAP 9.7 and above the roles JSON file can be downloaded from the appliance. Older versions of ONTAP use the RBAC tool from NetApp along with the updated XML privilege's file. If you already have the VSC deployed and configured, you may just need to update the existing users permissions to get everything working.
- download the privilege's file from the ONTAP tools appliance https://<IP-Address>:9083/vsc/config/VSC_ONTAP_User_Privileges.zip
- Extract the JSON file from the zip.
- Logon to your NetApp Array
- Navigate to Cluster / Settings / Users and Roles
- In the User pane, click Add
- Select Virtualization Products
- Upload the JSON
- From the Product Compatibility drop-down chose either VSC and SRA or VSC,VASA Provider, SRA. This is important to ensure the SRA and ONTAP Tools has the privilege's it needs to function properly.
- Enter a Username and Password the account.
- Leave the suggested privilege's checked
- Click Add
- Adding your Array to ONTAP Tools for VMware.
Each VM that resides on an NetApp served datastore, whether its block or NFS must be added to the ONTAP tools storage system so SRM can properly discover and communicate with the storage array. You can either add the SVM directly or connect to the cluster mgmt. IP.
- Logon to your VCenter and navigate to the NetApp ONTAP Tools plugin
- Select Storage Systems from the left hand menu.
- Click ADD.
- Enter the IP or DNS Name of the SVM or Array
- Enter the VSC/ONTAP Tools username created above (case sensitive) and password.
- Click ADD
- Wait a few min and the array will be listed.
ONTAP Tools Storage Systems
Once you have installed VMware Site Recovery Manager (SRM), you will need to take a few steps to configure SRM to to communicate with the NetApp Storage Replication Adapter (SRA) and VSC. Lets get started.
- Download the NetApp SRM SRA if you have not already.
- Login to each of the SRM Appliance Management page: https://FQDN:5480
- Click Storage Replication Adapters
- Click New Adapter
- Click Upload and browse to the location of the NetApp SRA. This should be a tar.gz file.
- With the SRA installed we must configure the SRA to connect to our ONTAP Tools deployment.
- Using Putty or your preferred SSH client, connect to the SRM appliance.
- Elevate to root using the command: su root
- Get the docker CONTAINER ID used by the SRA using the following command: docker ps -l
- Login to the docker container using the following command: docker exec -it -u srm <container id> sh
- Configure the SRA with the ONTAP Tools IP address and the administrator password using the following command: perl command.pl -I <ONTAP Tools - IP> administrator <ONTAP Tools - Password>.
- Login vCenter and from the Menu launch Site Recovery.
- Create your Site Pair if you have not already
- from the left hand menu under Configure / Array Based Replication / Storage Replication Adapters. verify that the NetApp Storage Replication Adapter for ONTAP shows a status of OK.
- Verify the same output at the recovery site.
- From the left hand menu, Click Array Pairs
- Click ADD
- Select your NetApp Storage Replication Adapter. Click Next
- Fill out the Local Array Manager Info:
- Enter a name for the Array Manager on the "Local vCenter"
- Enter the IP or FQDN Hostname of the NetApp Cluster or the SVM
- Enter a list of IP for the NFS LIFS on the Array. (leave blank if using SAN)
- Enter the Name of the SVM hosting the Disks. leave blank if you are connecting directly to an SVM.
- Enter a list volumes to discover. leave blank to discover all volumes on SVM
- Enter a list of volumes to exclude from discovery
- Enter the username created when you during section for configuring ONTAP Tools.
- Enter the password for the account in previous step.
- Click Next
- Repeat step 3 for the recovery site.
- Click Next
- Click Finish
- Hide the snapshot directories on your source volumes to prevent warnings when performing your failovers.
- Make sure your SVMs at your protected site and at your recovery site are not the same. If they are, the Array Pairing will fail.