Creating Volumes from Protection Group Sources (Part 2)

InĀ Part 1 of creating volumes from Protection Group (PGroup) sources I discussed how to get a specific snapshot to use for a disaster recovery (DR) restore. In the case of having a more automated DR workflow retrieving the latest snapshot from the PGroup is a key requirement.

The below PowerShell script example removes the manual task of picking a specific PGroup snapshot like in Part 1.

Note: You will notice that the Get-PfaAllVolumeSnapshots does not return a PSObject and the “created” field is returned as a string. Using [DateTime] I convert the string to a datetime and then compare that to get snapshots >8hrs.

Output:

Thanks,
Barkz

 

One comment

Add Comment

Required fields are marked *. Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">