Search
Plugins > vCenter Server 6.0.2 > VcHostDatastoreSystem > queryAvailableDisksForVmfs

Method queryAvailableDisksForVmfs(VcDatastore datastore)

Query to list disks that can be used to contain VMFS datastore extents. If the optional parameter name is supplied, queries for disks that can be used to contain extents for a VMFS datastore identified by the supplied name. Otherwise, the method retrieves disks that can be used to contain new VMFS datastores.

This operation will filter out disks that are currently in use by an existing VMFS unless the VMFS using the disk is one being extended. It will also filter out management LUNs and disks that are referenced by RDMs. These disk LUNs are also unsuited for use by a VMFS.

Disk LUNs referenced by RDMs are found by examining all virtual machines known to the system and visiting their virtual disk backends. If a virtual disk backend uses an RDM that is referencing a disk LUN, the disk LUN becomes ineligible for use by a VMFS datastore.

Returns

VcHostScsiDisk[]

Arguments

Name Type Description
datastore VcDatastore The managed object reference of the VMFS datastore you want extents for.