Subscribe

Need some help with a WFA workflow that creates a CIFS volume with snapmirror XDP replication.

[ Edited ]

running WFA 4.0, and looking at the release notes of 4.1, it appears it is not possibe to create a type XDP i.e. snapmirror extended_data_protection. I have managed to create a copy of the existing snapmirror command and am able to generate the type XDP. However, it fails on the invoke-expression of the modified powershell command. The errors shown below (note that I logged the contents of the $expression). Can anyone put me on what I have missed in creating the modified snapmirror command to include the extended_data_protection type? Be forewarned, I am not a powershell expert, but I think this has something to do with how Invoke-Expression is passinig parameters to the netapp powershell cmdlets. I also installed the latest (4.4) PSTK, running PS 4.. Thanks in advance.

08:50:13.571 INFO  [Create new CIFS volume and XDP snapmirror relationship - TEST] ***** Workflow Execution Started *****
08:50:13.587 INFO  [Create volume] ### Command 'Create volume' in 'POWER_SHELL' ###
08:50:34.853 INFO  [Create volume] Get-WfaCredentials -Host seantap01
08:50:34.869 INFO  [Create volume] Credentials successfully provided for 'seantap01'
08:50:34.900 INFO  [Create volume] Connect-Controller -Type CLUSTER -Name seantap01 -Credential System.Management.Automation.PSCredential -Vserver
08:50:34.978 INFO  [Create volume] Connect-NcController (with credentials) -Name seantap01 -Timeout 60000 -ErrorAction Stop -SSLVersion TLSv1.2
08:50:37.729 INFO  [Create volume] Connected to cluster node
08:50:37.932 INFO  [Create volume] Creating a new volume: New-NcVol -ErrorAction Stop -name XDPTEST1  -SpaceReserve none -State online -Size 1000m -VserverContext seasvm01 -Type rw -SnapshotReserve 0 -Aggregate n01_aggr1_sas900 -SecurityStyle ntfs -JunctionPath /XDPTEST1
08:50:41.416 INFO  [Create volume] FlexVol 'XDPTEST1' has been create successfully.
08:50:41.463 INFO  [Create volume] Command completed, took 27876 milliseconds
08:50:41.557 INFO  [Create CIFS share] ### Command 'Create CIFS share' in 'POWER_SHELL' ###
08:51:02.574 INFO  [Create CIFS share] Creating CIFS share: XDPTEST1at path: /XDPTEST1
08:51:02.699 INFO  [Create CIFS share] Using cached cluster connection
08:51:03.261 INFO  [Create CIFS share] Command completed, took 21704 milliseconds
08:51:03.340 INFO  [Create volume] ### Command 'Create volume' in 'POWER_SHELL' ###
08:51:24.419 INFO  [Create volume] Get-WfaCredentials -Host dalntap01
08:51:24.435 INFO  [Create volume] Credentials successfully provided for 'dalntap01'
08:51:24.450 INFO  [Create volume] Connect-Controller -Type CLUSTER -Name dalntap01 -Credential System.Management.Automation.PSCredential -Vserver
08:51:24.497 INFO  [Create volume] Connect-NcController (with credentials) -Name dalntap01 -Timeout 60000 -ErrorAction Stop -SSLVersion TLSv1.2
08:51:27.278 INFO  [Create volume] Connected to cluster node
08:51:27.825 INFO  [Create volume] Creating a new volume: New-NcVol -ErrorAction Stop -name XDPTEST1_mirror  -SpaceReserve none -State online -Size 1000m -VserverContext dalsvs01 -Type dp -SnapshotReserve 0 -Aggregate aggr6_DALNTAP01_02_SATA -SecurityStyle ntfs -JunctionPath $null
08:51:29.700 INFO  [Create volume] FlexVol 'XDPTEST1_mirror' has been create successfully.
08:51:29.747 INFO  [Create volume] Command completed, took 26407 milliseconds
08:51:29.810 INFO  [Create SnapMirror - copy] ### Command 'Create SnapMirror - copy' in 'POWER_SHELL' ###
08:51:50.655 INFO  [Create SnapMirror - copy] Using cached cluster connection
08:51:50.686 INFO  [Create SnapMirror - copy] Creating SnapMirror relationship between SEANTAP01:seasvm01/XDPTEST1 and DALNTAP01:dalsvs01/XDPTEST1_mirror
08:51:50.717 INFO  [Create SnapMirror - copy] Expression Contents passed from PS - New-NcSnapmirror  -ErrorAction Stop -SourceCluster SEANTAP01 -DestinationCluster DALNTAP01 -SourceVserver seasvm01 -DestinationVserver dalsvs01 -SourceVolume XDPTEST1 -DestinationVolume XDPTEST1_mirror -Type xdp -Schedule '5min' -Policy 'mirror-vault-compress'
08:51:51.702 ERROR  [Create SnapMirror - copy] Invalid value specified for "relationship-type" element within "snapmirror-create": "xdp".
08:51:51.780 ERROR  [Create SnapMirror - copy] Command failed for Workflow 'Create new CIFS volume and XDP snapmirror relationship - TEST' with error : Invalid value specified for "relationship-type" element within "snapmirror-create": "xdp".
08:51:51.780 INFO  [Create SnapMirror - copy] ***** Workflow Execution Failed *****