Showing posts with label VMware replication. Show all posts
Showing posts with label VMware replication. Show all posts

Wednesday, November 13, 2013

Using the vSphere Replication Capacity Planning Appliance!

A few days back I wrote an article introducing a Fling by VMware Labs called vSphere Replication Capacity Planning Appliance. I would recommend that you read that post before going through this one. Here is the link:-


As I mentioned in that article, I finally got an opportunity to deploy the appliance and run it to capture traffic and replication requirements for one of my lab virtual machines. Here are the steps to download and configure this appliance and to get the results you need:-

1- Download the appliance from this link.

2- Deploy the OVA template in your environment using the vCenter Server. Please remember, this is the site where you have the VMs running. (Also, it is recommended that there are NO vSphere Replication Appliances deployed in this environment)

3- The Appliance needs an IP Address which needs to be configured after the appliance powers on. You can login to the appliance using username as 'root' and password as 'vmware'.

4- Once the IP is set you can login to the appliance using the following url - 

https://<ip Address of appliance>:5480. 

Here is a screenshot from my environment. The username is root and password is vmware as mentioned before.

















5- Please ensure to setup the correct time zone for correct results.












6- Now take an ssh session to the appliance using 'putty' or an equivalent tool. Username - root and Password is vmware. Once logged in you need to browse to the following directory:-

cd /opt/vmware/hbrtraffic/bin

7- Run the command located in this directory to see the usage. Here you can see all the options available to run with this command.

./configureReplication






8- Now I will use this command to capture the data changes for a VM in my lab named "VMWSUDRSNVC01"













That's it. You need to configure this for all the VMs for which you need to do capacity planning for replication bandwidth requirements.

Once done, you can check out the results after 15 minutes or so by opening the URL: 

https://<ip Address of appliance>:5480/vr-graphs/






















We can get data about this VM by clicking on the link listed on this page. Here are some screenshots from my lab. It clearly shows the Network Traffic Requirements and Data size of the "lwd". LWD is the light weight delta which is calculated by vSphere Replication as the amount of data which needs to be replicated to maintain the defined RPO. Remember the RPO in this case in 15 minutes by default. You can setup the RPO which you have planned for your workload in the ssh command where you enable replication modelling.
















Like other capacity planning tools, it is important to run this for atleast 3 to 4 weeks to capture all the peaks and lows of the workload and estimate its replication requirements. Hope this helps you calculate the bandwidth requirements and data change rates which are crucial for setting up DR using vSphere Replication and Site Recovery Manager.


Share and Spread the Knowledge. 


Monday, September 30, 2013

Calculate Bandwidth Requirements using vSphere Replication Capacity Planning Appliance!

With a number of consulting engagements which I have done and the one's which I am working on, I have seen an increasing demand for using Host Based Replication solutions for data replication. In few of my recent projects, I have implemented VMware Site Recovery Manager with the combination of VMware vSphere Replication. 

I have written about vSphere Replication(VR) in the past and I am not surprised that a number of VMware customers are shifting focus from a storage based replication solution to a host based replication solution due to the cost-benefit and flexibility which comes with such a solution. In my projects I started with replicating simple web servers to DR site using VR and now customers are discussing database servers, exchange and other critical workloads to be replicated using vSphere Replication. With an out of the box integration with a solution such a as VMware Site Recovery Manager, building a DR environment for your Virtualized Datacenter has become extremely simple and cost effective.

The configuration of the replication appliance and SRM is as easy as going NEXT, NEXT & FINISH..., however the most common challenge has been around estimating the bandwidth requirements from Protected Site to Recovery Site for replication of workloads. One of the most commonly asked question is "How do I calculate the bandwidth requirements for replication?"

Honestly, this is not only a concern with any host based replication solution, but storage based replication too. I have done crazy things like capturing Writes on a workload in KB/Sec for days to get to an average change rate for a workload. This has to be done for each workload which you want to replicate and finally you will come to an estimate which is mostly no where close to the actual figure. Nevertheless, something is better than nothing.

During my recent discussions with VMware product management, I requested them to come out with a tool which can do this mathematics for a given workload and help us estimate the bandwidth requirements. This is critical for customers as an over-sized bandwidth requirement can lead to waste and ultimately unnecessary OPEX (Operational Expenditure) while an undersized bandwidth calculation can break the DR solution which can be catastrophic for any business.

The great news is that such a tool (fling) now exists and is called the 


As quoted by the developers "The vSphere Replication Capacity Planning Appliance allows administrators to model the network impact of a virtual machine replication without producing actual replication traffic. The appliance provides command-line tools to configure replication for any VM in a vSphere Virtual Center. The replication is established in preview mode and thus requires no storage space. Networking traffic, required for the replication, is measured and displayed in an easy-to-understand graphical format that allows you to estimate the network bandwidth required."

As I write this article, I am downloading the OVA and would try this in my lab to see what do I get out of this. Since this is a fling, you might want to know that there is no official support for Flings but if this works, it would be great to see this as a part of the vSphere Replication Appliance.

To download a copy for yourself visit the following link - http://labs.vmware.com/flings/vsphere-replication-capacity-planning-appliance


Share and Spread the Knowledge.