VMware Cloud Community
JohnyBeGod
Contributor
Contributor

Reclaim freed space in thin provisioned drives?

Hello,

Basically I have few VMs and one of them is Ubuntu 18.04 and its filled over its provisioned space (not sure even how it got to this point).

Here's what ESXi shows https://prnt.sc/n67gdk and this is what Ubuntu shows http://prntscr.com/n67gvl

I've tried this https://blog.destephen.com/wordpress/?p=753

but after few hours nothing got freed up and ended up with less space on ESXi host about 60GBs less.

https://prnt.sc/n67hro

https://prnt.sc/n67hyk

Any help would be much appreciated!

0 Kudos
4 Replies
pragg12
Hot Shot
Hot Shot

Hi,

Welcome to VMTN. 🙂

Do you have an active snapshot on this VM ? That could explain the 752 GB in use. Remove the snapshot and consolidate the VM if the snapshot is not required.

Consider marking this response as "Correct" or "Helpful" if you think my response helped you in any way.
0 Kudos
JohnyBeGod
Contributor
Contributor

Hello and thank you Smiley Happy

First thing I did was to delete all snapshots.

Any other suggestions?

0 Kudos
pragg12
Hot Shot
Hot Shot

Can you try consolidating the VM and see if it helps.

Consider marking this response as "Correct" or "Helpful" if you think my response helped you in any way.
0 Kudos
JohnyBeGod
Contributor
Contributor

Are you referring to "Consolidate disks" under "Snapshots" ?

Before running above I followed this guide Shrink guest on hosted platform - VI-Toolkit

in Ubuntu I ran cat /dev/zero > zero.fill;sync;sleep 1;sync;rm -f zero.fill and waited to complete.

Then, after almost 5hrs of running "Consolidate disks" task option for this particular VM it shows this https://prnt.sc/n6py7t

which is an improvement but df --human in Ubuntu shows that out of 400GB only 176GB is used?

0 Kudos