Set-ScsiLunPath

This cmdlet configures a vmhba path to a SCSI device.

Syntax

[-ScsiLunPath]  <ScsiLunPath[]>
[-Active  <Boolean>]
[-Preferred]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
ScsiLunPath
ScsiLunPath[] 1
  • pipeline
  • Specifies a path to the SCSI logical unit you want to configure.
    optional
    Active
    Boolean named Indicates that the specified path is active.
    optional
    Preferred
    SwitchParameter named Indicates that the specified path is preferred. Only one path can be preferred, so when a path is made preferred, the preference is removed from the previously preferred path.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Storage.Scsi.ScsiLunPath

    Examples


    Example 1

    $scsilun = Get-ScsiLun -VMHost 10.23.123.100 -LunType disk
    $scsipath = Get-ScsiLunPath -ScsiLun $scsilun
    Set-ScsiLunPath -ScsiLunPath $scsipath -Preferred $true

    Sets the specified SCSI Lun path as preferred.

    Related Commands

    Feedback

    Was this page helpful?