Share via


SetWTDiskLunMapping method of the WT_Host class

Sets the SCSI Logical Unit Number (LUN) number of the specified virtual disk.

Syntax

void SetWTDiskLunMapping(
  [in] uint32 WTD,
  [in] uint32 LUN
);

Parameters

WTD [in]

The iSCSI disk index for the virtual disk.

LUN [in]

The SCSI LUN number.

Return value

This method does not return a value.

Remarks

Each virtual disk within an iSCSI target has a unique Logical Unit Number (LUN). The uniqueness is only per iSCSI target. A virtual disk may have different LUNs if it is assigned to multiple iSCSI targets.

When a virtual disk is assigned to an iSCSI target, the LUN is determined automatically. Use this method only if you need to specify a LUN.

In order for an initiator to access a virtual disk over an iSCSI Storage Area Network (SAN), the virtual disk should be assigned to a WT_Host object that is configured to allow the initiator access to the LUNs that the virtual disk contains.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Wmi
MOF
WmiWtProvider.mof
DLL
WtWmiProv.dll

See also

WT_Host