Link to home
Start Free TrialLog in
Avatar of cisconoshut
cisconoshutFlag for United States of America

asked on

ESX Thick to Thin still same size

I have a virtual server that was a 60gb thick disk. I used vmotion to move it to another datastore and changed it from thick to thin but its still 60gb on the datastore but inside the vm its only using 30gb of the 60gb disk. How can i get the vmdk to size down to just the used space like thin is suppose to work. This is on vmware ESX 4.0
Avatar of Paul Solovyovsky
Paul Solovyovsky
Flag of United States of America image

rescan the controller and/or refresh the VI Client.
Avatar of cisconoshut

ASKER

that makes no difference the size is still 60gb on the datastore.
was this machines HDD any time filled up to close to 60Gb?
Yes its also a p2v.
ASKER CERTIFIED SOLUTION
Avatar of bgoering
bgoering
Flag of United States of America 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
are you using NFS storage by chance?
as bgoering said. if it was full one time even if the files were deleted vmware may not be able to see any clear white spaces. defrag and zero the emprty space and try.
you could cat out the descriptor file to verify that the disk is actually supposed to be thin.  It should have the line ddb.thinProvisioned = "1" within it.  See http://virtualbox-provenpractice.blogspot.com/2009/04/thick-disk-to-thin-disk.html if you are unsure how to do this.
You should not even have to defrag (though that is not a bad idea for other reasons) if all you want to do is recover the physical disk space. If you do decide to defrag, do it before zero the unused space otherwise you will have used space wherever defrag moved files or file fragments around.
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
Thanks so much that solved my issue.