Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Set-NaLunSize


NAME
Set-NaLunSize

SYNOPSIS
Changes the size of the lun.

SYNTAX
Set-NaLunSize [-Path] <String> [-Force] [-Controller <NaController>] [-NewSi
ze] <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 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

-NewSize <String>
New size for the LUN. Specify the LUN size using the following format:

[+|-]<number>[k|m|g|t|%]

If a leading '+' or '-' appears, it indicates that the LUN size is to be
increased or decreased (respectively) by the indicated amount, else the
amount is the absolute size to set. The optional trailing 'k', 'm', 'g
', and 't' indicates the desired units, namely 'kilobytes', 'megabytes',
'gigabytes', and 'terabytes' (respectively). The optional trailing '%'
indicates to increase or decrease the size of the LUN by a percentage o
f its current size. If the trailing unit character doesn't appear, then
<number> is interpreted as the number of bytes desired.

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
DataONTAP.Types.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 :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
SerialNumber : 123456abcdef
ShareState : read
Size : 2500853760
Uuid : d44cf834-180e-11df-9cab-00a09806c227
Comment :


-------------- Example 2 --------------

C:\PS>Set-NaLunSize /vol/vol2/lun2 -NewSize +25%


Increase the size of the LUN by 25%.


BackingSnapshot :
BlockSize : 512
CloneBackingSnapshot :
Comment :
DeviceId :
IsSpaceReservationEnabled : False
Mapped : True
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun2
ReadOnly : False
SerialNumber : nBLdKoeqX8ob
ShareState : none
Size : 52428800
SizeUsed : 18800640
Staging : False
Uuid : c08ccb32-d179-11e0-aa54-00155da1ce08
DeviceIdSpecified : False
TotalSize : 52428800
Protocol : image
Thin : True



RELATED LINKS
Get-NaLun







 Data ONTAP® PowerShell Toolkit