I am trying to use smartctl to monitor my hard drives attached to a CCISS controller in my HP Proliant DL380s. I would like to know is if I have a smart error, how do I determine which physical drive is giving the error?
The reason I ask this is because the way to access the disks behind the CCISS device is:
/usr/sbin/smartctl -i -d cciss,0 /dev/cciss/c0d0, and I create my smart.cfg file with:
/dev/cciss/c0d0 -d cciss,0 -S on -o off -H -l error -l selftest -m <nomailer> -M test -M exec /usr/sbin/smartd_logger.
I expected the "N" in cciss,N to correlate to the bay the disk is in, but that is not the case. If I have disks in bays 1, 3, 5, and 6, smartctl enumerates the ports to them as:
It "compresses" the bay numbering as such as the first disk I find is 0, second is 1, and third is 2... It does not take into account if somebody has open drive bays.
I have tried using the variables available from smartd, but this is what I get from them:
So, is there a way to determine the physical disk from the smartctl info available?