|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaSnapshotSchedule
NAME
Set-NaSnapshotSchedule
SYNOPSIS
Set the snapshot schedule on a specified volume.
SYNTAX
Set-NaSnapshotSchedule [-Name] <String> [-Weeks <Int32>] [-Days <Int32>] [-H
ours <Int32>] [-Minutes <Int32>] [-WhichHours <String>] [-WhichMinutes <Stri
ng>] [-Controller <NaController>] [-WarningAction <ActionPreference>] [-Warn
ingVariable <String>] [<CommonParameters>]
Set-NaSnapshotSchedule [-Name] <String> [-Schedule] <Hashtable> [-Controller
<NaController>] [-WarningAction <ActionPreference>] [-WarningVariable <Stri
ng>] [<CommonParameters>]
DESCRIPTION
Set the snapshot schedule on a specified volume. If number of snapshots requ
ested is greater than ONTAP allows, then ESNAPTOOMANY will be returned with
the maximum allow snapshots in the reason.
PARAMETERS
-Name <String>
Name of the volume name where the snapshots are located.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Weeks <Int32>
Number of snapshots taken weekly to keep on line. If not provided, the
number of weekly snapshots is left at the previous value.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Days <Int32>
Number of snapshots taken daily to keep on line. If not provided, the n
umber of daily snapshots is left at the previous value.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Hours <Int32>
Number of snapshots taken hourly to keep on line. If not provided, the
number of weekly snapshots is left at the previous value.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Minutes <Int32>
Number of snapshots taken minutely to keep on line. If not provided, th
e number of minutely snapshots is left at the previous value.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhichHours <String>
Comma-separated list of the hours at which the hourly snapshots are crea
ted. If hours is 0, WhichHours is ignored and cleared.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhichMinutes <String>
Comma-separated list of the minutes at which the minutely snapshots are
created. If minutes is 0, WhichMinutes is ignored and cleared.
Required? false
Position? named
Default value
Accept pipeline input? false
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
-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
-Schedule <Hashtable>
Hashtable of schedule entries, as returned by Get-NaSnapshotSchedule.
Required? true
Position? 2
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: snapshot
API: snapshot-set-schedule
-------------- Example 1 --------------
C:\PS>Set-NaSnapshotSchedule vol10 -Weeks 4 -Hours 2 -WhichHours "0,12" | Ge
t-NaSnapshotSchedule
Set the snapshot schedule for volume 'vol10' and then retrieve/print that sc
hedule.
Name Value
---- -----
Weeks 4
WhichHours 0,12
WhichMinutes
Hours 2
Minutes 0
Days 0
-------------- Example 2 --------------
C:\PS>Get-NaVol | Set-NaSnapshotSchedule -Schedule ( Get-NaSnapshotSchedule
vol10 )
Copy the snapshot schedule from volume 'vol10' to all volumes.
ChecksumStyle : block
CloneChildren :
CloneParent :
ContainingAggregate : aggr0
DiskCount : 3
FilesTotal : 3727020
FilesUsed : 7981
IsChecksumEnabled : True
IsInconsistent : False
IsSnaplock : False
IsUnrecoverable : False
MirrorStatus : unmirrored
Name : vol0
PercentageUsed : 4
PlexCount : 1
Plexes : {/aggr0/plex0}
QuotaInit : 0
RaidSize : 16
RaidStatus : raid_dp,sis
Reserve : 0
ReserveRequired : 0
ReserveUsed : 0
Sis : NetApp.Ontapi.Filer.Volume.Sis
SizeAvailable : 89296416768
SizeTotal : 92559769600
SizeUsed : 3263344640
SnaplockType :
SpaceReserve : volume
SpaceReserveEnabled : True
State : online
Type : flex
Uuid : 336bf130-6a41-11dd-8d86-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True
ChecksumStyle : block
CloneChildren : {vol10}
CloneParent :
ContainingAggregate : aggr1
DiskCount : 8
FilesTotal : 6381567
FilesUsed : 186
IsChecksumEnabled : True
IsInconsistent : False
IsSnaplock : False
IsUnrecoverable : False
MirrorStatus : unmirrored
Name : vol2
PercentageUsed : 92
PlexCount : 1
Plexes : {/aggr1/plex0}
QuotaInit : 0
RaidSize : 16
RaidStatus : raid_dp,sis
Reserve : 10110803968
ReserveRequired : 10110803968
ReserveUsed : 0
Sis : NetApp.Ontapi.Filer.Volume.Sis
SizeAvailable : 16219586560
SizeTotal : 194347270144
SizeUsed : 178127683584
SnaplockType :
SpaceReserve : volume
SpaceReserveEnabled : False
State : online
Type : flex
Uuid : e91dc1f8-ab4f-11dd-867f-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True
ChecksumStyle : block
CloneChildren :
CloneParent : {clone_vol2clone.2}
ContainingAggregate : aggr1
DiskCount : 8
FilesTotal : 9999998
FilesUsed : 185
IsChecksumEnabled : True
IsInconsistent : False
IsSnaplock : False
IsUnrecoverable : False
MirrorStatus : unmirrored
Name : vol10
PercentageUsed : 64
PlexCount : 1
Plexes : {/aggr1/plex0}
QuotaInit : 0
RaidSize : 16
RaidStatus : raid_dp,sis
Reserve : 10110799872
ReserveRequired : 10110799872
ReserveUsed : 0
Sis : NetApp.Ontapi.Filer.Volume.Sis
SizeAvailable : 70695542784
SizeTotal : 198073786368
SizeUsed : 127378243584
SnaplockType :
SpaceReserve : none
SpaceReserveEnabled : True
State : online
Type : flex
Uuid : f7b5f966-11b4-11df-9caa-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True
RELATED LINKS
Get-NaSnapshotSchedule
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|