Hi all,
I m trying to use smartd to run periodic SMART tests on the SCSI drives for the Linux blades.
I setup smartd so it logs information to /var/log/smartd.log
Here is what /etc/smartd.conf looks like:
# To schedule a long Self-Test everyday at 3 am, 9 am, 2 pm and 6 pm
/dev/sda -a -s L/../.././(03|09|14|18)
/dev/sdb -a -s L/../.././(03|09|14|18)
I see messages in the log file that indicate when the test starts. My question is:
Is it possible to have smartd report when the self test actually finished?
I am trying to run the test multiple times during the day to test how long it takes
during varying degrees of disk usage.
Here is the /var/log/smartd.log output:
Aug 3 02:55:03 vre smartd[28148]: smartd version 5.37 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Aug 3 02:55:03 vre smartd[28148]: Home page is http://smartmontools.sourceforge.net/
Aug 3 02:55:03 vre smartd[28148]: Opened configuration file /etc/smartd.conf
Aug 3 02:55:03 vre smartd[28148]: Configuration file /etc/smartd.conf parsed.
Aug 3 02:55:03 vre smartd[28148]: Device: /dev/sda, opened
Aug 3 02:55:03 vre smartd[28148]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Aug 3 02:55:03 vre smartd[28148]: Device: /dev/sdb, opened
Aug 3 02:55:03 vre smartd[28148]: Device: /dev/sdb, is SMART capable. Adding to "monitor" list.
Aug 3 02:55:03 vre smartd[28148]: Monitoring 0 ATA and 2 SCSI devices
Aug 3 02:55:03 vre smartd[28150]: smartd has fork()ed into background mode. New PID=28150.
Aug 3 03:25:03 vre smartd[28150]: Device: /dev/sda, starting scheduled Long Self-Test.
Aug 3 03:25:03 vre smartd[28150]: Device: /dev/sdb, starting scheduled Long Self-Test.
Aug 3 09:25:03 vre smartd[28150]: Device: /dev/sda, starting scheduled Long Self-Test.
Aug 3 09:25:03 vre smartd[28150]: Device: /dev/sdb, starting scheduled Long Self-Test.
Running smartctl -l selftest doesn’t seem to have this information either:
[root@XXX]# /usr/sbin/smartctl -l selftest /dev/sda
smartctl version 5.37 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background long Completed - 7970 - [- - -]
# 2 Background long Completed - 7964 - [- - -]
# 3 Background short Completed - 7481 - [- - -]
# 4 Background long Completed - 5499 - [- - -]
# 5 Background long Completed - 5493 - [- - -]
# 6 Background short Completed - 5485 - [- - -]
# 7 Background short Interrupted ('-X' switch) - 4861 - [- - -]
# 8 Background short Completed - 4861 - [- - -]
# 9 Background short Interrupted ('-X' switch) - 4861 - [- - -]
Long (extended) Self Test duration: 1560 seconds [26.0 minutes]
Thanks,
Kapil