Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaLun


NAME
Set-NaLun

SYNOPSIS
Sets the specified LUN online or offline.

SYNTAX
Set-NaLun [-Path] <String> -Offline [-Controller <NaController>] [-WarningAc
tion <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Confirm] [<
CommonParameters>]

Set-NaLun [-Path] <String> -Online [-Force] [-Controller <NaController>] [-W
arningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Con
firm] [<CommonParameters>]


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 DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


Required? false
Position? named
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

-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
NetApp.Ontapi.Filer.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 :
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
ShareState : none
Size : 2000683008
Uuid : d87e15a6-142a-11df-9caa-00a09806c227



RELATED LINKS
Get-NaLun







 Data ONTAP® PowerShell Toolkit