AnsweredAssumed Answered

Possible Bug in Powershell Module: No Duplicate Snapshot Names

Question asked by Chuck Colht on Sep 18, 2014
Latest reply on Oct 7, 2014 by Chuck Colht

I'm trying to create snapshots on a set of volumes, all with the same snap name. This is part of a dr script that clones replica volumes using a snapshot created at the primary site. Through the web UI, I can use the same snapshot name on any volumes but through the Powershell module, only one instance of a snap name is allowed.

Here's my one-liner and result:

 

> Get-NSVolume | ?{$_.name -match 'cloneme'} | %{New-NSSnapshot -name testing -Volume  $_.name}

Name Volume LocalCreationTime ScheduleName compressed(GB) Ratio Online Writable

---- ------ ----------------- ------------ -------------- ----- ------ --------

testing XXXXX1-cloneme 9/18/2014 7:41 AM 0        False    False

New-NSSnapshot : Snap testing is already in use

At line:1 char:61

+ Get-NSVolume | ?{$_.name -match 'cloneme'} | %{New-NSSnapshot -name ...

+ ~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-NSSnapshot

 

There are two volumes that match. Only the first snapshot is created.

 

 

I've tested this against v1.4 and v2.0. Also tried the latest module from Github and used Powershell v3 and v4.

 

I would like to trigger a volume collection replication but the New-NSSnapshot cmdlet doesn't offer that option. Feature request?

Outcomes