Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcVolAutosize


NAME
Set-NcVolAutosize

SYNOPSIS
Given the name of a flexible volume, set the autosize settings.

SYNTAX
Set-NcVolAutosize [-Name] <String> [-VserverContext <String>] [-Controller <
NcController[]>] [[-MaximumSize] <String>] [[-IncrementSize] <String>] [-Ena
bled] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-NcVolAutosize [-Name] <String> [-VserverContext <String>] [-Controller <
NcController[]>] -AutosizeInfo <AutosizeInfo> [-WhatIf] [-Confirm] [<CommonP
arameters>]

Set-NcVolAutosize [-Name] <String> [-VserverContext <String>] [-Controller <
NcController[]>] [[-MaximumSize] <String>] [[-IncrementSize] <String>] [-Dis
abled] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Given the name of a flexible volume, set the autosize settings.


PARAMETERS
-Name <String>
The name of the flexible volume for which we want to set autosize.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
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

-MaximumSize <String>
Specify the flexible volume's maximum allowed size using the following f
ormat

<number>[k|m|g|t]

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). If the trailing unit ch
aracter doesn't appear, then <number> is interpreted as the number of by
tes desired.

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

-IncrementSize <String>
Specify the flexible volume's increment size using the following format

<number>[k|m|g|t]

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). If the trailing unit ch
aracter doesn't appear, then <number> is interpreted as the number of by
tes desired.

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

-Enabled
Specify to enable the volume autosize feature.

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

-AutosizeInfo <AutosizeInfo>
This parameter accepts the output of Get-NcVolAutosize, as needed for pi
pelined invocations.

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

-Disabled
Specify to disable the volume autosize feature.

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.Volume810.VolumeAttributes


NOTES


Category: volume
API: volume-autosize-set
Family: vserver

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

C:\PS>Set-NcVolAutosize vol2 -Enabled -MaximumSize 200g -IncrementSize 1g |
Get-NcVolAutosize


Configure the autosize settings for volume 'vol2' and display the result.


Name IsEnabled IncrementSize MaximumSize
---- --------- ------------- -----------
vol2 True 1.0 GB 200.0 GB


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

C:\PS>Get-NcVolAutosize vol1 | Set-NcVolAutosize vol2 | Get-NcVolAutosize


Get the autosize settings from volume 'vol1' and copy those to volume 'vol2'
and display the result.


Name IsEnabled IncrementSize MaximumSize
---- --------- ------------- -----------
vol2 True 100.0 MB 20.0 GB



RELATED LINKS
Get-NcVolAutosize







 Data ONTAP® PowerShell Toolkit