How Veeam take backup in VMware ?

Recently we have started using Veeam to take the backup of VM in our environment.I am thrilled to see the amazing capabilities of veeam. Especially like vPower NFS with which we can boot the VM from backup directly without restoring it.

I have installed the Evaluation version Veeam on Windows server 2008 R2.

I am showing you how to take the back up of VM using Veeam in document which is present at given link and below procedure is showing what happens at VM level while taking the backup.

https://drive.google.com/file/d/0B7F4NEbnRvYiRHZZWWp0R3VvbWc/edit?usp=sharing

I have one very small sized VM of which I am taking the backup. I have shown the status of VM files at various level during the backup.

1) Currently my VM is powered off

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/Linux2-11.1 # ls -lsh
total 41992
39936 -rw——-    1 root     root       50.0M Sep  7 17:03 Linux2-11.1-flat.vmdk
1024 -rw——-    1 root     root        8.5K Sep  7 17:04 Linux2-11.1.nvram
0 -rw——-    1 root     root         519 Sep  7 16:44 Linux2-11.1.vmdk
0 -rw-r–r–    1 root     root           0 Sep  7 16:44 Linux2-11.1.vmsd
8 -rwxr-xr-x    1 root     root        2.7K Sep  7 17:04 Linux2-11.1.vmx
0 -rw-r–r–    1 root     root         266 Sep  7 16:44 Linux2-11.1.vmxf
1024 -rw-r–r–    1 root     root      121.1K Sep  7 17:04 vmware.log

2) After powering on the VM

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/Linux2-11.1 # ls -lsh
total 171024
16384 -rw——-    1 root     root       16.0M Sep 13 16:07 Linux2-11.1-dc9f5b1f.vswp
39936 -rw——-    1 root     root       50.0M Sep  7 17:03 Linux2-11.1-flat.vmdk
1024 -rw——-    1 root     root        8.5K Sep  7 17:04 Linux2-11.1.nvram
0 -rw——-    1 root     root         519 Sep  7 16:44 Linux2-11.1.vmdk
0 -rw-r–r–    1 root     root           0 Sep  7 16:44 Linux2-11.1.vmsd
8 -rwxr-xr-x    1 root     root        2.7K Sep 13 16:07 Linux2-11.1.vmx
0 -rw——-    1 root     root           0 Sep 13 16:07 Linux2-11.1.vmx.lck
0 -rw-r–r–    1 root     root         266 Sep  7 16:44 Linux2-11.1.vmxf
8 -rwxr-xr-x    1 root     root        2.7K Sep 13 16:07 Linux2-11.1.vmx~
1024 -rw-r–r–    1 root     root      121.1K Sep  7 17:04 vmware-1.log
1024 -rw-r–r–    1 root     root       19.3K Sep 13 16:07 vmware.log
111616 -rw——-    1 root     root      109.0M Sep 13 16:07 vmx-Linux2-11.1-3701431071-1.vswp

3) I have ran the backup from Veeam, it will create the snapshot to take the backup of VM. You will not see any process inside the VM.

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/Linux2-11.1 # ls -lsh
total 172072
8 -rw——-    1 root     root        3.6K Sep 13 16:11 Linux2-11.1-000001-ctk.vmdk
8 -rw——-    1 root     root        4.0K Sep 13 16:11 Linux2-11.1-000001-delta.vmdk
0 -rw——-    1 root     root         393 Sep 13 16:11 Linux2-11.1-000001.vmdk
1024 -rw——-    1 root     root       27.7K Sep 13 16:11 Linux2-11.1-Snapshot1.vmsn
8 -rw——-    1 root     root        3.6K Sep 13 16:11 Linux2-11.1-ctk.vmdk
16384 -rw——-    1 root     root       16.0M Sep 13 16:07 Linux2-11.1-dc9f5b1f.vswp
39936 -rw——-    1 root     root       50.0M Sep 13 16:08 Linux2-11.1-flat.vmdk
1024 -rw——-    1 root     root        8.5K Sep 13 16:08 Linux2-11.1.nvram
0 -rw——-    1 root     root         582 Sep 13 16:11 Linux2-11.1.vmdk
0 -rw-r–r–    1 root     root         498 Sep 13 16:11 Linux2-11.1.vmsd
8 -rwxr-xr-x    1 root     root        2.8K Sep 13 16:11 Linux2-11.1.vmx
0 -rw——-    1 root     root           0 Sep 13 16:07 Linux2-11.1.vmx.lck
0 -rw-r–r–    1 root     root         266 Sep  7 16:44 Linux2-11.1.vmxf
8 -rwxr-xr-x    1 root     root        2.8K Sep 13 16:11 Linux2-11.1.vmx~
1024 -rw-r–r–    1 root     root      121.1K Sep  7 17:04 vmware-1.log
1024 -rw-r–r–    1 root     root      106.7K Sep 13 16:11 vmware.log
111616 -rw——-    1 root     root      109.0M Sep 13 16:07 vmx-Linux2-11.1-3701431071-1.vswp

4) As soon as backup is complete snapshot will get delete automatically.

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/Linux2-11.1 # ls -lsh
total 171032
8 -rw——-    1 root     root        3.6K Sep 13 16:12 Linux2-11.1-ctk.vmdk
16384 -rw——-    1 root     root       16.0M Sep 13 16:07 Linux2-11.1-dc9f5b1f.vswp
39936 -rw——-    1 root     root       50.0M Sep 13 16:13 Linux2-11.1-flat.vmdk
1024 -rw——-    1 root     root        8.5K Sep 13 16:12 Linux2-11.1.nvram
0 -rw——-    1 root     root         582 Sep 13 16:12 Linux2-11.1.vmdk
0 -rw-r–r–    1 root     root          43 Sep 13 16:12 Linux2-11.1.vmsd
8 -rwxr-xr-x    1 root     root        2.8K Sep 13 16:12 Linux2-11.1.vmx
0 -rw——-    1 root     root           0 Sep 13 16:07 Linux2-11.1.vmx.lck
0 -rw-r–r–    1 root     root         266 Sep  7 16:44 Linux2-11.1.vmxf
8 -rwxr-xr-x    1 root     root        2.8K Sep 13 16:12 Linux2-11.1.vmx~
1024 -rw-r–r–    1 root     root      121.1K Sep  7 17:04 vmware-1.log
1024 -rw-r–r–    1 root     root      137.0K Sep 13 16:13 vmware.log
111616 -rw——-    1 root     root      109.0M Sep 13 16:07 vmx-Linux2-11.1-3701431071-1.vswp

5) Again I have powered off the VM. Now it look same like as in step 1

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/Linux2-11.1 # ls -lsh
total 43024
8 -rw——-    1 root     root        3.6K Sep 13 16:16 Linux2-11.1-ctk.vmdk
39936 -rw——-    1 root     root       50.0M Sep 13 16:14 Linux2-11.1-flat.vmdk
1024 -rw——-    1 root     root        8.5K Sep 13 16:16 Linux2-11.1.nvram
0 -rw——-    1 root     root         582 Sep 13 16:12 Linux2-11.1.vmdk
0 -rw-r–r–    1 root     root          43 Sep 13 16:12 Linux2-11.1.vmsd
8 -rwxr-xr-x    1 root     root        2.8K Sep 13 16:16 Linux2-11.1.vmx
0 -rw-r–r–    1 root     root         266 Sep  7 16:44 Linux2-11.1.vmxf
1024 -rw-r–r–    1 root     root      121.1K Sep  7 17:04 vmware-1.log
1024 -rw-r–r–    1 root     root      157.5K Sep 13 16:16 vmware.log

After that I deleted the VM from Disk to check my backup. Once I deleted the VM(Linux2-11.1) it was not showing in repository.

(unknown) # cd /vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392/
/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392 # ls -lrt
total 32
d-w-r-xr-T    1 root     root           420 Sep  8 08:45 vmkdump
drwxr-xr-x    1 root     root          1680 Sep  8 11:06 Red-Linux-2
drwxr-xr-x    1 root     root          3080 Sep 13 15:42 Red-Linux-1
drwxr-xr-x    1 root     root          3360 Sep 13 16:04 Linux-11.1

I initiated the restore operation. After the restoration is complete my VM is back.

/vmfs/volumes/54044ebd-7cada24f-a4f5-000c29903392 # ls -lrt
total 40
d-w-r-xr-T    1 root     root           420 Sep  8 08:45 vmkdump
drwxr-xr-x    1 root     root          1680 Sep  8 11:06 Red-Linux-2
drwxr-xr-x    1 root     root          3080 Sep 13 15:42 Red-Linux-1
drwxr-xr-x    1 root     root          3360 Sep 13 16:04 Linux-11.1
drwxr-xr-x    1 root     root          1120 Sep 13 16:23 Linux2-11.1

I was using Veeam free edition for testing purpose hence not able to show you the power of vPower V7 of Veeam which includes amazing capabilites.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s