NAME
Set-DcsPhysicalDiskPathPreference
SYNOPSIS
Sets a back-end or mirror Fibre Channel path to be preferred or non-preferred.
SYNTAX
Set-DcsPhysicalDiskPathPreference -Path <Object> -Preferred <Boolean> [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Sets a back-end or mirror Fibre Channel path to be preferred or non-preferred. A preferred path will always be used if available.
PARAMETERS
- -Path<Object>
- The physical disk ID or DiskPathData object that identifies the back-end or mirror Fibre Channel path.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Preferred<Boolean>
- Use this parameter to set whether or not the path should be preferred. Specify $true to assign the path to be the preferred path to use. A preferred path will always be used if available. Specify $false to assign the path as non-preferred.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection is used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
DiskPathData : Object that identifies the path.
OUTPUTS
DiskPathData : Object that identifies the disk path.
NOTES
Also see Get-DcsPhysicalDiskPath. To set front-end preferred path option and access rights, see Set-DcsVirtualLogicalUnitProperties.
EXAMPLES
Get-DcsPhysicalDiskPath -Server Server1 -Disk "Disk 0" | Set-DcsPhysicalDiskPathPreference -Preferred $true
The cmdlet Get-DcsPhysicalDiskPath is invoked to obtain the DiskPathData object for the physical disk named "Disk 0" on the server named "Server1". This object is piped to Set-DcsPhysicalDiskPathPreference with the Preferred parameter set to true.
DiskId | : | D3B57824-4E23-4DBB-947B-F8EF13A6CBAD:naa.60030d9056566f6c31335f5365727665 |
InitiatorPortId | : | D3B57824-4E23-4DBB-947B-F8EF13A6CBAD:210000E08B1672E6 |
TargetPortId | : | 21-00-00-E0-8B-85-7E-B9 |
Lun | : | 0 |
Active | : | True |
Preferred | : | True |
Id | : | D3B57824-4E23-4DBB-947B-F8EF13A6CBAD:naa.60030d9056566f6c31335f5365727665-[I:210000E08B1672E6 T:21-00 -00-E0-8B-85-7E-B9 L:0] |
Caption | : | LUN 0 on Server FC Port 3 on Server1 from 21-00-00-E0-8B-85-7E-B9 |
ExtendedCaption | : | LUN 0 on Server FC Port 3 on Server1 from 21-00-00-E0-8B-85-7E-B9 |
Internal | : | False |