VMware Cloud Community
Arnold_Mishaev
Contributor
Contributor

Suddenly Thin provision hard disks took full space of VMFS

Hello everybody,

I have ESXI 6.5 host, and 4 VM installed on him.

ESXI version: 6.5.0 Update 2 (Build 10719125)

VMware tools version: VMware Tools 10.2.1 build 8267844

The back-end Storage: Direct Attach storage, Raid5

VMFS version: 6.81

i have "FS" VM  and there is 2 hard disk:

1 Hard disk 120GB thin provision

2 Hard disk 450GB thin provision

suddenly my VM use full space disk, why?

please your help guys

Best Regards

Reply
0 Kudos
14 Replies
Arnold_Mishaev
Contributor
Contributor

I've attached attachments.

Reply
0 Kudos
a_p_
Leadership
Leadership

suddenly my VM use full space disk, why?

To find out what is/was causing this, you need to investigate from within the guest OS. Maybe someone stored a huge amount of data to the FS, or copied something!?

In case it's a Windows fileserver, you may use e.g. TreeSize to find out what's consuming the space.


André

Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

Nobody add big size files to GuestOS, and as you can see at attachment that i attach now of screenshot of the size of guestOS partitions, there size is half of   what VMDK allocated.

pastedImage_0.png

Reply
0 Kudos
blazilla
Enthusiast
Enthusiast

Hi,

did you run a Defrag on the disks??

Best regards Patrick https://www.vcloudnine.de
Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

Hi,

How it will help?

Reply
0 Kudos
sjesse
Leadership
Leadership

Defrag in window 2012 and later should organize the freespace and tell VMware to reclaim it. This is for 6.0 but I believe it still applies. You probably used it all and then it was deleted in the guest os, but VMware hasn't reclaimed it yet.

Direct Guest OS UNMAP in vSphere 6.0 | Cody Hosterman

Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

Thank you Sjesse!!

Now i'm made optimization to my server 2016, and i'ts worked great the allocated space of VM got small again to his natural size.

and what about server 2008 R2, it will also work?

Best Regards,

Reply
0 Kudos
NathanosBlightc
Commander
Commander

Run "df -h" in the ESXi datastore in the corresponding directory: /vmfs/volumes/{datastore}/ ...

Check all subdirectories size, maybe you find something else related to the storage capacity size.

After that check the vmware.log file and also event viewer in the VM guest OS.

Please mark my comment as the Correct Answer if this solution resolved your problem
Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

what this command doing?

it as to be run from that path /vmfs/volumes/{datastore}/           ?

it could be run online with out take offline virtual machine?

Reply
0 Kudos
NathanosBlightc
Commander
Commander

Run this in the following path to check contents of exact directory: disk usage and max depth show only this directory's files (one level)

du -chx --max-depth=1

No need to power-off the VM, even it's better to be power-on because you need to find the cause of the problem in power-on state.

Please mark my comment as the Correct Answer if this solution resolved your problem
Reply
0 Kudos
sjesse
Leadership
Leadership

Its not available I'm afraid.

Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

In server 2016 when i'm trying to optimize c drive it's greeting to  "86% trimming" and then it's stop and in event viewer i have 257 event id, i also tried from powershell useless.

please look at attachments.

Reply
0 Kudos
Stefanos_Barout
Contributor
Contributor

Try to storage vmotion (keep the same format) and check again!

Reply
0 Kudos
Arnold_Mishaev
Contributor
Contributor

I have vmware essential license, this license doesn't support vmotion.

Reply
0 Kudos