Chris Hall bio photo

Chris Hall

Principal Technical Consultant

PolarCloudsUK Chris LinkedIn Github
Chris Hall Nutanix Certified Master - Multicloud Infrastructure 6 Chris Hall VMware vExpert 2024 Nutanix Certified Professional - Cloud Integration Chris Hall Nutanix Certified Professional - Multicloud Infrastructure 6 Chris Hall Nutanix Certified Professional - Unified Storage 6 Chris Hall VMware vExpert 2023 Chris Hall VMware vExpert 2022

VM Recovery Last time we paired our sites and kicked off some VM replication, catch up now. It’s a great read. :wink:

This time we will look at how to recover from a disaster using our replicated VM.

Overview


First off, let’s double check that our VM is still being replicated. Yep looks good:

Part 3 - 1

Oooops, I broke It!

Let’s intentionally accidently cause a disaster by breaking our replicated VM. Shall we uninstall the storage controller driver? Yes, let’s:

Part 3 - 2

For good measure, let’s rename the driver file too. Belt and braces breakage :wink:

Part 3 - 3

Cheeky reboot… Oh noes! :dizzy_face: It’s BSODing broke:

Part 3 - 4

Oh dear! Looks like I need to recover my VM! :astonished:

Step 1: Recovery to Secondary Site

Firstly power off the failed VM. Don’t delete the failed VM from the inventory. We’ll need it later.

Dead Already Leave it… Besides, it’s dead already

Next, let’s head into Site Recovery on Site B, navigate to incoming replications and select Recover:

Part 3 - 5

As our source VM is dead (Jim), let’s recover from the latest data already replicated to Site B:

Part 3 - 6

We’ll select Site B to house our recovered VM:

Part 3 - 7

Select our Site B ESXi Host:

Part 3 - 8

And finish. For the moment, we don’t care that our recovered VM will be disconnected from the network:

Part 3 - 9

Boom! Recovery to Site B complete:

Part 3 - 10

Power on the recovered VM in Site B and let’s see if it boots OK. Looks good:

Part 3 - 11

If it didn’t boot for whatever reason, we have the opportunity to go back in time via reverting to snapshots taken as per our replication interval setup in Part 2:

Part 3 - 12

As we are good, let’s delete those old snapshots:

Part 3 - 13

As we have recovered the VM into site B and all is good, let’s clean up replication:

Part 3 - 14

Gracefully:

Part 3 - 15

Step 2: Replicate Changes Back to Primary Site

So we have a good VM, but it’s running off the network in our secondary site. How do we get it back onto our primary site and back on the network?

Here’s how.

Firstly, login to the site recovery on the secondary site. From there, select Replications - Outgoing - New:

Part 3 - 16

Setup replication from secondary site back to primary site, as previously completed in Part 2, however when prompted tick Select seeds:

Part 3 - 17

Selecting seeds will allow us to compare our working VM on our secondary site with the previously failed VM on primary site and replicate only the changes back to the primary site. Replicating just the changes back to our primary site will save on both time and network bandwidth.

Confirm seeds are correct and tick the confirmation box:

Part 3 - 18

Configure replication settings:

Part 3 - 19

Review and click Finish:

Part 3 - 20

As can be seen, only changes are replicated back to the primary site:

Part 3 - 21

Replication from secondary site to primary site complete:

Part 3 - 22

Step 3: Power on Recovered VM

Let’s power on our recovered VM back on our primary site. Looks good:

Part 3 - 23

Checking for snapshots, there are none:

Part 3 - 24

VM recovered, back on the network, service restored, day saved, everyone happy, :sunglasses: bonus payment in the post :moneybag::moneybag:

Post Recovery Clean Up and Reprotection

A couple of house keeping jobs now that our VM bas been recovered.

Clean Up Secondary Site

Let’s power off the replica on our secondary site:

Part 3 - 25

To avoid future confusion, let’s remove it from the secondary site inventory.

As you’ll see below, just removing the VM from the inventory rather than deleting it will save us time and network bandwidth later on:

Part 3 - 26

Yep, confirm removal from inventory:

Part 3 - 27

Reprotection of Primary VM

As we’ve already covered configuring replication in Part 2, using seeds just above, I won’t cover that again. Suffice to say that replicating just the initial changes back to the secondary site will save both time and bandwidth (but you knew that already :wink:):

Part 3 - 28

aaaand we’re done:

Part 3 - 29

Not only has our primary site production VM recovered, it’s also being replicated to our secondary site just as it was at the beginning of this post.

Conclusion and Wrap Up

So there we have it. In this series we (click a link to take another look):

Links to the other parts of series are as follows:

As we saw, recovering replicated VMs from disaster is quite a simple process.

Until next time :thumbsup::sunglasses::thumbsup:

-Chris