Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

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[]>] [-WhatIf] [-Confirm] [<CommonPa
rameters>]


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 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

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







 Data ONTAP® PowerShell Toolkit