Volume Snapshots
Creating snapshots for volumes is done using the
New-Pfa2VolumeSnapshot cmdlet.
PS >New-Pfa2VolumeSnapshots -Array $FlashArray -SourceNames 'SDKv2-sample-1','SDKv2-sample-2' -Suffix 'EXAMPLE'
To create a new volume from a snapshot, we must first create a Reference Object for the snapshot. The first output from
Get-Pfa2VolumeSnapshot is trimmed to only show the necessary objects.
PS >Get-Pfa2VolumeSnapshot -Name 'SDKv2-sample-1.EXAMPLE'
Id : 47f25a22-fda3-f163-c695-94a6c984b0af
Name : SDKv2-sample-1.EXAMPLE
...
PS >$src = New-Pfa2ReferenceObject -Id 47f25a22-fda3-f163-c695-94a6c984b0af -Name SDKv2-sample-1.EXAMPLE
Now, we will create a new volume from the snapshot using
New-Pfa2Volume.
PS >New-Pfa2Volume -Name SDKv2-volumecopy -Source $src
Protection Group Snapshots
A Protection Group snapshot creates a point-in-time snapshot of the contents of a Protection Group. The
New-Pfa2ProtectionGroupSnapshot cmdlet is used.
PS >New-Pfa2ProtectionGroupSnapshot -Array $FlashArray -SourceNames DEMO-PGGROUP -Suffix TEST
Name : demo-pggroup.TEST
Created : 8/1/2020 3:13:39 PM
Destroyed : False
Pod : class FixedReference {
Id:
Name:
}
Source : class FixedReference {
Id:
Name: demo-pggroup
}
Space :
Suffix : TEST
TimeRemaining :