Configuring vmhba paths to an SCSI device
For each vmhba path to a storage device, you can indicate that the path is active or not active and you can also indicate that the path is the preferred path to the SCSI device.
Retrieving vmhba paths to an SCSI device
You can use the Get-ScsiLunPath
to retrieve the list of vmhba paths to a specified SCSI device. The syntax of the Get-ScsiLunPath
cmdlet is as follows:
Get-ScsiLunPath [[-Name] <String[]>] [-ScsiLun] <ScsiLun[]>
[<CommonParameters>]
The -ScsiLun
parameter is required, and it accepts input from the pipeline.
In the following example, we will retrieve the vmhba paths of the LUN with Canonical Namenaa.600a0b80001111550000f35b93e19350
from the host 192.168.0.133
:
PowerCLI C:\> Get-VMHost -Name 192.168.0.133 | Get-ScsiLun | >> Where-Object {$_.CanonicalName -eq 'naa.600a0b80001111550000f35b93e19350'} | >> Get-ScsiLunPath Name SanID State...