long tests in standby mode
Alfred Ganz <alfred-ganz+smartm <at> agci.com>
2009-01-05 02:09:05 GMT
Ladies and Gentlemen,
I have a backup disk for which the Extended self-test has an anticipated
completion time of 90+ minutes, but under normal circumstances I would
like to use it with an idle-time of something like 15 minutes. However, I
would also like to occasionally run a long test from smartd.
When I tried to run a long test without keeping the disk non-idle, using
smartctl -t long -d sat,12 -n standby -T permissive /dev/sdb
I found the disk idled, and I got an incompleted test reported:
# 1 Extended offline Aborted by host 60% 505
I presume that the aborting host is actually the SCSI over USB simulating
interface in the external disk box itself.
Note that I started out with using the disk prior to starting the above.
I am happy to report that with an ls command every ten minutes to prevent
the disk from going standby, I got:
# 1 Extended offline Completed without error 00% 506
which tells me that the disk should be fine. However, it also seems to
indicate that the state change to idle trumps a running self-test.
The idle time is currently set using sdparm, which shows:
/dev/sdb: Maxtor OneTouch 0125
Power condition mode page:
IDLE 0 [cha: n, def: 0, sav: 0]
STANDBY 1 [cha: y, def: 1, sav: 1]
ICT 0 [cha: n, def: 0, sav: 0]
SCT 9000 [cha: y, def:9000, sav:9000]
(where 9000 is in 1/10 sec, translating into 15 min). I am currently
using the following line in smartd.conf: