Hello,
if there are on ESX server disk volumes located on classical hard disk, i can get information about its free space.
Firstly grab infromation about disk volume from HostSystem:
config.fileSystemVolume.mountInfo[1].mountInfo.path = /vmfs/volumes/****-d58381ae-f066-****
config.fileSystemVolume.mountInfo[1].mountInfo.accessMode = readWrite
config.fileSystemVolume.mountInfo[1].mountInfo.accessible = True
config.fileSystemVolume.mountInfo[1].mountInfo.accessibleSpecified = True
config.fileSystemVolume.mountInfo[1].volume.blockSizeMb = 1
config.fileSystemVolume.mountInfo[1].volume.maxBlocks = 262144
config.fileSystemVolume.mountInfo[1].volume.majorVersion = 3
config.fileSystemVolume.mountInfo[1].volume.version = 3.31
config.fileSystemVolume.mountInfo[1].volume.vmfsUpgradable = True
config.fileSystemVolume.mountInfo[1].volume.type = VMFS
config.fileSystemVolume.mountInfo[1].volume.name = esx-01:Local Storage1
config.fileSystemVolume.mountInfo[1].volume.capacity = 576330924032
and then i can pair the info (by name or path/url) to the information from Datastore:
summary.name = esx-01:Local Storage1
summary.url = ds:///vmfs/volumes/****-d58381ae-f066-****/
summary.capacity = 576330924032
summary.freeSpace = 183247044608
summary.uncommitted = 381901037568
summary.uncommittedSpecified = True
summary.accessible = True
summary.multipleHostAccess = False
summary.multipleHostAccessSpecified = True
summary.type = VMFS
It workgs great.
But there are also in HostSytem some disk volumes, which are not located in datastore:
config.fileSystemVolume.mountInfo[6].mountInfo.path = /vmfs/volumes/****-dc485912-cdbe-****
config.fileSystemVolume.mountInfo[6].mountInfo.accessMode = readOnly
config.fileSystemVolume.mountInfo[6].mountInfo.accessible = True
config.fileSystemVolume.mountInfo[6].mountInfo.accessibleSpecified = True
config.fileSystemVolume.mountInfo[6].volume.type = other
config.fileSystemVolume.mountInfo[6].volume.capacity = 299712512
Is possible locate information about free space for such disk volumes elsewhere?
Regards,
Ferda