Re: long tests automatically get interrupted
Andrew Engelbrecht <[email protected]>
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
On 06/14/2014 12:24 PM, Christian Franke wrote: > Andrew Engelbrecht wrote: >> when i run long tests in debian sid, they usually get interrupted: >> >> dmesg shows the following line near the interruption time for test #2: >> >>> [153384.901218] usb 1-1.1: reset high-speed USB device number 6 using ehci-pci > Running captive tests via SAT may not work because smartctl does not > pass a long command timeout to the SCSI pass-through ioctl. And even > then it would require that the SAT layer in the USB bridge firmware > supports such long (several hours) timeouts. > > > Non-captive tests may be interrupted by a standby command sent to the > drive after some time of I/O inactivity. Many USB bridges do this. > > Try to run some script which accesses the drive during the test. This > may work or not: > > while true; do > dd if=/dev/sdX iflag=direct count=1 of=/dev/null > sleep 60 > done i ran some tests for you. the results table is printed below. test #3 was done without -C and without your script. it was interrupted by the host. i ran tests #1 and #2 without -C and with your script. they both completed without error. so it looks like your script idea worked, unless i got lucky. :-) i tried to edit the FAQ, but it's restricted. perhaps other people will find your script useful. thanks, -andrew test results: > SMART Self-test log structure revision number 1 > Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error > # 1 Extended offline Completed without error 00% 88 - > # 2 Extended offline Completed without error 00% 84 - > # 3 Extended offline Interrupted (host reset) 80% 81 - > # 4 Extended offline Completed without error 00% 77 - > # 5 Short offline Completed without error 00% 74 - > # 6 Extended captive Interrupted (host reset) 90% 73 - > # 7 Extended captive Interrupted (host reset) 90% 3 - > # 8 Extended offline Interrupted (host reset) 40% 3 - > # 9 Conveyance offline Completed without error 00% 0 - > #10 Short offline Completed without error 00% 0 - ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft