Thursday, 5 July 2012

VMware Data Recovery


I was thinking about the first topic in the blog then thought about VDR since its very important to select a suitable back solution for your environment. I am not saying that VDR is the best :) but its one of the good solutions based on the scale of your environment.

VDR is composed of three components:

  1. Virtual Appliance (VA) which is managing the backup and restore process
  2. User interface plugin for vCenter to manage VDR
  3. Deduplication destination storage

Component of backup job:

  1. VMs to be backed up
  2. Schedule to run the backup
  3. Retention policy

How Backup Works ??

  1. Once a new job is created in vCenter using VDR plugin, the job will be submitted to VDR VA
  2. Up on schedule trigger, VA will create a snapshot for the current state of the target VM
  3. All new IOs for the target VM are submitted to -delta.vmdk. Also, the base vmdk will be unlocked.
  4. VDR VA will mount the based vmdk and will start copying the contents to its local vmdk which is called the deduplication destination storage.
  5. The VA will apply deduplication technologies to the data stream before dumping it to deduplication storage.
  6. Once the backup is completed, VA will unmount the base vmdk and lock it back to the targeted VM
  7. VDR VA will consolidate the changes of -delta.vmdk to the base vmdk and will delete the snapshot.
  8. On the next schedule of the job, VDR VA will follow the steps from the same steps expect for step 4. When VDR VA mount the base vmdk, it will use Changed Block Technology (CBT) to copy the changed blocks ONLY in base vmdk to deduplication storage instead of full vmdk contents.
  9. Those changed blocks will be combined with the latest backup in order to have a final full backup of the VM in VDR deduplication storage.


Notes: VDR support full disk backup only. No file level backup available. But for a VMs will multiple virtual disks, you can specify which disks to be backed up.

How recovery works??

Here we are talking about full state recovery (not file level restore). VDR VA will simply, recopy the contents of the restore point into target VM vmdk.

VDR Retention Policy

As you can see below, VDR provide three predefined retention policies as well as an option to configure custom policy.


The meaning of each item is described below.

Backup Type
Criteria
Recent
The consecutive backups taken based on schedule
Weekly
The first backup after 10:00 PM on Friday.
Monthly
The first backup after 10:00 PM on the last day of the month.
Quarterly
The first backup after 10:00 PM on the last day of the month for March, June, September, and December.
Yearly
The first backup after 10:00 PM on December 31st.

  • If the deduplication store is less than 80% full, the retention policy is run once each week
  • If the deduplication store is more than 80% full, the retention policy is run once each day.

The meaning of "retention policy run" that policy will be applied by keeping the matching restore points and deleting the expired restore points. Expired restore points are deleted using Reclaim operation. The operation will free space in deduplication datastore.

Also, in case backup failed due to deduplication datastore full, retention policy will be enforced to run in order to reclaim space by deleting expired restore points.

Note: During relcaim operation, backup isn't allowed. Only restore is allowed

If a source virtual machine was defined in a backup job at some point, but the virtual machine is deleted or is no longer defined in a backup job, none of the restore points of that virtual machine are removed.

TIP: Deduplication Storage Size doesn't increase even after Reclaim

Once you delete a restore point, you will notice that free space in deduplication datastore doesn't increase !!! Why?

The VDR deduplication store reports the total number of bytes available on the volume to create additional slab files as free space. When VDR has created the maximum number of slab files on the deduplication store, "0 bytes free" is reported, regardless of how much space is actually unallocated inside slab files.

This issue does not have any adverse affect on backups. Backups continue as there is potentially unallocated space inside the slab files. You can workaround this issue by extending the deduplication store or by increasing its size.

File Level Restore

You need to get the FLR client from VDR iso image and place it inside the guest OS which needs FLR.

  1. Once you start FLR client, enter the IP address of VDR VA which has the restore point of your VM
  2. Once connected, the restore point of your VM will appear.
  3. Mount the restore point and start browsing it in order to get the desired file(s).

Notes:

  1. VDR can't work with vCenter Linked Mode
  2. VDR support max of 8 running concurrent backup jobs and 8 running concurrent restore jobs. However, there is no restriction on the number of configured backups.
  3. VDR can backup max of 100 VMs
  4. RDM virtual mode is only supported
  5. VMs snapshots aren't included in the backup
  6. Max you can have two deduplication storages per VA with size of 1TB
  7. Supported on all licenses except vSphere Standard License.

2 comments:

  1. Check out VHD Data Recovery which is an ultimate utility to get back deleted or lost data from Microsoft (VHD), Oracle (VDI) and VMware (VMDK) image files.

    See full details at:- http://www.filesrecoverytools.com/vhd-data-recovery.html

    ReplyDelete
  2. VHD Data Recovery software which is an ultimate utility to get back deleted or lost data from Microsoft (VHD), Oracle (VDI) and VMware (VMDK) image files. It allows recovery of all the data like database, Office files, audio, image, videos, archive and backup files and other data. It is supported by Windows 10,8,7, Windows Server 2008 R2, 2012 R2 and Hyper-V Server.

    Visit: http://www.undeletepcfiles.com/vhd-data-recovery-tool.html

    ReplyDelete