Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Set-NaLunSelect


NAME
Set-NaLunSelect

SYNOPSIS
Set the select attribute for the specified LUN.

SYNTAX
Set-NaLunSelect [-Path] <String> [-Controller <NaController>] [-Select] <Str
ing> [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Set the select attribute for the specified LUN. The select attribute is use
d by multi-pathing software to discriminate between LUNs when mirrored or c
loned copies of a vdisk are mapped to the same host.


PARAMETERS
-Path <String>
Path of the LUN.

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

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

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

-Select <String>
Sets the select attribute for the LUN.

Possible inputs:

"active" - use this as the active LUN
"copy" - use this as a clone or copy of an active LUN
"mirror" - use this as a mirror of an active LUN

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

-WhatIf


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

-Confirm


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

<CommonParameters>
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
NetApp.Ontapi.Filer.Lun810.LunInfo


NOTES


Category: lun
API: lun-set-select-attribute

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

C:\PS>Set-NaLunSelect /vol/vol2clone/lun1 active | Get-NaLunSelect


Set the LUN select attribute of LUN '/vol/vol2clone/lun1' to 'active', and t
hen display the result.


CreationTime : Thu Mar 19 11:48:36 EDT 2009
PreviousSerial :
SelectAttribute : active



RELATED LINKS
Get-NaLunSelect







 Data ONTAP® PowerShell Toolkit