|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcSnapshotReserve
NAME
Set-NcSnapshotReserve
SYNOPSIS
Sets the size of the indicated volume's snapshot reserve to the specified pe
rcentage.
SYNTAX
Set-NcSnapshotReserve [-Volume] <String> [-Percentage] <Int32> [-VserverCont
ext <String>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Sets the size of the indicated volume's snapshot reserve to the specified pe
rcentage. Reserve space can be used only by snapshots and not by the active
file system.
PARAMETERS
-Volume <String>
Name of volume on which to set the snapshot space reserve.
Required? true
Position? 1
Default value
Accept pipeline input? true (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
-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 clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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.C.Types.Volume.VolumeAttributes
NOTES
Category: snapshot
API: snapshot-set-reserve
Family: vserver
-------------- Example 1 --------------
C:\PS>Set-NcSnapshotReserve vol2 10
Set the snapshot reserve on volume 'vol2' to 10%.
State : online
TotalSize : 11811160064
Used : 5
Available : 11219546112
Dedupe : False
FilesUsed : 96
FilesTotal : 499987
Aggregate : aggr1
Vserver : vserver1
NcController : 10.61.172.155
Name : vol2
-------------- Example 2 --------------
C:\PS>Get-NcVol | Set-NcSnapshotReserve -Percentage 5 | select Name
Set the snapshot reserve on all volumes to 5%.
Name
----
bigvol
georgeVol1
vol_test
vol1
vol2
vol2clone
vserver1vol0
RELATED LINKS
Get-NcSnapshotReserve
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|