We've been using vmkfstools with vSphere SDK for Perl (both v4.1) for quite some time to remotely monitor free space on esx 4.1 host's VMFS partitions.
Recently one went low, we were alerted as expected, freed up a heap of space, but several days have gone by but the monitoring system still reports the space is low.
Running vmkfstools remotely shows the following:
monitor:/usr/lib/vmware-vcli/apps# vmkfstools --url https://esxhost/sdk/webService --vihost esxhost --queryfs /vmfs/volumes/vmfs_c1
Enter username:
Enter password:
VMFS-3.31 file system spanning 1 partitions.
Capacity : 584920858624, 1224736768 avail
File system label : vmfs_c1
UUID : 4b96fef6-cb8eae98-a2ff-00215e54fec0
path : /vmfs/volumes/4b96fef6-cb8eae98-a2ff-00215e54fec0
Partitions spanned:
naa.600a0b80005a7788000004824b96a466:1
Running on the host:
[user@esxhost ~]# vmkfstools --queryfs /vmfs/volumes/vmfs_c1/
VMFS-3.31 file system spanning 1 partitions.
File system label (if any): vmfs_c1
Mode: public
Capacity 584920858624 (139456 file blocks * 4194304), 472618369024 (112681 blocks) avail
UUID: 4b96fef6-cb8eae98-a2ff-00215e54fec0
Partitions spanned (on "lvm"):
naa.600a0b80005a7788000004824b96a466:1
Anyone have an idea as to why we're getting the wrong figures?