<?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 Cluster Shared Volume to LUN correlation? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65981#M3296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there way with the NetApp Powershell toolkit to determine which CSV is on which LUN?&amp;nbsp; If not, can it be done from the other end (i.e. the Cluster Volume)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 07:02:27 GMT</pubDate>
    <dc:creator>ginolard2010</dc:creator>
    <dc:date>2025-06-05T07:02:27Z</dc:date>
    <item>
      <title>Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65981#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there way with the NetApp Powershell toolkit to determine which CSV is on which LUN?&amp;nbsp; If not, can it be done from the other end (i.e. the Cluster Volume)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:02:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65981#M3296</guid>
      <dc:creator>ginolard2010</dc:creator>
      <dc:date>2025-06-05T07:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65985#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you're using Hyper-V, since that's the principal application of CSV.&amp;nbsp; Try the Toolkit's Get-NaHyperV cmdlet.&amp;nbsp; It is obviously VM-centric, but it will display all of the relevant LUN and CSV info you seek.&amp;nbsp; I've also logged an enhancement suggestion to have the Toolkit return host-to-controller storage correlation info irrespective of Hyper-V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 18:27:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65985#M3297</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2011-01-11T18:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65990#M3298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, that's very useful.&amp;nbsp; Just what I needed.&amp;nbsp; It would be useful if it was possible to run it against other Hyper-V hosts other than the local one though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 08:48:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65990#M3298</guid>
      <dc:creator>ginolard2010</dc:creator>
      <dc:date>2011-01-12T08:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65995#M3299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, been playing with it some more and have noticed some odd behaviour.&amp;nbsp; I have installed the DataOnTAP module on two cluster nodes.&amp;nbsp; On one node, the Get-NaHyperv cmdlet produces the correct results.&amp;nbsp; It lists the VMs running and the storage info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then installed the modules on another node and ran Get-NaHyperV again.&amp;nbsp; On this node there are about 5 or 6 VMs but the cmdlet lists nothing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Ah, I think I understand what's happening.&amp;nbsp; The cmdlet will only enumerate the VMs IF the CSV they are stored on is currently mounted on the same node on which they are running.&amp;nbsp; This is a pretty big limitation when it comes to running it in a cluster as the CSVs and VMs move around the cluster all the time.&amp;nbsp; Any chance this can be made "cluster-aware" in a future release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 10:42:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/65995#M3299</guid>
      <dc:creator>ginolard2010</dc:creator>
      <dc:date>2011-01-12T10:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/66000#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right.&amp;nbsp; The cmdlet only lists VMs for which we can find NetApp storage on the local node.&amp;nbsp; You can use the -All switch to list all VMs irrespective of their storage.&amp;nbsp; I have logged an enhancement request to investigate adding more cluster awareness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:44:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/66000#M3300</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2011-01-12T15:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Shared Volume to LUN correlation?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/66005#M3301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar issue in my environment with LUNs that service SQL servers.&amp;nbsp; My short-term solution was to create a function that accepts the lun path (which in my environment includes the name of the cluster to which it is assigned) and returns the drive letter and a description of the volume.&amp;nbsp; Then, I extracted the hostname from the volume name.&amp;nbsp; WIth the volume name and the drive letter, I could then use WMI to gather information about the LUN from the OS perspective.&amp;nbsp; Eventually, I hope to update my script to gather information dynamically from the DSM CLI on each server, but that enhancement is still quite a ways in the future.&amp;nbsp; Below is some sample code.&amp;nbsp; I hope you find it useful.&amp;nbsp; (The original code interfaced with MS-Excel to create a spreadsheet of data, but I have removed the Excel code for clarity.&amp;nbsp; I may have created a few bugs along the way.&amp;nbsp; Sorry.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;function Get-DriveInfo ([string] $lunPath) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch ($lunPath) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/vol/dbcluster1_systemdb/qtree1/dbcluster1_systemdb"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { return ("R", "Cluster1 SQL System Databases") }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/vol/cluster1_quorum/quorum"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { return ("Q", "Cluster1 Witness Disk") }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { return ("Unknown", "Unknown") }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;function Get-Disks ([string] $hostname) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (get-wmiobject win32_logicaldisk -filter "drivetype=3" -computername $hostname -credential $windowsCredential | sort-object DeviceID)&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;function Get-DiskIndex ([System.Array] $diskList, [string] $letter) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($diskList -ne $null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $index=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($disk in $disks) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (($disk.DeviceID.ToLower()) -eq ($letter+":").tolower()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $index&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $index++&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;foreach ($netappName in $listOfNetAppNames) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $currentNetapp = Connect-NaController -name $netappName -credential $netappCredential&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $listOfLuns&amp;nbsp;&amp;nbsp;&amp;nbsp; = Get-NaLun -controller $currentNetapp | Sort-Object -Property "Path"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($listOfLuns -ne $null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($lun in $listOfLuns) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $hostname&amp;nbsp;&amp;nbsp;&amp;nbsp; = $lun.path.split("/_")[2]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $driveLetter = Get-DriveInfo ($lun.path))[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $disks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Get-Disks ($hostname)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($disks -ne $null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $diskIndex = Get-DiskIndex $disks ($driveLetter) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $diskSpaceAllocated&amp;nbsp; = $disks[$diskindex].size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Drive Space Allocated&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $diskSpaceAvailable&amp;nbsp; = $disks[$diskindex].FreeSpace&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Drive Space Available&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="FONT-FAMILY: "&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 19:08:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Cluster-Shared-Volume-to-LUN-correlation/m-p/66005#M3301</guid>
      <dc:creator>paleon</dc:creator>
      <dc:date>2011-01-31T19:08:15Z</dc:date>
    </item>
  </channel>
</rss>

