Using Protection Groups with VSS Snapshots

A common question I get about the Pure Storage Volume Shadow Copy Service (VSS) provider is; “How can I replicate VSS snapshots?” Our VSS provider takes FlashProtect snapshots of individual volumes but those volumes cannot be part of a Protection Group. The VSS provider does know about Protection Group and does not natively provide the ability […]


A common question I get about the Pure Storage Volume Shadow Copy Service (VSS) provider is; “How can I replicate VSS snapshots?” Our VSS provider takes FlashProtect snapshots of individual volumes but those volumes cannot be part of a Protection Group. The VSS provider does know about Protection Group and does not natively provide the ability to take an application-consistent snapshot and replicate to one or more other FlashArrays.

To address this limitation in the current implementation of our VSS provider (version 1.1) I have created the below sample script to perform the following:

  1. Create VSS snapshots using the PowerShell Toolkit.
  2. Retrieve the application-consistent snapshots (Eg. ‘*VSS*’) from the target volume.
  3. Create a new volume from the VSS snapshot.
  4. Create a new Protection Group and set the members and target FlashArray for replication.
  5. Grant the Protection Group on the target array to Allow replication.
  6. Replicate now on the source array.

This basic workflow provides the ability to replication application-consistent snapshots as soon as they are taken. I will be adding this to the PowerShell Toolkit as a wrapper to several PowerShell SDK cmdlets. In the below example there isn’t any clean-up of the work because I leave that up to the implementer using the sample script. I will add a clean-up on the cmdlet which will reverse the work and treat this as a dynamic operation.

Requirements:

  1. Install the latest VSS Provider (1.1) on the host(s). Download the installer from https://github.com/PureStorage-Connect/VSS-Provider.
  2. Configure the VSS Provider using PureProviderConfig.
    • Example: C:Program FilesPure StorageVSSProviderPureProviderConfig add –url https://myarray –username pureuser –password <password> MyArray
  3. Install the PowerShell SDK (1.7.4.0) on the host(s). See instructions.
  4. Install the PowerShell Toolkit (3.3.224.0) on the host(s). See for instructions.

Sample PowerShell script: