Solved

ESX Thick to Thin still same size

Posted on 2010-09-09
11
1,256 Views
Last Modified: 2013-11-14
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
0
Comment
Question by:cisconoshut
  • 3
  • 2
  • 2
  • +3
11 Comments
 
LVL 42

Expert Comment

by:paulsolov
ID: 33643231
rescan the controller and/or refresh the VI Client.
0
 

Author Comment

by:cisconoshut
ID: 33643242
that makes no difference the size is still 60gb on the datastore.
0
 
LVL 2

Expert Comment

by:ppdogs
ID: 33643438
was this machines HDD any time filled up to close to 60Gb?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:cisconoshut
ID: 33643448
Yes its also a p2v.
0
 
LVL 28

Accepted Solution

by:
bgoering earned 250 total points
ID: 33643461
Take a look at the summary page for the Virtual machine - under resources does it show a difference between provisioned size and used storage? Or in the Datastore browser a difference between Size and Provisioned Size?

Often it is a VM that has been around for a while, space won't be reclaimed if it isn't set to binary zeros. There is a Microsoft Sysinternals tool that (for Windows anyway) called sdelete (http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx) that will clear unused space to binary zeros - then another storage vmotion to thin will reclaim all that unused space.

Usage: sdelete -c c:
if c: is the drive to reclaim

If it isn't a Windows OS let me know what it is. I believe I found such a tool for Linux at one time but off the top of my head I can't recall what it is.

Good Luck

 
0
 
LVL 16

Expert Comment

by:danm66
ID: 33643560
are you using NFS storage by chance?
0
 
LVL 2

Expert Comment

by:ppdogs
ID: 33643574
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.
0
 
LVL 16

Expert Comment

by:danm66
ID: 33643670
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.
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33643829
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.
0
 
LVL 5

Assisted Solution

by:chkdsk01
chkdsk01 earned 250 total points
ID: 33646349
You will need to reclaim that storage space.  Because the disk was originally thick, all 60 GB was allocated.  Then you converted it to thin....  The thick to thin conversion does just that, convert.  It does not reclaim the 30 GB of "empty" space.  Check out this article.
http://www.virtualizationteam.com/virtualization-vmware/vsphere-virtualization-vmware/vmware-esx-4-reclaiming-thin-provisioned-disk-unused-space.html 
0
 

Author Closing Comment

by:cisconoshut
ID: 33647571
Thanks so much that solved my issue.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question