Thursday, September 18, 2014

Esx commands for checking storage and performance



We can use below commands to see the lun status from Esxi Host . Please ssh to the Host and execute the command  replace “eui.a35390c4baa8698f6c9ce900179b8b4c”  with the Lun which you want check . 


1.     CLI what a given datastore’s working path(canonical name) and SATP/PSP plugins, the following command would do:

esxcli storage nmp device list | grep -A 7 eui.a35390c4baa8698f6c9ce900179b8b4c

2.       How to find SCSI reservation conflict ,Lun Read and Lun write status .  Please see the Failed read and Write operation values.

esxcli storage core device stats get | grep –A 14 eui.a35390c4baa8698f6c9ce900179b8b4c

3.       find out  how many commands/blocks were read/written for a given path


esxcli storage core path stats get | grep –A 10  eui.a35390c4baa8698f6c9ce900179b8b4c


4.     To get path list and lun number

esxcfg-mpath –l eui.a35390c4baa8698f6c9ce900179b8b4c

5.     List All the Luns and  all the paths

esxcfg-mpath –b

6.       To obtain LUN multipathing information from the ESXi host command line:

esxcli storage core path list
7.       To see HBA device status of Vmware host
esxcfg-scsidevs –a

8.       To view the CPU, Memory, Network , disk , Luns and VM performance of a Vmware host . Please execute “esxtop” and use each below switch to change the view .
esxtop
c – CPU
 m – memory
 n – network
 d – disk adapter (in our example screenshots below, it’ll be vmhba33/37 depending on which one represents the sw/iscsi adapter)
 u – all LUNs
 v – VMs virtual machine disks (VMDKs)

q – quit the top utility