<?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: Command to change the cDOt volume State from online to offline in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100782#M17841</link>
    <description>&lt;P&gt;Hi Adai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know about the offline before for removing a volume there is a workflow called :&amp;nbsp; Remove a Clustered Data ONTAP VOlume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which uses the following Commands : Split Volume Clone -&amp;gt; Wait for Volume Clone split -&amp;gt; Remove Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2015 16:00:30 GMT</pubDate>
    <dc:creator>trentino123</dc:creator>
    <dc:date>2015-02-18T16:00:30Z</dc:date>
    <item>
      <title>Command to change the cDOt volume State from online to offline</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100780#M17839</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am looking for a cdot volume modify command or volume set command that would change the state of the volume from online to offline.&lt;/P&gt;&lt;P&gt;I looked at out of box commands, &amp;nbsp;both modify volume and rename volume and both doesnt do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The state change is part of a Destory volume workflow, where we would like to rename the volume as volname_upfordecomissioning and then change the volume state to offline.&lt;/P&gt;&lt;P&gt;Then as a batch process destory all volume with _upfordecomissioning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone already written a cdot command to change to volume state from online to offline ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:03:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100780#M17839</guid>
      <dc:creator>Adai</dc:creator>
      <dc:date>2025-06-05T05:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Command to change the cDOt volume State from online to offline</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100782#M17841</link>
      <description>&lt;P&gt;Hi Adai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know about the offline before for removing a volume there is a workflow called :&amp;nbsp; Remove a Clustered Data ONTAP VOlume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which uses the following Commands : Split Volume Clone -&amp;gt; Wait for Volume Clone split -&amp;gt; Remove Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 16:00:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100782#M17841</guid>
      <dc:creator>trentino123</dc:creator>
      <dc:date>2015-02-18T16:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Command to change the cDOt volume State from online to offline</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100787#M17842</link>
      <description>&lt;P&gt;Hello Adai,&lt;/P&gt;&lt;P&gt;You can use part of certified commmand "remove volume", only concerning checking, dismounting and offlining and create a new one that could be have this look:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;param (&lt;BR /&gt;[parameter(Mandatory=$true, HelpMessage="Cluster IP address")]&lt;BR /&gt;[string]$Cluster,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Volume name")]&lt;BR /&gt;[string]$VolumeName,&lt;/P&gt;&lt;P&gt;[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]&lt;BR /&gt;[string]$VserverName&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;# connect to cluster&lt;BR /&gt;Connect-WfaCluster $Cluster&lt;BR /&gt;$lastConnectedCluster = $Cluster&lt;/P&gt;&lt;P&gt;$clusterInfo = Get-NcCluster&lt;/P&gt;&lt;P&gt;# Testing volume existence. As this command doesn't throw exception if&lt;BR /&gt;# ErrorAction is 'Stop' and the volume isn't found. So, an explicit check.&lt;BR /&gt;$vol = Get-NcVol -Name $VolumeName -Vserver $VserverName&lt;BR /&gt;if(!$vol)&lt;BR /&gt;{&lt;BR /&gt;throw "Volume '$VolumeName' not found on Storage Virtual Machine '$VserverName'"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Dismount the volume from the Storage Virtual Machine namespace if it is not the Storage Virtual Machine root volume&lt;BR /&gt;if (!$vol.VolumeStateAttributes.IsVserverRoot)&lt;BR /&gt;{&lt;BR /&gt;Get-WFALogger -Info -message $("Dismounting volume: " + $VolumeName + " on Storage Virtual Machine " + $VserverName)&lt;BR /&gt;Dismount-NcVol -Name $VolumeName -VserverContext $VserverName -Force -ErrorAction Stop&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$volState = (Get-NcVol -Name $VolumeName -VserverContext $VserverName).State&lt;/P&gt;&lt;P&gt;if($volState -ne "offline")&lt;BR /&gt;{&lt;BR /&gt;Get-WFALogger -Info -message $("Offlining volume: " + $VolumeName + " on Storage Virtual Machine " + $VserverName)&lt;BR /&gt;Set-NcVol -Name $VolumeName -VserverContext $VserverName -Offline -ErrorAction Stop&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 16:59:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100787#M17842</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2015-02-18T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Command to change the cDOt volume State from online to offline</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100864#M17857</link>
      <description>&lt;P&gt;Hi Francois,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your base code. I used it as a base and built the cDOT Volume Offline Comand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it is for the convenience of all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 21:10:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Command-to-change-the-cDOt-volume-State-from-online-to-offline/m-p/100864#M17857</guid>
      <dc:creator>Adai</dc:creator>
      <dc:date>2015-02-19T21:10:32Z</dc:date>
    </item>
  </channel>
</rss>

