vSphere Replication & SRM Issues

Having spent some time working with vSphere Replication I came across a number of issues trying to get my vSphere Replication Appliances to talk to each other and then to get vSphere Replication working.

The moral to this blog post is DNS and Networking!

DNS

Contrary to popular belief the DNS settings in the vSphere Replication Appliance appear to do err nothing.

I was receiving the Error Code ‘vSphere Replication Generic Server Error: No Route To Host’

After confirming my vCenter servers could resolve each other and also my vSphere Replication Appliances (as I had entered in A records for them) and the fact that I could ping everything, I decided to hop straight onto the vSphere Replication Appliances to test they could ping each other directly.

This ended in an epic fail as they didn’t have any DNS names for each other, so to resolve this I edited the host files on both vSphere Replication Appliances by entering the following commands:

vi /etc/hosts

i

172.19.144.149 VCT01.domain.local VCT01

172.19.146.149 VCT02.domain.local VCT02

(Press Escape Key)

:wq

After doing this my vSphere Replication Appliance could ping each other and the connection between the Appliances formed.

Networking

When I came to replicate the VM’s, a folder would be created for the VM and a VMDK file, however the VMDK would always remain at 0.00KB and when I tried to perform a manual synchronisation, I would receive the helpful error:

‘Call “HmsGroup.OnlineSync” for object “GID” on Server “” failed. An unknown error has occurred.’

After much head scratching, I realized we have two different default gateways, so I changed the default gateway on the VM which was being protected to the one being used by vSphere Replication, same issue occurred.

I then went over all of my default gateways for the following items:

  1. vCenter Server
  2. vSphere Replication Appliances
  3. ESXi Hosts

The last one was key, when I changed the default gateway on the ESXi Hosts to match the vSphere Replication Appliances, everything fell into place.

Installing SRM 5.1.1 & vSphere Replication – Part 2

In the previous post Installing SRM 5.1.1 & vSphere Replication – Part 1 we got to a point where SRM was installed and our Production and DR site are now connected.  So let’s crack on with installing vSphere Replication.

Installing vSphere Replication

Go into your vSphere Client > Home > Solutions and Appliances > Site Recovery and Select vSphere Replication from the left hand menu

vSR12

The good news is that because we chose vSphere Replication as part of the install, we have a copy of the OVF already, which is located in C:Program FilesVMwareVMware vCenter Site Recovery Managerwww

So click on Deploy the VR Appliance and Select OK

vSR13

All you will that SRM has already located the OVF, so hit Next

vSR14

Guess what, hit Next again and go through the following steps:

  1. Give your vSphere Replication Appliance a name.
  2. Choose your Datacenter
  3. Choose your Cluster
  4. Choose your Storage
  5. Choose your Disk Format (I’m rolling with Thick Provisioned Lazy Zeroed)
  6. Select your Network Mapping
  7. Enter an Administrator Password
  8. Enter your Network Information
  9. Finally ensure your vCenter Extension is correct

Ta da, that is now done, we need to go through the same procedure at the DR site.

vSR15

Next up we need to configure the connection between vSphere Replication, to do this hit ‘Configure VR Connection’

vSR16

Select Yes and that’s it, your vSphere Replication Appliances are now connected.

Virtual Machine Protection

Now everything is in place we can configure Virtual Machine Protection.  I’m really impressed with how easy this is to do with vSphere Replication.  All you need to do is Right Click the VM you want to protect and select vSphere Replication

vSR18

After this it really is as simple as choosing:

  1. Your Recovery Point Objective
  2. Guest OS Quiescing
  3. Target Datastore
  4. Choose your Disks for Replication and whether to keep the same formatting (thick or thin)
  5. Choose your vSphere Replication Appliance

Using vSphere Replication you won’t see the VM automatically protected by SRM (with the lighting bolt) in your DR site.  For this to happen you need to ensure that you have configured your Protection Group for the VM’s.

Select Protection Groups in your vSphere Client and choose Create Prtoection Group > vSphere Replication

vSR19

Select the Virtual Machines that you want to be part of the Protection Group

vSR20

Give your Protection Group a name

vSR21

Then hit finish.

You will see in your DR site, that the Virtual Machines are now protected using SRM.

vSR22

If you would like some more information on performing test fail overs, recovery and actual fail overs, please see Part 5 – Configuring Site Recovery Manager (SRM) With HP StoreVirtual VSA

Attention All New vExperts

So you have become a vExpert for the first time and you are basking in your awesomeness, but what happens now?

Well the answer to that is I’m not 100% sure, I think are meant to receive an email from John Troyer @jtroyer team at VMware at some point, but in the meantime, you can do a few things to get your name on the ‘list’.

I was catching up on my twitter feed late last night and I saw a couple of tweets by Larry Gonzalez @virtualizecr in relation to the vExpert program.  You may or may not be aware that their is a vExpert Directory.

To add yourself to the vExpert Directory, first of all login to VMTN and make sure that your handle has the vE symbol beside it

VMTN

Then go back to the vExpert Directory and click on Create new vExpert Entry

VMTN 2

Fill out your details and if you want a vExpert Appreciation Gift, give the box a tick!

Once again, thanks to Larry Gonzalez @virtualizecr for this information.

But wait we have more, a number of awesome companies are giving away free gifts or exclusive access to vExperts, these are the ones I currently know about:

Installing SRM 5.1.1 & vSphere Replication – Part 1

I have been installing and configuring vCenter Site Recovery Manager 5.1.1 and vSphere Replication this week, so thought I would document the process for future reference.

The cool thin with vSphere Replication is that it is array agnostic, meaning that you do not have to have a SAN/NAS which is on VMware’s HCL for the SRA (Storage Replication Adapter).  So it will run pretty much any storage solution.  In this case at the Production Site we are using a P2000 G3 iSCSI and at the DR Site locally attached storage.

Before I go through the installation steps, I have already configured the following:

  • Production SQL 2008 R2 Standard
  • DR SQL 2008 R2 Standard
  • Production vCenter
  • DR vCenter

I have confirmed that I can ping both vCenters using NetBios and FQDN’s.

At both Production and DR vCenter I have created an 64 Bit ODBC Connection to the SRM SQL Database and also the vSphere Replication Database

ODBC

TOP TIP: Before you can use vSphere Replication with SRM, we must configure SRM first

Installing SRM

Hopefully on your desktop or other random location, you have an icon called SRM-5.1.0-820150

vSR01

Hit this bad boy to launch the installer, select your language and click OK.

vSR02

Now this bit takes a while, so I suggest you go make yourself a cup of tea!

Once it finally pops up you will get the Welcome to the installation wizard for VMware vCenter Site Recovery Manager, click Next

vSR03

I’m not going to insult your intellect, as I’m sure you can Click Next, Accept the License Agreement and Click Next.

The next screen is the installation folder, as with nearly all installs these days you can change the destination folder.  I would recommend accepting the defaults unless you have a specific reason not too.

vSR04

We need to select Install vSphere Replication

vSR05

Now enter in your vCenter address as a NetBios name e.g. VMF-ADMIN01.  I tend to use a Service.SRM account for installing SRM as I prefer to keep individual vSphere components seperate.

vSR07

If your credentials are correct then you will see a certificate warning unless you have a PKI infrastructure in place.  We are going to accept the SHA1 thumbprint by clicking Yes

vSR08

Select Automatically generate a certificate and hit Next

SRM Part 7

Select Automatically generate a certificate and hit Next

SRM Part 8

Now we are cooking on gas, enter your Local Site Name, in my case this is Production, email address details and select your Local Host.  You can also change default ports if you need to.

SRM Part 9

Next select your ODBC connection for your SRM Database, mines originally named ‘SRM’ and enter the credentials required to access the database.

vSR09

If everything has gone to plan, you should be able to hit Install

vSR10

Boom, we have gotten the Finish screen and after clicking it, amazing things happen? Err no, we get nothing.

SRM Part 18

Hop into vCenter and we need to install the SRM plug in to allow us to manage  it.   This is found from the top menu Plug Ins

vSR11

It’s a pretty straight forward Next, Next install job, so I haven’t included screenshots for this.

I have performed the same installation at the DR site,  so now both sites have SRM installed and also the vSphere Plug In for SRM.

SRM Site Connection

Before we can install vSphere Replication we need to connect the Production and DR sites.  To do this Click Home and you will see a new Icon under Solutions and Appliances ‘Site Recovery’  I don’t know why but it reminds me of a super hero logo, must be the lightening bolt.

SRM Icon

Launch Site Recovery and we are at the landing page, this is where you will spend alot of time.

SRM Landing Page

You will notice that we can only see one site being Production (Local) as we have yet to configure the connection between both vCenters and SRM.

To do this, select Configure Connection from the ‘Commands’ menu on the right hand side

Site Connection Part 1

Then enter the address and port of the remote vCenter Server, in this case VMF-ADMIN02 and hit Next

Site Connection Part 2

We get another question about certificates, this time we need to validate the vCenter Server Certificate at our DR site, Click OK

Site Connection Part 3

We now need to enter the credentials of a user who has rights to access VMF-ADMIN02

Site Connection Part 4

Amazing, we have another certificate warning, click OK again.  Hopefully, if all goes well, you should see all green ticks and then hit Finish.

Site Connection Part 5

Time to authenticate into VMF-ADMIN02, oh by the way, get used to entering your credentials a lot!

Click OK, and ignore the next security warning (I swear VMware is now trying to wind us up).  Voila we should now see both site Production (Local) and DR.

Site Connection Part 6

Next you need to configure the rest of your SRM installation which includes:

  • Resource Mappings
  • Folder Mappings
  • Network Mappings
  • Placeholder Datastores

A bit like Blue Peter, I have created a guide to this previously which can be found under Configuring Site Recovery Manager (SRM) With HP StoreVirtual

Cool now this is done, we are ready to install vSphere Replication, which will be covered in Part 2.

vExpert 2013

vmw-vexpert

A little over a year ago, I decided to start a blog and vmfocus.com was born.  The purpose of the blog was two fold, one to have a place for my notes when I was learning a new technical subject matter and also to give back to the community the odd issue that I managed to resolve.

I stumbled upon this award called vExpert after seeing some cool Tintri shirts in VMworld Barcelona 2012 and wondered what it was.  A quick google later revealed that VMware had the same kind of program as Microsoft for the MVP.

The annual VMware vExpert title is given to individuals who have significantly contributed to the community of VMware users over the past year. The title is awarded to individuals (not employers) for their commitment to sharing their knowledge and passion for VMware technology above and beyond their job requirements.

VMware announced the vExpert awards for 2013 and I’m excited to say that I featured among 580 individuals who received the title.  Tintri have carried on the tradition and if you are a vExpert you can claim your free shirt for being a vRockstar!

With anything you do, having a little ‘pat on the back’ is always great to make sure you are on the right track.

We have a great community within VMware and a special well done goes to the London VMUG vExperts 2013 (some of who I have and haven’t had chance to meet yet).

Alaric Davies @alaricdavies

Alex Galbraith @alexgalbraith

Chris Dearden @ChrisDearden

Darren Woollard @dawoo

Ed Grigson @egrigson

Gregg Robertson @greggrobertson5

Jane Rimmer @Rimmergram

Jeremy Bowman @jeremyjbowman

Julian Wood @julian_wood

Michael Poore @mpoore

Ricky El-Qasem @rickyelqasem

Rynardt Spies @rynardtspies

Sam McGeown @sammcgeown

Simon Davies @EV_Simon

Simon Gallagher @vinf_net

Simon Long @simonlong_

Simon Seagrave @Kiwi_Si

Steve Bruck @vColossus

Stuart McHugh @stu_mchugh

If I have missed anyone please let me know via twitter @vmfcraig