Bitbull Tech Notes - home of free minds ...

Check SMART Disk Status in ESXi (6.5)

Hi there

I use a ESXi 6.5 with cheap Hardware for home lab.
Disks are not in RAID so it is nice to know if disks are healthy

I found a info in VMware portal, here is a simple while loop to check all disks

 

esxcli storage core device list | grep '  Display Name:' | cut -d'(' -f2 | cut -d')' -f1 | while read DISK
do 
   echo "********** $DISK **********"
   esxcli storage core device smart get -d $DISK
done

 

Some example output:

[root@esxi2:~] esxcli storage core device list | grep '  Display Name:'
   Display Name: Local ATA Disk (t10.ATA_____Corsair_Force_LS_SSD____________________14518168000101670094)
   Display Name: Local ATA Disk (t10.ATA_____WDC_WD20EARX2D00PASB0_________________________WD2DWCAZA9976744)
   Display Name: Local ATA Disk (t10.ATA_____SanDisk_SSD_i100_16GB___________________i00000000000000000000000000000000000000)
[root@esxi2:~] esxcli storage core device list | grep '  Display Name:' | cut -d'(' -f2 | cut -d')' -f1 | while read DISK
> do echo "********** $DISK **********" ; esxcli storage core device smart get -d $DISK
> done
********** t10.ATA_____Corsair_Force_LS_SSD____________________14518168000101670094 **********
Parameter                     Value  Threshold  Worst
----------------------------  -----  ---------  -----
Health Status                 OK     N/A        N/A  
Media Wearout Indicator       100    0          100  
Write Error Count             100    0          100  
Read Error Count              N/A    N/A        N/A  
Power-on Hours                100    0          100  
Power Cycle Count             100    0          100  
Reallocated Sector Count      100    50         100  
Raw Read Error Rate           100    50         100  
Drive Temperature             70     30         70   
Driver Rated Max Temperature  N/A    N/A        N/A  
Write Sectors TOT Count       100    0          100  
Read Sectors TOT Count        100    0          100  
Initial Bad Block Count       N/A    N/A        N/A  
********** t10.ATA_____WDC_WD20EARX2D00PASB0_________________________WD2DWCAZA9976744 **********
Parameter                     Value  Threshold  Worst
----------------------------  -----  ---------  -----
Health Status                 OK     N/A        N/A  
Media Wearout Indicator       N/A    N/A        N/A  
Write Error Count             0      0          N/A  
Read Error Count              0      51         N/A  
Power-on Hours                94     0          94   
Power Cycle Count             247    0          N/A  
Reallocated Sector Count      0      140        N/A  
Raw Read Error Rate           0      51         N/A  
Drive Temperature             33     0          N/A  
Driver Rated Max Temperature  N/A    N/A        N/A  
Write Sectors TOT Count       N/A    N/A        N/A  
Read Sectors TOT Count        N/A    N/A        N/A  
Initial Bad Block Count       N/A    N/A        N/A  
********** t10.ATA_____SanDisk_SSD_i100_16GB___________________i00000000000000000000000000000000000000 **********
Parameter                     Value  Threshold  Worst
----------------------------  -----  ---------  -----
Health Status                 OK     N/A        N/A  
Media Wearout Indicator       N/A    N/A        N/A  
Write Error Count             N/A    N/A        N/A  
Read Error Count              N/A    N/A        N/A  
Power-on Hours                100    0          100  
Power Cycle Count             100    0          100  
Reallocated Sector Count      100    0          100  
Raw Read Error Rate           N/A    N/A        N/A  
Drive Temperature             N/A    N/A        N/A  
Driver Rated Max Temperature  N/A    N/A        N/A  
Write Sectors TOT Count       100    0          100  
Read Sectors TOT Count        100    0          100  
Initial Bad Block Count       N/A    N/A        N/A  

 

 

Home