Link to home
Start Free TrialLog in
Avatar of IT Q
IT QFlag for Italy

asked on

How to Shrink a VMware VMDK

Following this interesting article:
HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes
we started checking the vmdk descriptor file of a 2TB virtual disk (ESXi 5.1) but we noticed that the size is 4294967294 instead of 4294967296 as expected by multiplying 2048 * 1024 * 1024 * 1024/512.
Why two sectors are missing?
Wanting to reduce vmdk to 1900 GB how should we consider the difference of the two sectors?
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT Q

ASKER

(Thanks for your patience and sorry for the mess. The word "Comment" confused me.)
So if my Windows partition is 2097148 MB I could shrink it of 102400 MB = 1994748 MB and then change the VMDK size to:
at least 4085243904.
Higher sizes would avoid corruption although would create unused space?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT Q

ASKER

Fast, patient and decisive. In a word, great!