VMware Cloud Community
solid38
Contributor
Contributor

S.M.A.R.T test on ESXI 6.5 - CANNOT open device

Hi,

I want to launch a S.M.A.R.T test on my harddrive disk.

I found this code :

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

(source : Bitbull Tech Notes - Check SMART Disk Status in ESXi (6.5)

Nevertheless, when I launch this code, I have this error :

[root@localhost:~] 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 $DI

SK

> done

********** naa.600508b1001c413760f7cf004a8de5ab **********

Error getting Smart Parameters: CANNOT open device

********** naa.600508b1001c2b63c3e5216dbe1ba7dc **********

Error getting Smart Parameters: CANNOT open device

********** mpx.vmhba32:C0:T0:L0 **********

Error getting Smart Parameters: CANNOT open device

********** naa.600508b1001c71fc01427153a69ab9c7 **********

Error getting Smart Parameters: CANNOT open device

********** naa.600508b1001cacb17e7e074c24ad122d **********

Error getting Smart Parameters: CANNOT open device

Do you have an idea of problem ?

Thanks !

0 Kudos
1 Reply
daphnissov
Immortal
Immortal

If you're getting that error message it means the device does not support queries to SMART data. Not all devices will, especially virtual disks.

0 Kudos