|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaSnapshotReserve
NAME
Set-NaSnapshotReserve
SYNOPSIS
Sets the size of the snapshot reserve to the specified percentage on the ind
icated volume or aggregate.
SYNTAX
Set-NaSnapshotReserve [-TargetName] <String> [-Percentage] <Int32> [-TargetT
ype <String>] [-Aggregate] [-Controller <NaController>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Sets the size of the snapshot reserve to the specified percentage on the ind
icated volume or aggregate. Reserve space can be used only by snapshots and
not by the active file system.
PARAMETERS
-TargetName <String>
Name of volume or aggregate on which to set the snapshot space reserve.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Percentage <Int32>
Percentage to set. Range [0-100].
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-TargetType <String>
Specify the type of snapshot target, either "volume" or "aggregate".
Required? false
Position? named
Default value volume
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Aggregate
DEPRECATED. Specify to set reserved space for aggregate(s). By default
, this cmdlet works on volumes.
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
-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.Volume.VolumeInfo
NOTES
Category: snapshot
API: snapshot-set-reserve, system-cli
Privilege: security-priv-admin, cli-snap-reserve
-------------- Example 1 --------------
C:\PS>Set-NaSnapshotReserve vol0 10 | Get-NaSnapshotReserve
Set the snapshot reserve on volume 'vol0' to 10% and print the result.
Name Percentage Size
---- ---------- ----
vol0 10% 10.7 GB
RELATED LINKS
Get-NaSnapshotReserve
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|