Take away the '-o on' and see if that fixes things. I think that libata
does not pass this through correctly. I wrote to Jeff Garzik about this
some time ago but never got a reply.
On Wed, 3 May 2006, Francois Marier wrote:
On Wed, May 03, 2006 at 10:38:02AM +0200, Guido Guenther wrote:
O.k. I just double checked this on on a SATA system here and it works
without problems. Doug suggested you might be missing "-d ata" for your
scsi discs but this doesn't seem to be the case according to the bug
report. Could you doublecheck that you don't have DEVICESCAN in your
smartd.conf? Could you post smartd's syslog output please?
Here's my /etc/default/smartmontools:
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment
# list of devices you want to explicitly enable S.M.A.R.T. for
# not needed if the device is monitored by smartd
enable_smart="/dev/sda /dev/sdb"
# uncomment to start smartd on system startup
start_smartd=yes
# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval 1800"
My /etc/smartd.conf (all the rest is commented out):
#DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner
# First (primary) ATA/IDE hard disk. Monitor all attributes, enable
# automatic online data collection, automatic Attribute autosave, and
# start a short self-test every day between 2-3am, and a long self test
# Saturdays between 3-4am.
/dev/sda -d ata -a -o on -S on -s (S/../.././02|L/../../6/03)
/dev/sdb -d ata -a -o on -S on -s (S/../.././02|L/../../6/03)
Here's what I get in /var/log/syslog when I restart smartmontools:
smartd[8064]: smartd received signal 15: Terminated
smartd[8064]: smartd is exiting (exit status 0)
smartd[14569]: smartd version 5.36 [x86_64-unknown-linux-gnu] Copyright (C)
2002-6 Bruce Allen
smartd[14569]: Home page is http://smartmontools.sourceforge.net/
smartd[14569]: Opened configuration file /etc/smartd.conf
smartd[14569]: Configuration file /etc/smartd.conf parsed.
smartd[14569]: Device: /dev/sda, opened
smartd[14569]: Device: /dev/sda, found in smartd database.
kernel: ata3: PIO error
kernel: ata3: status=0x50 { DriveReady SeekComplete }
smartd[14569]: Device: /dev/sda, could not enable SMART Attribute Autosave.
kernel: ata3: PIO error
kernel: ata3: status=0x50 { DriveReady SeekComplete }
smartd[14569]: Device: /dev/sda, enable SMART Automatic Offline Testing failed.
smartd[14569]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
smartd[14569]: Device: /dev/sdb, opened
smartd[14569]: Device: /dev/sdb, found in smartd database.
kernel: ata4: PIO error
kernel: ata4: status=0x50 { DriveReady SeekComplete }
smartd[14569]: Device: /dev/sdb, could not enable SMART Attribute Autosave.
kernel: ata4: PIO error
kernel: ata4: status=0x50 { DriveReady SeekComplete }
smartd[14569]: Device: /dev/sdb, enable SMART Automatic Offline Testing failed.
smartd[14569]: Device: /dev/sdb, is SMART capable. Adding to "monitor" list.
smartd[14569]: Monitoring 2 ATA and 0 SCSI devices
smartd[14571]: smartd has fork()ed into background mode. New PID=14571.
smartd[14571]: file /var/run/smartd.pid written containing PID 14571
Francois
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]