VMware Cloud Community
tdubb123
Expert
Expert

thin provision VM flat filke size

I got a thin provisioned VM. 100GB C drive

but only has 20GB used

why does the flat file size shows 100GB?

Reply
0 Kudos
5 Replies
mulcas
Enthusiast
Enthusiast

Hi,

Don't really get what you mean with flat size and your question... but if you configure a 100GB vDisk for the VM, the OS will show 100GB, the datastore, where the VM is located, will show your current usage and will increase on demand.

From your VM > Summary, you'll see the storage usage.

Cheers,

mulcas

Reply
0 Kudos
a_p_
Leadership
Leadership

Thin provisioning is a file system feature, i.e. not comparable to e.g. sparse files in VMware Workstation.

So when you look at the files using a tool that's not aware of this feature (or which doesn't expose it), you will only see the provisioned size.

If you want to see the real size of a flat file from e.g. the command line, you may run e.g. ls -lisa which will show the used blocks (in kB) in the second column.

André

Reply
0 Kudos
tdubb123
Expert
Expert

its still showing 60GB. OS is not using 60GB

I dont see where the provisioned size it showing in the web client

also powercli shows the same

60GB

Reply
0 Kudos
SupreetK
Commander
Commander

Was it using 60GB previously and now it has reduced to 20GB? If yes, you might have to run SDelete (or FSTRIM) inside the guest OS and 'vmkfstools -K' on the affected disk to punch zeroes. Post this, you can run <du -sah ./*-flat.vmdk> from within the VM folder and the disk should report the similar utilization to that being reported inside the guest OS.

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

Reply
0 Kudos
tdubb123
Expert
Expert

no this was a clean ISO OS installation

Reply
0 Kudos