none
Get storage details

    General discussion

  • Hello,

    Is there a way to fetch the storage details from a HyperV node using module in powershell.

    I mean, I want to fetch the details of all the iSCSI LUN's added in a HyperV cluster.

    Please help.

    Thursday, October 03, 2013 12:22 PM

All replies

  • Hi Ethan,

    Exactly what information would you like to see? Which details? Disk size, disk number etc.

    If you want to see which disks are presented to host, you can use:

    Get-Disk

    But if you need to get Clustered Disks, then you can use:

    Get-ClusterResource | Where ResourceType -eq 'Physical Disk'

    If you let me know which info you want to see, then i can write a script for you.

    Yusuf.




    PowerShell MVP http://www.yusufozturk.info

    Thursday, October 03, 2013 1:15 PM
  • Not really a Hyper-V question, but we'll give it a go.

    Yes, PowerShell provides a number of commands for retrieving information about disks.  Have you issued the help disk command within PowerShell and looked at the various Get- cmdlets that are available for various types of disks?  What are you not finding?  Maybe if you gave us a little bit more information about what you are looking for and what you have tried, we could give a little more assistance.

    There are also a couple PowerShell forums (http://social.technet.microsoft.com/Forums/en-US/home?forum=winserverpowershell or http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG) if you are having issues with getting your PowerShell to work.  Of course, they are there to help you with issues you are having in getting the script to work - they do not write scripts for you.


    .:|:.:|:. tim

    Thursday, October 03, 2013 1:22 PM
  • Hello

    Yes I have checked and it does not provide me with any info related to Storage.

    I have mounted a iSCSI storage and I want to fetch details of this storage such as available space, total space etc.

    Friday, October 04, 2013 10:06 AM