Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaLunSize


NAME
Set-NaLunSize

SYNOPSIS
Changes the size of the lun.

SYNTAX
Set-NaLunSize [-Path] <String> [-Force] [-Controller <NaController>] [-NewSi
ze] <Int64> [-WarningAction <ActionPreference>] [-WarningVariable <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Changes the size of the lun. Note that client-side operations may be needed
to ensure that client software recognizes the changed size.


PARAMETERS
-Path <String>
Path of the LUN.

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

-Force
Forcibly reduce the size. This is required for reducing the size of the
LUN to avoid accidentally reducing the LUN size.

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

-NewSize <Int64>
New size for the LUN.

Required? true
Position? 2
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

<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-resize

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

C:\PS>Set-NaLunSize /vol/vol2/lun101 2500000000


Increase the size of LUN 'lun101'.


BackingSnapshot :
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
ShareState : read
Size : 2500853760
Uuid : d87e15a6-142a-11df-9caa-00a09806c227



RELATED LINKS
Get-NaLun







 Data ONTAP® PowerShell Toolkit