vCloud Availability for vCloud Director: Part 8-Deploy vSphere Replication Cloud Service & vSphere Replication Server

In last post of this series we deployed VRMS appliance. In this post we will deploy the vSphere Replication Cloud Service and the vSphere Replication Server appliance.

If you are not following along this series, then I recommend reading earlier posts of this series from below links:

1: vCloud Availability Introduction

2: vCloud Availability Architecture & Components

3: VCAV Deployment

4: Install Cloud Proxy for vCD

5: Deploy Cassandra Cluster

6: RabbitMQ Cluster Deployment and vCD Integration

7: Deploy VRMS Appliance

Before we kick the deployment, lets recap about what is the role of both appliances in VCAV stack.

What is vSphere Replication Cloud Service (VRCS) ?

The vSphere Replication Cloud Service is a tenant-aware replication manager that provides the required API for managing the service and all the components. vSphere Replication Cloud Service registers as a vCloud Director extension and is accessible through the vCloud Director interface.

What is vSphere Replication Server ?Read More

vSphere Replication & Multi Point in Time Snapshots

When configuring replication of a virtual machine, you might have noticed the option “Point in time instances” aka PIT. This setting allow for some snapshots to be maintained at the DR site for the replicated VM at certain intervals.  

During replication, vSphere Replication replicates all aspects of the virtual machine to the target site, including any potential viruses and corrupted applications. The benefit being that if a guest is corrupted, we have multiple points in time to failover from in case the corruption already replicated across sites

vSphere Replication retains a number of snapshot instances of the virtual machine on the target site based on the retention policy that you specify. vSphere Replication supports maximum of 24 snapshot instances. After you recover a virtual machine, you can revert it to a specific snapshot.

mpit-1

Multiple Point In Time (MPIT) recovery was first introduced in vSphere replication 5.5 and it enables an administrator to recover a virtual machine to the latest replicated copy at the target site and then revert, or “roll back,” that virtual machine to a previous point in time.Read More

Replicating VM between sites using vSphere Replication

Once your primary and DR site is ready, you can start replicating VM’s between the sites and test the failover/failback etc to ensure your disaster recovery plans are functioning well and you will be protected when actual disaster happens in your on-premise datacenter.

In this post we will learn how to replicate VM from one vCenter to another which is in DR site. Lets get started.

Navigate to VM and template view in vCenter server in your source site and select the VM which you want to replicate to the DR site. Right click on the VM and chose All vSphere Replication Actions > Configure replication

config-9

vSphere Replication can be used to replicate VM’s to the local DR site as well as to a cloud provider side such as vCloud Air . In our example we are going for a local DR site replication so I chose Replicate to a vCenter Server. Read More

vSphere Replication 6.0 Compression Method

With vSphere Replication 6.0, VMware added a new feature named “Network Compression” and you have noticed this while configuring replication for a virtual machine. 

data compression-0.PNG

What is Network Compression?

It is a method for compressing the replication data that is transferred through the network which helps in saving network bandwidth and might help reduce the amount of buffer memory used on the vSphere Replication server. However, compressing and decompressing data requires more CPU resources on both the source site and the server that manages the target datastore.

Do you really need network compression in your infrastructure?

vSphere Replication uses CBT technique to replicate changed blocks to a DR site (which commonly exists in cloud these days) and the DR site is usually connected to primary site via a WAN link. These WAN links typically have limited bandwidth or high latency. Network compression can save your precious WAN bandwidth.

VR data compression support

vSphere Replication 6.0 supports end-to-end compression when the source and target ESXi hosts are also version 6.0.Read More

Isolating vSphere Replication Traffic

Prior to vSphere 6, the replication traffic was sent and received using the management interfaces of ESXi and VRA appliances. With vSphere 6 it is possible to send the replication traffic over a separate dedicated interface.

By default, the vSphere Replication appliance has one VM network adapter that is used for various traffic types.

  • Management traffic between vSphere Replication Management Server and vSphere Replication Server.

  • Replication traffic from the source ESXi hosts to the vSphere Replication Server.

  • Traffic between vCenter Server and vSphere Replication Management Server.

  • NFC (Network File Copy) traffic which is used to copy VM replication data from the vSphere Replication Server appliance at the target site to the destination datastores.

VR Traffic Flow

We will use below image for understanding the flow of replication traffic

VR-Traffic-Flow-2.png

Typically these are the sequence of events that take places when a VM is configured for replication and initial sync has completed:

  • As data is written to VM disks, the writes pass through the vSCSI filter on the host where the VM is running
  • The vSCSI filter monitors all I/O to the VMs disks and tracks those changes.
Read More

Using Custom Certificates in vSphere Replication

In this post we will be working on using a custom signed certificates (CA Signed) on vSphere Replication Appliance.

Unlike vCenter Server, there is no automated way of replacing the default certificates on VR appliance and all it needs a bit of manual effort. VMware has outlined the steps in the official KB-2080395 to do so.

Before performing these steps, make sure you have already replaced the default certificates on your vCenter Server.

vSphere Replication appliance ships with openssl and you can use this to generate the certificate signing requests for the vSphere Replication appliance

Perform following steps to replace the default certs with CA signed certs:

1: Create openssl config file

SSH to your VR appliance and create an configuration file for Replication Appliance. Contents of this file would look like as shown below. You need to change the fields marked in bold.

vrs01:~ # vi vrs01.cfg

[ req ]
default_bits = 2048
default_keyfile = rui.key… Read More

Unregistering vSphere Replication Plugin from vCenter

This week I was having some trouble with vSphere Replication appliances in my lab and decided to rip apart my replication setup. I logined to my VR appliance VAMI address and unregistered VRMS from vCenter Server. Deleted my replication appliance in order to deploy it from scratch.

To my surprise vSphere Replication plugin was still present in my vCenter Server, even after I logged out and logged in back to webclient.

mob-0

I tried to reboot my vCenter Server to see if it clears the plugin, but that trick didn’t worked for me.

Now the only option left was to uninstall the plugin was using vSphere MOB. If you are like me and dont know much about MOB then I would recommend reading this blogpost.

I followed following steps to successfully remove replication plugin from my vCenter Server.

1; Open your favourite browser and point it to URL https://vCenter-FQDN/mob and login.… Read More

vSphere Replication-Part 5: Replicating and Recovering VM’s using VR

In last post of this series we saw how to deploy vSphere Replication appliance. In this appliance we will see the basic configurations of the replication appliance and will replicate a VM from source site to DR site. Also we will see how to recover VM on target (DR) site when your primary site has gone down.

If you have missed earlier posts of this series then you can access the same by clicking on below links:

1:Introduction to vSphere Replication

2: Lab Setup

3: Preparing vCenter for Replication

4: Deploying vSphere Replication Appliance

Let’s jump into lab and see things into action.

1: Configure vSphere Replication Appliance

a: To start configuring vSphere Replication appliance, login to the VAMI console of the appliance. This is typically accessible over URL https://VRA_FQDN:5480

Login to appliance with user root and password set during deploying vSphere Replication appliance.

config-1

b: Review your Network configuration by clicking on Network tab.… Read More

vSphere Replication-Part 4: Deploying vSphere replication Appliance

In last post of this series we saw the prerequisites that needs to be configured in vCenter Server before start deploying the replication appliance. In this post we will see how to deploy vSphere Replication appliance.

If you have missed earlier posts of this series then you can access the same by clicking on below links:

1:Introduction to vSphere Replication

2: Lab Setup

3: Preparing vCenter for Replication

Let’s dive into the installation process of replication appliance.

The vSphere Replication appliance is available in  ovf format. Download the ovf file from here.

1: Login to vCenter Web Client and select the Esxi host where you want to deploy the replication appliance and right click on it and choose Deploy OVF template.

ra-1

2: Browse to the directory where you have downloaded the ovf file and hit Next.

ra-2

3: Review the ovf details and hit Next.

ra-3

4: Accept the EULA and hit Next to continue.… Read More

vSphere Replication-Part 3: Preparing vCenter for Replication

In last post of this series we had a look on pieces of infrastructure that needs to be made ready before starting and using vSphere Replication. In this post we will see what are the vCenter server requirements before start deploying vSphere Replication appliances and start configuring it.

If you have missed earlier posts of this series then you can access the same by clicking on below links:

1:Introduction to vSphere Replication

2: Lab Setup

Following settings are required to be configured in vCenter Server prior to deploying and configuring vSphere replication Appliances.

1: vCenter Server managed IP Address

The managed address settings corresponds to vCenter server name, so basically its the IP address of the management network. By default this managed address field is left blank. The vSphere Replication appliance require this to exist, so you need to punch the management IP address of your vCenter server here and then reboot the vCenter server.… Read More