Skip to main content

vSphere Replication (vSR) - How much data is replicated?

You will need to go through this link before you read through the testing I've gone through.

I have configured protected site and recovery site in my home lab. PJ (protected) site versus SG (recovery). I have include 1 VM (PJ-AD01) only in my protection group. This is to test how much data has been replicated with the chances close to 1GB file added and deleted.

I have tried 5 scenarios;

  1. Just adding the 1GB file
  2. Adding 1GB file and delete 1GB file
  3. Delete 1GB file and add the same 1GB file
  4. Just remove existing 1GB file from disk
  5. Adding 2GB file, delete 2GB file, and add another 1GB file
It seems that data chances tracked by SRM is always based on adding file instead as shown below.


Although it is stated last sync data is close to 1GB for the first 3 scenarios. When we checked on the network utilization, it only took slightly more than 1 minute (to be exact, 1m18s) to replicate the changes (block-level change between the last sync) at max 14000KBps. 


Running 14000KBps for 1 minutes will transfer around 800MB. Above figure captured the 3 scenarios replication overhead on network and 3 of them took less than 2 minutes to complete. As mentioned in the link provided in the beginning of this blog, block level chances are not equal to amount of the change in between the RPO interval. In most cases, I believe it will be less than the actual data added into the VM. This provide a more effective replication technology between protected and recovery site. 

There is actually no simple way to calculate the block level changes between the last sync image. It will be safe if we calculate based on the actual data change based on the RPO requirement. 

The 4th scenario I've tested is to delete existing 1GB file from the disk. It only replicate less than 1MB data from protected site to recovery site. In most cases, when we delete 1GB file, we treat that as 1GB data changes. Windows does not overwrite the disk in this case but rather delete the pointer in the file system. In fact, there is nothing written to the disk, which tell vSR no block changes happen in this level.  


For the last scenario, when we add 2GB file, delete them and add 1GB file, SRM keep track of 2GB sync data. In a typical environment, we might treat this as 3GB delta changes.


In this scenario, it took less than 3 minutes to complete the replication at 14000kbps rate. Running 14000kbps for 3 minutes can transfer around 2400MB data across two sites instead of 2GB data sync captured. Pretty close match.




The most effective way to monitor the bandwidth required is to monitor the replication from time to time. It is always good to follow the below steps when come to vSphere Replication.

  1. Always turn on vSR on single VM or small number of VMs with higher RPO (eg. 48 hours)
  2. Start monitoring the bandwidth utilization with vCenter or 3rd party appliance on the WAN link between sites.
  3. Fine tune the RPO according to the business needs
  4. Start adding more VM, preferably small number of VMs, stabilize them before adding new VM
  5. Add more bandwidth as needed

Comments

Popular posts from this blog

VMware VRNI 3.5 NTP is working but not healthy

We have experienced this problem where some of the major services not started. You will not be able to connect to the vRNI via web -> https://<ip_address_of_vrni_platform>>. This probably caused by NTP insync. You need to manually start these services. Login with Consoleuser / and default password if not changed before via venter web console. Run services restart and wait for couple minutes (it took me 5-6 mins). Types of Users  User name  Password  Admin UI  admin@local Set this password in the Activate License window during installation. SSH User  support ark1nc0113ct0r CLI User  consoleuser ark1nc0ns0l3 Note It is recommended that the users change the default passwords immediately after the deployment.  Procedure 1 Navigate to  https://<vRealize Network Insight Platform IP address> .  2 Log in to the product UI with the corresponding user name and password. Troubleshoot NTP - https://kb.vmware.com

vSphere Replication - checking the replication status

Enable SSH on ESXi host (you can do this using vCenter) Download putty or any SSH client and log in with root access vim-cmd vmsvc/getallvms ~ # vim-cmd hbrsvc Commands available under hbrsvc/: vmreplica.abort vmreplica.pause vmreplica.create vmreplica.queryReplicationState vmreplica.disable vmreplica.reconfig vmreplica.diskDisable vmreplica.resume vmreplica.diskEnable vmreplica.startOfflineInstance vmreplica.enable vmreplica.stopOfflineInstance vmreplica.getConfig vmreplica.sync vmreplica.getState  See more at: http://www.virtuallyghetto.com/2011/07/hbr-host-based-replication-cli-for-srm.html#sthash.mpqbyGmw.dpuf http://www.virtuallyghetto.com/2011/07/hbr-host-based-replication-cli-for-srm.html

Editing hosts file in iPhone/iPAD

You can now edit the hosts file with a jailbroken iPhone/iPad. Download the hosts file using tool like FileZilla. Default location is /etc/hosts. Download Notepad++ and edit the file. I've edit the file and convert it to ANSI under the Encoding menu. Once completed, upload the file back to the default location.  Try to ping the DNS... It should works!