From: Cameron, S. <Ste...@hp...> - 2007-05-01 19:49:34
|
Hi Bruce (et al). I would like to link to http://smartmontools.sourceforge.net/ from the web page I maintain at http://cciss.sourceforge.net/ =20 if that's alright with you. I was thinking of putting something like what's below there, under the cciss utilities section, based on my understanding of = smartmontools. And, if anything below doesn't seem right to you, let me know. -- steve ------------------ * (Current as of May 1, 2007) smartmontools -- a couple programs to "control and monitor storage = systems using the Self-Monitoring, Analysis and Reporting Technology = System (SMART) built into most modern ATA and SCSI hard disks." (This = "SMART" has no etymological relationship with the "Smart" in = "Smartarray", incidentally.) Note: this tool will tell you nothing about the status of logical = drives on your Smartarray, nor is it intended to. It tells you about = physical disks. You will need to get the smartmontools out of CVS rather than = using the one on the web page. I have seen the one on the web page miss = drives, while the one currently in CVS finds them. It will not work with = SATA drives behind a Smartarray controller but seems to work with SCSI = and SAS drives behind a Smartarray controller. To get and build smartmontools from CVS, this worked for me: $ cvs -z3 = -d:pserver:ano...@sm...:/cvsroot/smartmont= ools co -l sm5 $ cd sm5 $ ./autogen.sh $ ./configure $ make To get physical drive information via smartctl, you must specify = the disk device as well as the controller: $ smartctl -d cciss,0 -a /dev/cciss/c0d0 where "cciss,0" is specifying the first physical disk, and = "/dev/cciss/c0d0" is specifying the controller. It is not obvious how to come up with the physical disk specifier = that smartctl wants for a given physical disk. You can use a for loop to scan for disks, for example: $ for x in `seq 0 255`=20 > do > echo $x > smartctl -d cciss,$x -a /dev/cciss/c0d0 > done > output.txt After doing that once, you can dig through output.txt to figure = out which numbers correspond to disks, and thereafter use smartctl with = just those numbers instead of scanning every number between 0 and 255 = inclusive, which is a bit slow.=20 ------------------ |