Data ONTAP® PowerShell Toolkit

Cmdlet: Restore-NaSnapshotVolume


NAME
Restore-NaSnapshotVolume

SYNOPSIS
Reverts a volume to a specified snapshot.

SYNTAX
Restore-NaSnapshotVolume [-Volume] <String> [-SnapName] <String> [-Controlle
r <NaController>] [-WarningAction <ActionPreference>] [-WarningVariable <Str
ing>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Reverts a volume to a specified snapshot. The volume must be online and mus
t not be a mirror. If reverting the root volume, the filer will be rebooted
. Non-root volumes do not require a reboot. A volume cannot have both a vol
ume snaprestore and a single-file snaprestore executing simultaneously. Mult
iple single-file snaprestores can be in progress simultaneously. After the
reversion, the volume is in the same state as it was when the snapshot was t
aken.


PARAMETERS
-Volume <String>
Name of volume to restore.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-SnapName <String>
Name of snapshot to restore from.

Required? true
Position? 2
Default value
Accept pipeline input? true (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

-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

-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.Volume.VolumeInfo


NOTES


Category: snapshot
API: snapshot-restore-volume

-------------- Example 1 --------------

C:\PS>Restore-NaSnapshotVolume vol2 goldenBackup


Restore volume 'vol2' from snapshot 'goldenBackup'.


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 : 16219762688
SizeTotal : 194347270144
SizeUsed : 178127503360
SnaplockType :
SpaceReserve : volume
SpaceReserveEnabled : False
State : online
Type : flex
Uuid : e91dc1f8-ab4f-11dd-867f-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True



RELATED LINKS
Restore-NaSnapshotFile
New-NaSnapshot
Get-NaSnapshot







 Data ONTAP® PowerShell Toolkit