Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Set-NaLun


NAME
Set-NaLun

SYNOPSIS
Sets the specified LUN online or offline.

SYNTAX
Set-NaLun [-Path] <String> -Offline [-Controller <NaController>] [<CommonPar
ameters>]

Set-NaLun [-Path] <String> -Online [-Force] [-Controller <NaController>] [<C
ommonParameters>]


DESCRIPTION
Sets the specified LUN online or offline.

Online: Re-enables block-protocol accesses to the lun.

Offline: Disables block-protocol accesses to the LUN. Mappings, if any, con
figured for the lun are not altered. Note that unless explicitly offlined, a
lun is online.


PARAMETERS
-Path <String>
Path of the LUN.

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

-Offline
Specify -Offline to set the LUN offline.

Required? true
Position? named
Default value
Accept pipeline input? false
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

-Online
Specify -Online to set the LUN online.

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

-Force
Forcibly online the lun, disabling mapping onflict checks with the clust
er partner. If not specified all conflict checks are performed.

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
DataONTAP.Types.Lun.LunInfo


NOTES


Category: lun
API: lun-online, lun-offline

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

C:\PS>Set-NaLun /vol/vol2/lun101 -Online


Set LUN 'lun101' online.


BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
SerialNumber : abcdefghijkl
ShareState : none
Size : 2000683008
Uuid : d44cf834-180e-11df-9cab-00a09806c227
Comment :



RELATED LINKS
Get-NaLun







 Data ONTAP® PowerShell Toolkit