powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-ScsiLun



NAME
Set-ScsiLun

SYNOPSIS
Configures a SCSI device.

SYNTAX
Set-ScsiLun [[-MultipathPolicy] ] [[-PreferredPath] ] [-ScsiLun] [
-CommandsToSwitchPath ] [-BlocksToSwitchPath ] [-NoCommandsSwitch] [-NoBlocksSwitch] [-WhatIf] [-Conf
irm] []


DESCRIPTION
Configures a SCSI device.


PARAMETERS
-MultipathPolicy
Specify the policy that the logical unit must use when choosing a path. The following values are valid:

Fixed - use the preferred path whenever possible.
RoundRobin - load balance.
MostRecentlyUsed - use the most recently used path.
Unknown - supported only when connected to vCenter Server 4.0/ESX 4.0.

Passing values to this parameter through a pipeline is deprecated and will be disabled in a future release.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-PreferredPath
Specify the preferred path to access the SCSI logical unit. Passing values to this parameter through a pipeline
is deprecated and will be disabled in a future release.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-ScsiLun
Specify the SCSI device you want to configure.

Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-CommandsToSwitchPath
Specify the maximum number of I/O requests to be issued on a given path before the system tries to select a dif
ferent path. Modifying this setting affects all ScsiLun devices that are connected to the same ESX host. The de
fault value is 50. Setting this parameter to zero (0) disables switching based on commands. This parameter is n
ot supported on vCenter Server 4.x.

Required? false
Position? named
Default value 50
Accept pipeline input? false
Accept wildcard characters? false

-BlocksToSwitchPath
Specify the maximum number of I/O blocks to be issued on a given path before the system tries to select a diffe
rent path. Modifying this setting affects all ScsiLun devices that are connected to the same ESX host. The defa
ult value is 2048. Setting this parameter to zero (0) disables switching based on blocks. BlocksToSwitchPath

Required? false
Position? named
Default value 2048
Accept pipeline input? false
Accept wildcard characters? false

-NoCommandsSwitch
Indicate that switching based on commands is disabled. Not supported on vCenter Server 4.x.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NoBlocksSwitch
Indicate that switching based on blocks is disabled. Not supported on vCenter Server 4.x.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
ScsiLun


NOTES




-------------- Example 1 --------------

C:\PS>$scsilun = Get-ScsiLun -VMHost 10.23.123.100 -LunType disk

Set-ScsiLun -ScsiLun $scsilun -CommandsToSwitchPath 100


Configures the SCSI Lun device of the virtual machine host, so that the maximum number of I/O requests to be issued
before the system tries to select a different path is 100.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-ScsiLun.html
Get-ScsiLun
Get-ScsiLunPath
Set-ScsiLunPath