Host-based backup of VMware vSphere VMs.
Post Reply
howartp
Enthusiast
Posts: 78
Liked: 10 times
Joined: Jun 08, 2013 10:52 am
Full Name: Peter Howarth
Contact:

Restore VMDK thin?

Post by howartp »

Hi,

This summer we'll be swapping to a new domain with new Domain Controllers etc. This domain exists now, completely isolated from the live domain.

To get the staff and student data onto the new VM servers my usual routine in this scenario is to restore a copy of the live VMDK and attach it to the new server as say a drive z: then I can use Windows to copy the data from the local Z: to local D: instead of copying across the network.

Looking at test restore today so I can plan how I'm going to do the work in summer, I can see restore 'VM Hard Disks' or 'VM Files'.

If I use VM Hard Disks (which I selected first, but then realised it shuts down the VM and restores it directly to it) I can choose to restore it THIN.

If I use VM Files, I can't see an option for thin.

Is there a way I can restore a VMDK from a backup, onto the ESX datastores, and make it THIN? (Powershell is acceptable if that's the way to do it)

We haven't enough disk space for both live full drives of all the servers, but there's enough if we do them thin. The new servers are all set up thin until we've got the data where we want it and working, then we'll inflate them.

Peter
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Restore VMDK thin?

Post by foggy »

Peter, in case of using VM Files option disks will be always restored as thick, since thin disks cannot exist without being attached to a VM. To keep the restored disks thin, you should use the VM Hard Disks option. Thanks.
howartp
Enthusiast
Posts: 78
Liked: 10 times
Joined: Jun 08, 2013 10:52 am
Full Name: Peter Howarth
Contact:

Re: Restore VMDK thin?

Post by howartp »

Ah, that makes sense.

I've actually just been thinking out of the box - last time I did this scenario, I was upgrading from vSphere 3 (or whatever it was called) to vSphere 5, so the situation was actually different

This time, I should be able to just clone the VM in vSphere and tell it to create it as thin, then delete everything but the VMDK and re-attach it to the new server.

At least, in theory! I'm trying it now with a 40GB server that only has 22GB used.

Peter
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Restore VMDK thin?

Post by foggy » 1 person likes this post

Probably the more convenient way would be to restore the disk to some fake VM (using the VM Hard Disks option) and then re-attach it to the new server.
howartp
Enthusiast
Posts: 78
Liked: 10 times
Joined: Jun 08, 2013 10:52 am
Full Name: Peter Howarth
Contact:

Re: Restore VMDK thin?

Post by howartp »

howartp wrote:This time, I should be able to just clone the VM in vSphere and tell it to create it as thin, then delete everything but the VMDK and re-attach it to the new server.
foggy wrote:Probably the more convenient way would be to restore the disk to some fake VM (using the VM Hard Disks option) and then re-attach it to the new server.
Is there any difference between these two approaches, other than the vSphere approach is a local copy on the SAN whereas Veeam is copying across the network? (Veeam isn't attached to the SAN yet)

Peter
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Restore VMDK thin?

Post by Vitaliy S. »

Hi Peter,

Restoring a single VMDK to a fake VM will still be quicker even over the network.

Thanks!
howartp
Enthusiast
Posts: 78
Liked: 10 times
Joined: Jun 08, 2013 10:52 am
Full Name: Peter Howarth
Contact:

Re: Restore VMDK thin?

Post by howartp »

Vitaliy S. wrote:Hi Peter,

Restoring a single VMDK to a fake VM will still be quicker even over the network.

Thanks!
That's an interesting comment - how do you work that out?

If I've got a VM with 30GB C_Drive and 1TB D_Drive to restore or clone, I would expect the LAN restore of 1TB to take longer than an on-disk clone of 1.03TB?

Peter
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Restore VMDK thin?

Post by Vitaliy S. »

Well...I just assumed that restoring the entire VM as opposed to restoring only part of it, should be quicker, didn't notice you were referring to VM cloning that is going to be on the same storage device.
howartp
Enthusiast
Posts: 78
Liked: 10 times
Joined: Jun 08, 2013 10:52 am
Full Name: Peter Howarth
Contact:

Re: Restore VMDK thin?

Post by howartp »

Ah right.

I'll see how it goes.

Peter
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 38 guests