This post is more than 5 years old
19 Posts
0
139123
August 4th, 2011 13:00
vFoglight calculates logical disk space different
Hi there,
I found out that I have several logical disks on virtual machines, where vFoglight does not take the whole capacity, e.g. I have a virtual machine assigned a 40 GB disk, which is showing up in vFoglight with 39,9 GB. Does anybody had this issue also and probably help me out ?
Interesting is that this does not happen on all disks !
Best regards
hEINER
No Events found!



hdoubleu
19 Posts
1
August 25th, 2011 07:00
Hi,
found the answer on my own. To calculate the really used disk space of a virtual machine, you need to calculate the size given in the vmdkFileLayouts.
I'm using a groovy script for that:
Parameter: vm Monitoring:VMWVirtualMachine
vm = args['vm'];
vmdkList = vm.get("vmdkFileLayouts");
def total = new Double("0");
for (vmdk in vmdkList)
{
total += vmdk.get("diskSize",specificTimeRange);
}
return total/1048576;
Giving the total used disk space of all vmdk files for that virtual machine in MB.
Best regards,hEINER
hdoubleu
19 Posts
0
August 16th, 2011 13:00
I found that vFoglight does only report on logical disks with given drive letters, e.g. Windows 2008 you have a system partition which has no drive letter assigned, so vFoglight does not report or calculate it.
So I'm thinking about reporting about the size of the vmdk file associated to a virtual machine, anyone an idea about that ?
hEINER
sundling
73 Posts
0
August 23rd, 2011 17:00
Heiner,
vFoglight relies on VMware Tools to retrive the logical disk information inside the guest and it probably only report disk with drive letters assigned as you have pointed out.
/Mattias
hdoubleu
19 Posts
0
August 24th, 2011 10:00
Hi Matthias,
thanks for the answer. That was what I already assumed.
Any Idea about question 2: "So I'm thinking about reporting about the size of the vmdk file associated to a virtual machine, anyone an idea about that ?"
Best regards,
hEINER
Also I'm thinking that no one of Quest support team ever reads these forum posts, as I have already 3 or 4 different posts not even answered...