How to find out the LUN id of a Windows disk

Attaching multiple LUNs to a Windows host and later trying to figure out which LUN is which can be a drag. I found out that using the “details disk” command in diskpart can help you finding backup the right LUN:

 

diskpart

list disk

select disk 19 (or whatever drive you want to see the details of)

detail disk

HITACHI DF600F  Multi-Path Disk Device
Disk ID: 00000000
Type   : FIBRE
Status : Online
Path   : 0
Target : 2
LUN ID : 7
Location Path : UNAVAILABLE
Current Read-only State : Yes
Read-only  : Yes
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

There are no volumes.

 

So in this particular case the Host LUN id was 7. This should help you along a bit 🙂

Would you like to comment on this post?