|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaVolAutosize
NAME
Set-NaVolAutosize
SYNOPSIS
Given the name of a flexible volume, set the autosize settings.
SYNTAX
Set-NaVolAutosize [-Name] <String> [-Controller <NaController>] [[-MaximumSi
ze] <String>] [[-IncrementSize] <String>] [-Enabled] [-WarningAction <Action
Preference>] [-WarningVariable <String>] [<CommonParameters>]
Set-NaVolAutosize [-Name] <String> [-Controller <NaController>] [[-MaximumSi
ze] <String>] [[-IncrementSize] <String>] [-Disabled] [-WarningAction <Actio
nPreference>] [-WarningVariable <String>] [<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 (ByValue, ByPropertyName)
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
-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 ki
lobytes 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 ki
lobytes 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 false
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
-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.Volume.VolumeInfo
NOTES
Category: volume
API: volume-autosize-set
-------------- Example 1 --------------
C:\PS>Set-NaVolAutosize vol2 -Enabled -MaximumSize 200g -IncrementSize 1g
Enable autosize on volume 'vol2'.
-------------- Example 2 --------------
C:\PS>Get-NaVol | Set-NaVolAutosize -Enabled
Enable autosize on all volumes on the current controller.
RELATED LINKS
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|