Find SAN disks

This topic contains 3 replies, has 3 voices, and was last updated by  kishor 3 weeks ago.

  • Author
    Posts
  • #80603

    kishor
    Participant

    Hi,
    I need to get SAN disk details on server and if no external LUN's attached the script should output message 'No external disks found'
    I have tried WMI class win32_volume with filter for drivetype eq '3' but it just gets me local disk.

    Thanks,
    Kishor

  • #80617

    Sam Boutros
    Participant

    try Get-SBDisk function of the SB-Tools module (requires PS 5, Install-Module SB-Tools -Force). It outputs DriveLetterorMountPoint property. Are SAN disks mounted to a folder or a drive letter?
    How are SAN volumes connected? iSCSI?

  • #80638

    Win32_Volume will just show you SAN disks already formated, mounted as a volume. You might wanna query Win32_DiskDrive: https://msdn.microsoft.com/en-us/library/aa394132(v=vs.85).aspx

  • #80669

    kishor
    Participant

    Thank you Leandro, Win32_Diskdrive and filtered 'model' like 'powerpath', it has solved my problem.

    Thanks,
    Kishor

You must be logged in to reply to this topic.