Operating System - Linux
1833328 Members
2790 Online
110051 Solutions
New Discussion

Using smartctl to check drives in ProLiant DL380 G6.

 
ArtBaldini
Occasional Contributor

Using smartctl to check drives in ProLiant DL380 G6.

I am trying to use smartctl to monitor my hard drives on 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 -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:
cciss,0 /dev/cciss/c1d0
cciss,1 /dev/cciss/c1d0
cciss,2 /dev/cciss/c1d0
cciss,3 /dev/cciss/c1d0

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:

SMARTD_DEVICE="/dev/cciss/c1d0 [cciss_disk_00]"
SMARTD_DEVICETYPE="cciss,0"
SMARTD_DEVICESTRING="/dev/cciss/c1d0 [cciss_disk_00]"

So, is there a way to determine the physical disk from the smartctl info available?
2 REPLIES 2
wobbe
Respected Contributor

Re: Using smartctl to check drives in ProLiant DL380 G6.

Mmm, I've been down that road :-)

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1404978

but since you have a recent server you can probably install a HP support pack. This will give you all the monitoring you need.
ArtBaldini
Occasional Contributor

Re: Using smartctl to check drives in ProLiant DL380 G6.

Wobbe,
Thanks for the reply. What in the PSP are you referring to? I did not want to install the entire PSP, I have installed specific RPMs and drivers. I did not want HP system management homepage because we do not run web servers on these servers for security reasons. I was looking for something that is command line driven.

I have thought of getting the serial number from SMART, and using hpacucli to get the physical location, but I have had several occurrences of hpacucli hanging and don'w want to use it anywhere I automate anything.