I'm managing a number of Thin-Provisioned VMs in vCenter 5.1.0. Each contains one virtual Harddisk. We run a pretty tight ship in terms of allocating storage, so the difference between 1 or 2 GBs is relevant for us in making storage decisions.
I'm looking for an accurate reading of how much of the harddisk the OS is using, and I'd like to use only vCenter utilities (vSphere, PowerCLI, etc). As an example (below), one VM will display hints at its disk usage in many places, but all with slightly varying figures:
"VM1" has been allocated 75GB Thinly. In the General tab in vCenter, the Provisioned Storage amount is listed as 79.88GB, and Used Storage at 66.40GB. When browsing the Datastore, the .vmdk is 64,514,050KB, and lists a provisioned amount as 78,643,200KB. Finally, in the OS (Windows 7), the size of the disk is 74.8GB, and only 59.7GB used.
I know that the "Provisioned" and "Used" statistics also reflect log files and swap files, etc. But could someone please explain in a bit more detail how these amounts are calculated, and more importantly, where I can reliably get a figure in vCenter for provisioned and used storage as the OS would see it?
Thanks!