Host-based backup of VMware vSphere VMs.
Post Reply
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Using veeam B&R to shrink a virtual disk

Post by marius roma »

A Windows Server 2016 VM was configured with a single large thin virtual disk (vmdk) of 500 GB
The Windows partition inside the virtual disk was resized to 100 GB and now the virtual disk contains the Windows partition and 400 GB of unused space.
However, the space used by the virtual disk in the VMware datastore remains 500 GB and I don't see any option in VMware ESXi or VMware vShpere 5.5 to reduce it.
Can I use Veeam B&R to backup the VM and restore it reducing the space used by the virtual disk in the VMware datastore to 100 GB?
As the VM is quite critical, can I ensure that the restored VM will be identical (same SID and same configuration) as the VM backed up and that I will be able to power it on and use it without problems?
Is there any additional issue I should consider?
Regards
marius
DGrinev
Veteran
Posts: 1943
Liked: 247 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: Using veeam B&R to shrink a virtual disk

Post by DGrinev »

Hi Mario,

You cannot do that with the Veeam B&R functionality.
However, there is a workaround by VMware that can help you to achieve what you're after.
Please review this post for the instructions. Thanks!
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Re: Using veeam B&R to shrink a virtual disk

Post by marius roma »

Many thanks
Marius
omerlin98000
Veeam ProPartner
Posts: 33
Liked: never
Joined: Aug 27, 2014 9:29 am
Full Name: Olivier Merlin
Location: Monte-Carlo, Monaco
Contact:

Re: Using veeam B&R to shrink a virtual disk

Post by omerlin98000 »

Hi Marius (and DGrinev).
I'm in the same process (an Exchange data disk thin provisioned that has grown to 95% of its maximum 400GB size, due to orphan shadow copy problem).
Problem solved, but the shadow 150GB freed have to be reclaimed.

How do you manage that with DGrinev links?
Is vmkfstools punchzero your solution? Because I want to avoid a downtime and storage vMotion seems to be a better solution (providing I find the free space on another storage :wink: )

BTW, if the best solution is punchzero, is it possible to do a snapshot before or you can't?
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 58 guests