|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcLunSize
NAME
Set-NcLunSize
SYNOPSIS
Changes the size of the LUN.
SYNTAX
Set-NcLunSize [-Path] <String> [-Force] [-VserverContext <String>] [-Control
ler <NcController[]>] [-NewSize] <String> [-WhatIf] [-Confirm] [<CommonParam
eters>]
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 (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
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-NewSize <String>
The new size of the LUN.
Specify the new 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 '%', which must be accompanied by a leading '+' or
'-', indicates that the LUN size is to be increased or decreased in pro
portion to the current size.
The optional trailing 'k', 'm', 'g', and 't' indicates the desired units
, namely 'kilobytes', 'megabytes', 'gigabytes', and 'terabytes' (respect
ively). 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
NetApp.Ontapi.Filer.C.Lun810.LunInfo
NOTES
Category: lun
API: lun-resize
Family: vserver
-------------- Example 1 --------------
C:\PS>Set-NcLunSize /vol/testvol/exchangeLun 50g
Set the LUN 'exchangeLun' to 50 GB.
Path Size Protocol Online Mapped Thin Vserver Comme
nt
---- ---- -------- ------ ------ ---- ------- -----
--
/vol/testvol/exchangeLun 50.0 GB hyper_v False True False costea01
-------------- Example 2 --------------
C:\PS>Set-NcLunSize /vol/testvol/exchangeLun +10g
Increase the size of LUN 'exchangeLun' by 10 GB.
Path Size Protocol Online Mapped Thin Vserver Comme
nt
---- ---- -------- ------ ------ ---- ------- -----
--
/vol/testvol/exchangeLun 60.0 GB hyper_v False True False costea01
-------------- Example 3 --------------
C:\PS>Set-NcLunSize /vol/testvol/exchangeLun -10% -Force
Shrink LUN 'exchangeLun' by 10 percent.
Path Size Protocol Online Mapped Thin Vserver Comme
nt
---- ---- -------- ------ ------ ---- ------- -----
--
/vol/testvol/exchangeLun 54.0 GB hyper_v False True False costea01
RELATED LINKS
Get-NcLun
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|