List storage details with esxcfg-scsidevs in ESXi SSH console

Here is a list of storage commands examples that display storage details on an ESXi host. I recently had to move some storage disks around and received just the vml. numbers without LUN IDs or naa. numbers. This helped me locate the LUNs in question.

~ # esxcfg-scsidevs -c
Device UID                            Device Type      Console Device                                            Size      Multipath PluginDisplay Name
eui.66913148bbd7eca0                  Direct-Access    /vmfs/devices/disks/eui.66913148bbd7eca0                  30720MB   NMP     ROCKET iSCSI Disk (eui.66913148bbd7eca0)
eui.8fe507e24b7e373d                  Direct-Access    /vmfs/devices/disks/eui.8fe507e24b7e373d                  1024MB    NMP     ROCKET iSCSI Disk (eui.8fe507e24b7e373d)
eui.b4e05e201b87a330                  Direct-Access    /vmfs/devices/disks/eui.b4e05e201b87a330                  23552MB   NMP     ROCKET iSCSI Disk (eui.b4e05e201b87a330)
mpx.vmhba0:C0:T0:L0                   CD-ROM           /vmfs/devices/cdrom/mpx.vmhba0:C0:T0:L0                   0MB       NMP     Local NECVMWar CD-ROM (mpx.vmhba0:C0:T0:L0)
naa.6000c29e91c23d9ce0e653ffb986d740  Direct-Access    /vmfs/devices/disks/naa.6000c29e91c23d9ce0e653ffb986d740  40960MB   NMP     VMware Serial Attached SCSI Disk 

~ # esxcfg-scsidevs -a
vmhba0  ata_piix          link-n/a  ide.vmhba0                              (0:0:7.1) Intel Corporation PIIX4 for 430TX/440BX/MX IDE Controller
vmhba1  mptsas            link-n/a  sas.50050569e4a3d731                    (0:3:0.0) LSI Logic / Symbios Logic LSI1068
vmhba32 ata_piix          link-n/a  ide.vmhba32                             (0:0:7.1) Intel Corporation PIIX4 for 430TX/440BX/MX IDE Controller
vmhba33 iscsi_vmk         online    iqn.1998-01.com.vmware:esxi551-18009524 iSCSI Software Adapter


~ # esxcfg-scsidevs -m
eui.b4e05e201b87a330:1                         /vmfs/devices/disks/eui.b4e05e201b87a330:1                 52d956d4-b133051a-d590-0050560327e2  0  23GB VMFS5
eui.66913148bbd7eca0:1                         /vmfs/devices/disks/eui.66913148bbd7eca0:1                 52d7fb3e-a7bbcad4-17df-0050560327e2  0  30GB VMFS-3
naa.6000c29e91c23d9ce0e653ffb986d740:3         /vmfs/devices/disks/naa.6000c29e91c23d9ce0e653ffb986d740:3 52cb074d-9fce1ee7-74e3-005056032d64  0  datastore1 (2)


~ # esxcfg-scsidevs -A
vmhba0      mpx.vmhba0:C0:T0:L0
vmhba1      naa.6000c29e91c23d9ce0e653ffb986d740
vmhba33     eui.b4e05e201b87a330
vmhba33     eui.66913148bbd7eca0
vmhba33     eui.8fe507e24b7e373d

~ # vmkiscsi-tool -l -T vmhba33
------ Target [iqn.2008-08.com.starwindsoftware:dc.mylab.local-30gblun] info ------
NAME                              : iqn.2008-08.com.starwindsoftware:dc.mylab.local-30gblun
ALIAS                             :
DISCOVERY METHOD FLAGS            : 8
SEND TARGETS DISCOVERY SETTABLE   : 0
SEND TARGETS DISCOVERY ENABLED    : 0
Portal 0                          : 10.10.10.10:3260

-------------------------------------------

------ Target [iqn.2008-08.com.starwindsoftware:dc.mylab.local-30gbvmfs5] info ------
NAME                              : iqn.2008-08.com.starwindsoftware:dc.mylab.local-30gbvmfs5
ALIAS                             :
DISCOVERY METHOD FLAGS            : 8
SEND TARGETS DISCOVERY SETTABLE   : 0
SEND TARGETS DISCOVERY ENABLED    : 0
Portal 0                          : 10.10.10.10:3260


~ # lspci
0000:00:00.0 Bridge: Intel Corporation Virtual Machine Chipset
0000:02:00.0 Network controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [vmnic0]
0000:02:01.0 Network controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [vmnic1]
0000:02:02.0 Network controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [vmnic2]
0000:03:00.0 Mass storage controller: LSI LSI1068 [vmhba1]

#lsusb


~ # esxcli storage core device list
eui.b4e05e201b87a330
   Display Name: ROCKET iSCSI Disk (eui.b4e05e201b87a330)
   Has Settable Display Name: true
   Size: 23552
   Device Type: Direct-Access
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/eui.b4e05e201b87a330
   Vendor: ROCKET
   Model: IBVolume
   Revision: 0001
   SCSI Level: 6
   Is Pseudo: false
   Status: degraded
   Is RDM Capable: true
   Is Local: false
   Is Removable: false
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Queue Full Sample Size: 0
   Queue Full Threshold: 0
   Thin Provisioning Status: unknown
   Attached Filters:
   VAAI Status: unsupported
   Other UIDs: vml.0100000000423445303545323031423837413333004942566f6c75
   Is Local SAS Device: false
   Is Boot USB Device: false
   No of outstanding IOs with competing worlds: 32

List naa and vmfs display names
esxcfg-scsidevs --vmfs | grep -i naa.343432araf3443f43aaf44a
This entry was posted in VMware and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *