Set-MPIOSetting

Changes MPIO settings.

Syntax

Set-MPIOSetting
   [[-NewPathVerificationPeriod] <Int32>]
   [[-NewPathVerificationState] <String>]
   [[-NewPDORemovePeriod] <Int32>]
   [[-NewRetryCount] <Int32>]
   [[-NewRetryInterval] <Int32>]
   [[-NewDiskTimeout] <Int32>]
   [[-CustomPathRecovery] <String>]
   [[-NewPathRecoveryInterval] <Int32>]
   [<CommonParameters>]

Description

The Set-MPIOSetting cmdlet changes Microsoft Multipath I/O (MPIO) settings. The settings are as follows:

  • PathVerificationState
  • PathVerificationPeriod
  • PDORemovePeriod
  • RetryCount
  • RetryInterval
  • UseCustomPathRecoveryTime
  • CustomPathRecoveryTime
  • DiskTimeoutValue

You may be prompted to restart the computer for your changes to take effect.

Examples

Example 1: Change the disk time-out

PS C:\> Set-MPIOSetting -NewDiskTimeout 30

This command sets the disk time-out value to 30 seconds. The system prompts you to restart after you change settings.

You can use the Get-MPIOSetting cmdlet to verify the change.

Parameters

-CustomPathRecovery

Specifies whether MPIO performs custom path recovery. The acceptable values for this parameter are: Enabled and Disabled. The default value is Disabled.

Type:String
Accepted values:Enabled, Disabled
Position:6
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewDiskTimeout

Specifies the disk time-out value, in seconds. This value is the length of time the server waits before it marks the I/O request as timed out. The default value for DiskTimeoutValue is 120. We recommend a maximum value of 30.

Type:Int32
Position:5
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewPathRecoveryInterval

Specifies a custom path recovery time, in seconds. This is the length of time before the server tries path recovery. The default value is 40. This parameter is not relevant unless you specify Enabled for the CustomPathRecovery parameter.

Type:Int32
Position:7
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewPathVerificationPeriod

Specifies a path verification period, in seconds. This is the length of time for the server to verify every path. This parameter is not relevant unless the path verification state has a value of Enabled. The default value is 30.

You can set the path verification state by using the NewPathVerificationState parameter.

Type:Int32
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewPathVerificationState

Specifies whether to enable path verification. The acceptable values for this parameter are: Enabled and Disabled. The default value is Disabled.

Type:String
Accepted values:Enabled, Disabled
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewPDORemovePeriod

Specifies a physical device object (PDO) removal period, in seconds. This period is the length of time the server waits after all paths to a PDO have failed before it removes the PDO. The default value is 20.

Type:Int32
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewRetryCount

Specifies the number of times to retry an I/O request. The default value is three times.

Type:Int32
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewRetryInterval

Specifies a retry interval, in seconds. This is the length of time after which the server retries a failed I/O request. The default value is one second.

Type:Int32
Position:4
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False