smartmontools on SATA
Posted by coldtobi | 13 Nov, 2007, 17:31I had an annoying problem with my smartmontools. The startup script kept telling me, that it fails upon starting. Well, this was annoying but not critical.
But now that there is a new smartmontools package upstream, this discovered a bug: After installation, smartmontools barks in its postinst script as it fails to start. (See bugreport)
Well, this was definitely are reason to investigate why it fails in the first place. As maybe someone other has the same problem, I want to document this:
Issuing a manual smartctl -d /dev/sda gave me the hint:
smartd version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Opened configuration file /etc/smartd.conf
Drive: DEVICESCAN, implied '-a' Directive on line 22 of file /etc/smartd.conf
Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
glob(3) found no matches for pattern /dev/hd[a-t]
glob(3) aborted matching pattern /dev/discs/disc*
Problem creating device name scan list
Device: /dev/sda, opened
Device /dev/sda: ATA disk detected behind SAT layer
Try adding '-d sat' to the device line in the smartd.conf file.
For example: '/dev/sda -a -d sat'
Unable to register SCSI device /dev/sda at line 22 of file /etc/smartd.conf
Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...
So I checked /etc/default/smartmontools and added the -a -d sat to the enable_smart variable. Unfortutatly, that won't work, so the place to edit is etc/smartd.conf:
Here, I disabled the "automatic" devicescan mode and manually added my drive:
#DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sda -a -d sat
And then it works like a charm...
Linux / Debian | Comments (0) | Trackbacks (0)
Related Articles:
- Thecus N2100: Testing a kernel prior flashing
- Installing Debian on the Thecus N2100 -- PART 4 -- Installing Debian (2)
- Installing Debian on the Thecus N2100 -- PART 3 -- Installing Debian
- Installing Debian on the Thecus N2100 -- PART 1 -- Preparation for install
- Thecus N2100: Testing a new kernel. Or the Installer. Or Revert. Or Recover.