<?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: Issue with Get-NADisk in PowerShell Toolkit 3.2 in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103118#M4234</link>
    <description>&lt;P&gt;Yes I do work with Rajesh. We thought it will be best to mention the resolution here, for anyone who may have the same question in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for bringing this to our notice. &amp;nbsp;Please continue helping us improve the Data ONTAP PowerShell Toolkit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aparajita&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2015 12:06:51 GMT</pubDate>
    <dc:creator>Aparajita</dc:creator>
    <dc:date>2015-04-13T12:06:51Z</dc:date>
    <item>
      <title>Issue with Get-NADisk in PowerShell Toolkit 3.2</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/97803#M4065</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just came across a possible issue with Get-NADisk from PowerShell Toolkit Version 3.2. I think the property Status and RaidType do not contain correct data. As a result, I cannot determine spare disks with Get-NADisk anymore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1:&lt;BR /&gt;PowerShell Toolkit 3.0.1&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0d.03.11| fl name,status,raidstate,raidtype&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0d.03.11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; : spare&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RaidState : spare&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RaidType&amp;nbsp; : pending&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerShell Toolkit 3.2&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0d.03.11| fl name,status,raidstate,raidtype&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0d.03.11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; : present&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RaidState :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RaidType&amp;nbsp; : present&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example 2:&lt;BR /&gt;PowerShell Toolkit 3.0.1&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk | Group-Object status -NoElement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Count Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;----- ----&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 dparity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 35 partner&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 29 data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 14 spare&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 parity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerShell Toolkit 3.2&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk | Group-Object status -NoElement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Count Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;----- ----&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 49 present&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 29 data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 dparity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 parity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Needless to mention that all commands were executed on the same host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion for a reasonable workaround?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:23:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/97803#M4065</guid>
      <dc:creator>begonetapp</dc:creator>
      <dc:date>2025-06-05T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Get-NADisk in PowerShell Toolkit 3.2</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/98764#M4093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same problem. This is the best compromise I came up with. As both filer spares and partner disks were showing as PRESENT instead of SPARE and PARTNER, the solution for me was to only capture disks from one filer at a time. That way, any PRESENT disks have to be spare disks. I dd this by combining the Get-NaDiskOwner and Get-NaDisk commands and exploiting the common denominator of the two commands, which is the disk name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of it in action, which connects to a filer called netapp01 and uses the IF command to only display the PRESENT (spare) disks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Int64]$Unit=1GB&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$Filer="netapp01"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Connect-NaController $Filer&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$disks=Get-NaDisk&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$diskowner = Get-NaDiskOwner | ? {$_.owner -eq $Filer} | sort Name&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Foreach ($dsk in $diskowner) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$thisdsk = $disks | ? {$_.Name -eq $dsk.Name}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ($thisdsk.Status -eq "present") {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Name&amp;nbsp;&amp;nbsp; =" $dsk.Name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Aggr&amp;nbsp;&amp;nbsp; =" $thisdsk.Aggregate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Serial =" $dsk.SerialNo&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Pool&amp;nbsp;&amp;nbsp; =" $dsk.Pool&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Shelf&amp;nbsp; =" $thisdsk.Shelf&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Bay&amp;nbsp;&amp;nbsp;&amp;nbsp; =" $thisdsk.Bay&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $UsedSpace = [System.Math]::Floor($thisdsk.UsedSpace/$unit)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Used Space&amp;nbsp; ="&amp;nbsp; $UsedSpace&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $PhysSpace = [System.Math]::Floor($thisdsk.PhysSpace/$unit)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Phys Space&amp;nbsp; =" $PhysSpace&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk RPM&amp;nbsp;&amp;nbsp;&amp;nbsp; =" $thisdsk.Rpm&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk FW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =" $thisdsk.FirmwareRevision&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Model&amp;nbsp; =" $thisdsk.Model&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host "Disk Status =" $thisdsk.Status&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write-host " "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2014 08:13:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/98764#M4093</guid>
      <dc:creator>NEILHOLMES</dc:creator>
      <dc:date>2014-12-30T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Get-NADisk in PowerShell Toolkit 3.2</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103115#M4232</link>
      <description>&lt;P&gt;This is probably a little late, but wanted to mention there is an easier alternative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a Switch Parameter 'Old', which can be specified in later versions of Data ONTAP PowerShell Toolkit to produce the exact same result as version 3.0.1 (example usage below).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\aparajir\Perforce\aparajir_BTC_pstk_1\main&amp;gt; Get-NaDisk 0c.22 -Old | fl name,status,raidstate,raidtype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0c.22&lt;/P&gt;&lt;P&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; : parity&lt;/P&gt;&lt;P&gt;RaidState : present&lt;/P&gt;&lt;P&gt;RaidType&amp;nbsp; : parity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was introduced because we upgraded Get-NaDisk to take advantage of newer Data ONTAP APIs (which return more information about the disks), but unfortunately the new APIs do not return the RaidState. So as a compromise this parameter was introduced to allow users to force use of the old API in case they are unhappy with the new output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Aparajita&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 11:33:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103115#M4232</guid>
      <dc:creator>Aparajita</dc:creator>
      <dc:date>2015-04-13T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Get-NADisk in PowerShell Toolkit 3.2</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103116#M4233</link>
      <description>&lt;P&gt;Thanks for the update.&amp;nbsp;It perfectly solves the problem.&amp;nbsp;I guess you work together with Rajesh? I sent a message to him as he announced the latest version of the toolkit and I noticed that the assumed "bug" was still there.&amp;nbsp;Rajesh also explained that this behavior is not a bug but can be circumvented by using the -old switch when using older Ontap versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 11:55:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103116#M4233</guid>
      <dc:creator>begonetapp</dc:creator>
      <dc:date>2015-04-13T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Get-NADisk in PowerShell Toolkit 3.2</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103118#M4234</link>
      <description>&lt;P&gt;Yes I do work with Rajesh. We thought it will be best to mention the resolution here, for anyone who may have the same question in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for bringing this to our notice. &amp;nbsp;Please continue helping us improve the Data ONTAP PowerShell Toolkit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aparajita&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 12:06:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Issue-with-Get-NADisk-in-PowerShell-Toolkit-3-2/m-p/103118#M4234</guid>
      <dc:creator>Aparajita</dc:creator>
      <dc:date>2015-04-13T12:06:51Z</dc:date>
    </item>
  </channel>
</rss>

