Thursday, April 28, 2016

Commands to keep handy when checking storage (and to show datastore with naa IDs)

I needed a command to show me the naa IDs with the datastore names. This is the best I've found so far:

esxcfg-scsidevs -m

~ # esxcfg-scsidevs -m
naa.JACKPOT1:1 /vmfs/devices/disks/naa.something1:1 ESXi_GUID  0  Datastore1
naa.JACKPOT2:1 /vmfs/devices/disks/naa.something2:1 ESXi_GUID  0  Datastore2

I found this particular command to have other very good options as well. These are other three options or commands that show a lot of info on your storage devices:

esxcfg-scsidevs -l

esxcfg-mpath --list

esxcli storage core device list

This last one is particularly useful if you need to determine which naa ID corresponds to an iSCSI target name!

No comments:

Post a Comment