VMware Cloud Community
chimoe125
Contributor
Contributor
Jump to solution

How to re-thin a disk?

Hello,

I have configured one of my VMs to Thin Provision about 8months ago. The disk size was about 100GB, over time it grew to around 80GB of data. But this weekend I cleaned up the server storage and brought the disk usage to only 15GB (removed bunch of log files). But in Vmware, it still showing the size of the disk is 80GB, so the vmdk file is still 80GB. How can I re-thin the disk so it actually goes down to the current used space?

Thanks,

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

Gest OS does not clean the block when you delete a file.

You can use sdelete (for Windows) to do this.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
7 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

Gest OS does not clean the block when you delete a file.

You can use sdelete (for Windows) to do this.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
vmroyale
Immortal
Immortal
Jump to solution

Hello.

You can use VMware Tools shrink function or Sysinternals' sdelete.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
chimoe125
Contributor
Contributor
Jump to solution

Hello,

I opened VMware tools and clicked Shrink tab howerver it says:

Shrink Disk is disabled for this virtual machine. Shrinking is disabled for virutal disks not used in persistent mode and other fators.

I ended up downloading the sDelete. Is the command i'm suppose to run -z or -c ?

0 Kudos
vmroyale
Immortal
Immortal
Jump to solution

Use the command:

sdelete -c

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
chimoe125
Contributor
Contributor
Jump to solution

Thanks all,

I'm running it now. So after running the sdelete -c it will automatically bring the vmdk file down to the actual used space?

0 Kudos
chimoe125
Contributor
Contributor
Jump to solution

Hello,

I ran the sdelete -c option. It all finished up but still the size is 80GB. I tried restarting the VM but still no go. Anything i'm missing?

0 Kudos
vmroyale
Immortal
Immortal
Jump to solution

You will need to SVMotion it or clone it using vmkfstools now.

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos