Re: Where is the output of scheduled short-test written?
Christian Franke <[email protected]>
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
alessandro macuz wrote: > Hi folks, > > I configured /etc/smartd.conf in this way > > /dev/sda -s (S/../.././02|L/../../7/04) -m [email protected] > <mailto:[email protected]> -M exec /usr/share/smartmontools/smartd-runner > /dev/sda -s (S/../.././11) -m [email protected] > <mailto:[email protected]> -M exec /usr/share/smartmontools/smartd-runner > /dev/sda -s (S/../.././14) -m [email protected] > <mailto:[email protected]> -M exec /usr/share/smartmontools/smartd-runner > /dev/sda -s (S/../.././17) -m [email protected] > <mailto:[email protected]> -M exec /usr/share/smartmontools/smartd-runner > Please do not use the same device in multiple configuration lines. Correct: /dev/sda -s (S/../.././(02|1[147])|L/../../7/04) ... Try "smartd -q showtests" to check the effect of the regex. > May 12 02:24:01 grpnas02 smartd[20229]: Device: /dev/sdi, starting > scheduled Short Self-Test. > [...] > During next (see -i option) check cycle, smartd should log something like: ..., previous self-test completed without error ..., previous self-test was aborted by the host ..., previous self-test completed with error (read test element) > > I need to parse the output to check for errors especially for > reallocation of sectors. > Where to find them? Failing self-tests should have two effects: - a "completed with error" LOG_CRIT message, see above - a "Self-Test Log error count increased ..." LOG_CRIT message AND warning email. > BTW is there any guidelines for evaluating thresholds beyond which to > be concerned about sector reallocation? I have hard time in tracking > the temperature of disks and I think reallocation of sectors maybe a > more precise indicators of incoming failures. > Add "-R 5! -r 5!" directives to smartd conf lines to receive LOG_CRIT messages AND warning emails if sector reallocation occurred. See smartd.conf man page for details. Thanks, Christian ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs