<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FlexGroup Volumes using New-NcVol vs. Invoke-NcSSh in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133870#M5450</link>
    <description>&lt;P&gt;I used the below code and didn't have any issues setting the same values you did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# create the FlexGroup
New-NcVol -VserverContext $svm -Name $volName -FlexGroupVolume -AggregateList $aggrList -AggregateMultiplier 2 -Size $volSize

# disable snapshots
Update-NcVol -Query @{ vserver = $svm; name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = "none" } }
&lt;BR /&gt;$vol = Get-NcVol -Vserver $svm -Name $volName&lt;BR /&gt;
# remove any snaps which have been created
$vol | Get-NcSnapshot | Remove-NcSnapshot -Confirm:$false

# turn on dedupe
$vol | Enable-NcSis | Start-NcSis

# disable fractional reserve
$vol | Set-NcVolOption -Key fractional_reserve -Value 0

# disable snap reserve
$vol | Set-NcSnapshotReserve -Percentage 0

# thin provision the volume
$vol | Set-NcVolOption -Key guarantee -Value none&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uesd the examples from &lt;A href="http://practical-admin.com/blog/netapp-powershell-toolkit-101-volume-snapshots/" target="_self"&gt;here&lt;/A&gt; and &lt;A href="http://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for setting volume options. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FlexGroup is created asynchronously, I wonder if perhaps the options are attempting to be set via PowerShell before the constituent volumes have been created, whereas with SSH the session doesn't terminate until the volumes have been created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps set a delay or loop with a test condition for the FlexGroup being successfully completed? &amp;nbsp;It took about 15 seconds on my system to create the FlexGroup...the output of "New-NcVol" with the FlexGroupVolume option is a job. &amp;nbsp;You should be able to use that job ID to query the controller and check for completion using the Get-NcJob and Get-NcJobHistory cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 14:45:23 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-08-23T14:45:23Z</dc:date>
    <item>
      <title>FlexGroup Volumes using New-NcVol vs. Invoke-NcSSh</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133862#M5449</link>
      <description>&lt;P&gt;I have come across something interesting when creating FlexGroup volumes. When I create the FlexGroup volume using the New-NcVol command, I get errors when trying to set particulars on the volume. I error I get is "Modification not permitted. Volime is mixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use Invoke-NcSsh to create the FlexGroup volume I can set particulars on the volume without any errors. Examples of the code are below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I execute the code below I get the following erros when using the "Set" commandlets.&lt;/P&gt;&lt;P&gt;Set-NcVolOption : Modification not permitted. Volume is mixed.&lt;/P&gt;&lt;P&gt;Set-NcSnapshotReserve : Modification not permitted. Volume is mixed&lt;/P&gt;&lt;PRE&gt;Write-Host (Get-Date).ToLongTimeString() "...Attempting to create " -NoNewline; Write-Host $x.dataSet1 -ForegroundColor 'Yellow' -NoNewline; Write-Host " Volume: " -NoNewline; Write-Host $newVol -ForegroundColor Green
&lt;BR /&gt;#Invoke-NcSsh "volume create -vserver $nfsvserver -volume $newvol -aggr-list $aggr1name,$aggr2name -aggr-list-multiplier 2 -size "$x.volumesize" -junction-path $jpath" -ErrorVariable volError
New-NcVol -Name $newvol -FlexGroupVolume -AggregateList $aggr1name,$aggr2name -VserverContext $nfsVserver -AggregateMultiplier 2 -JunctionPath $jpath -Size $x.volumeSize -ErrorVariable volError -ErrorAction stop
Invoke-NcSsh volume modify -vserver $nfsVserver -volume $newvol -snapshot-policy none 
Invoke-NcSsh snapshot delete -vserver $nfsVserver -volume $newvol -snapshot *
Invoke-NcSSH volume efficiency on -vserver $nfsVserver -volume $newvol
Set-NcVolOption $newVol -VserverContext $nfsVserver fractional_reserve 0 -ErrorVariable +nDeployError					#sets volume fractional reserve
Set-NcSnapshotReserve $newvol -VserverContext $nfsvserver 0
Set-NcVolOption $newvol guarantee none -VserverContext $nfsvserver -ErrorVariable +nDeployError&lt;/PRE&gt;&lt;P&gt;If I comment out the "New-NcVol" line and execute the script with the "Invoke-NcSsh" line above, there are no issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this behavior odd, and perhaps I missed something in the commandlet's abilities.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:41:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133862#M5449</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2025-06-04T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: FlexGroup Volumes using New-NcVol vs. Invoke-NcSSh</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133870#M5450</link>
      <description>&lt;P&gt;I used the below code and didn't have any issues setting the same values you did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# create the FlexGroup
New-NcVol -VserverContext $svm -Name $volName -FlexGroupVolume -AggregateList $aggrList -AggregateMultiplier 2 -Size $volSize

# disable snapshots
Update-NcVol -Query @{ vserver = $svm; name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = "none" } }
&lt;BR /&gt;$vol = Get-NcVol -Vserver $svm -Name $volName&lt;BR /&gt;
# remove any snaps which have been created
$vol | Get-NcSnapshot | Remove-NcSnapshot -Confirm:$false

# turn on dedupe
$vol | Enable-NcSis | Start-NcSis

# disable fractional reserve
$vol | Set-NcVolOption -Key fractional_reserve -Value 0

# disable snap reserve
$vol | Set-NcSnapshotReserve -Percentage 0

# thin provision the volume
$vol | Set-NcVolOption -Key guarantee -Value none&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uesd the examples from &lt;A href="http://practical-admin.com/blog/netapp-powershell-toolkit-101-volume-snapshots/" target="_self"&gt;here&lt;/A&gt; and &lt;A href="http://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for setting volume options. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FlexGroup is created asynchronously, I wonder if perhaps the options are attempting to be set via PowerShell before the constituent volumes have been created, whereas with SSH the session doesn't terminate until the volumes have been created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps set a delay or loop with a test condition for the FlexGroup being successfully completed? &amp;nbsp;It took about 15 seconds on my system to create the FlexGroup...the output of "New-NcVol" with the FlexGroupVolume option is a job. &amp;nbsp;You should be able to use that job ID to query the controller and check for completion using the Get-NcJob and Get-NcJobHistory cmdlets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:45:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133870#M5450</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-08-23T14:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: FlexGroup Volumes using New-NcVol vs. Invoke-NcSSh</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133871#M5451</link>
      <description>&lt;P&gt;Thanks for the information. I did seem to notice running the command seperatley after the fact the error was not present. You could be correct about the delay. I just would &amp;nbsp;have thought if that was the case it would say the volume does not exsist, but I guess it could still be in the process of creating. I will probably stick with the Invoke only because I need to encrypt the FlexGroups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what the error means though? "Not allowed the volume is mixed?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:54:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133871#M5451</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2017-08-23T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: FlexGroup Volumes using New-NcVol vs. Invoke-NcSSh</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133873#M5452</link>
      <description>&lt;P&gt;No idea what it actually means, but I'd wager it's a generic one when the volumes are in an inconsistent state, e.g. some have been created, some have not. &amp;nbsp;Do you have the "errno" associated with the failure? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:06:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/FlexGroup-Volumes-using-New-NcVol-vs-Invoke-NcSSh/m-p/133873#M5452</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-08-23T15:06:28Z</dc:date>
    </item>
  </channel>
</rss>

