id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 800,"""can't get bus number"" issue with MegaRAID on ESXi",Simone Giordano,,"There is an issue using smartctl on ESXi to monitor disks behind the RAID. Example: {{{ smartctl -a /dev/disks/naa.6c81f660d2aeab001fd4153f9ba416c5 -d sat+megaraid,12 Smartctl open device: /dev/disks/naa.6c81f660d2aeab001fd4153f9ba416c5 [megaraid_disk_12] [SAT] failed: can't get bus number }}} I've compiled a static version of smartctl from updated sources (6.6 r4384) and the issue still exists. Because ESXi is different than a normal Linux distribution, I've tried to patch os_linux.cpp forcing linux_megaraid_device::open to use the right device: {{{ if ((m_fd = ::open(""/dev/megaraid_sas_ioctl"", O_RDWR)) >= 0) { m_hba = 1; // ? pt_cmd = &linux_megaraid_device::megasas_cmd; set_fd(m_fd); return true; } }}} After this patch, the device is opened but I get ""INQUIRY FAILED"" On ESXi the MegaCli utility works right, so I think there are no issues with driver or ioctl support. I can do any test that you want or apply a particular patch. It's important for monitor disks behind RAID because the SMART indicators reported by controller are very poor. Thank you. Simone ",enhancement,closed,major,,all,6.5,wontfix,megaraid esxi linux,Bruno da Costa Deepali