From: Marc M. <mar...@me...> - 2012-12-02 01:34:57
|
Howdy, I have a server with a bunch of drives, and I'd like one of them, sdf, not to have a full smart test, because it tends to make the drive unresponsive to requests. Ideally, I'd like this: # sdf ST3120022A long test messes up the machine by making the boot raid unusable /dev/sdf -d removable -n standby -m root -R 194 -R 231 -I 9 -W 5 -a -o on -S on -s (S/../.././01) -M exec /usr/share/smartmontools/smartd-runner DEVICESCAN -d removable -n standby -m root -R 194 -R 231 -I 9 -W 5 -a -o on -S on -s (S/../.././02|L/../../6/03) -M exec /usr/share/smartmontools/smartd-runner i.e. remove the long run from sdf. Unfortunately, as the man page hints, it just causes sdf to be picked up twice and sdf still gets the long test. How can I stop this? smartd[25469]: smartd 5.41 2011-06-09 r3365 [x86_64-linux-3.5.3-amd64-preempt-noide-20120903] (local buil smartd[25469]: Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net smartd[25469]: Opened configuration file /etc/smartd.conf smartd[25469]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices smartd[25469]: Device: /dev/sdf, type changed from 'scsi' to 'sat' smartd[25469]: Device: /dev/sdf [SAT], opened smartd[25469]: Device: /dev/sdf [SAT], ST3120022A, S/N:5JT2A7TP, FW:3.04, 120 GB smartd[25469]: Device: /dev/sdf [SAT], found in smartd database. smartd[25469]: Device: /dev/sdf [SAT], enabled SMART Attribute Autosave. smartd[25469]: Device: /dev/sdf [SAT], enabled SMART Automatic Offline Testing. smartd[25469]: Device: /dev/sdf [SAT], is SMART capable. Adding to "monitor" list. smartd[25469]: Device: /dev/sdf [SAT], state read from /var/lib/smartmontools/smartd.ST3120022A-5JT2A7TP. smartd[25469]: Device: /dev/sda, type changed from 'scsi' to 'sat' (...) smartd[25469]: Device: /dev/sde [SAT], state read from /var/lib/smartmontools/smartd.WDC_WD20EARS_00MVWB0-WD_WCAZA9630431.ata.state smartd[25469]: Device: /dev/sdf, type changed from 'scsi' to 'sat' smartd[25469]: Device: /dev/sdf [SAT], opened smartd[25469]: Device: /dev/sdf [SAT], ST3120022A, S/N:5JT2A7TP, FW:3.04, 120 GB smartd[25469]: Device: /dev/sdf [SAT], found in smartd database. smartd[25469]: Device: /dev/sdf [SAT], enabled SMART Attribute Autosave. smartd[25469]: Device: /dev/sdf [SAT], enabled SMART Automatic Offline Testing. smartd[25469]: Device: /dev/sdf [SAT], is SMART capable. Adding to "monitor" list. smartd[25469]: Device: /dev/sdf [SAT], state read from /var/lib/smartmontools/smartd.ST3120022A-5JT2A7TP. I really don't want to have to list all my other drives instead of using DEVICESCAN. It there is nothing, I was thinking about somethign horrible like this: # Try a hack: start a short test on sdf at 03:00 in the hope that the devicescan long scan will get cancelled because the short test is still running (but for that it would have to be running long enough) /dev/sdf -d removable -n standby -m root -R 194 -R 231 -I 9 -W 5 -a -o on -S on -s (S/../../6/03) -M exec /usr/share/smartmontools/smartd-runner Is there anything else you'd recommend? Thanks, Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |