February 23, 201313 yr What would the command be to run a long smart test on all 16 of my drives and output the results to a txt file? I cannot get a clean parity check so I expect one of the discs is causing it. I really would like it todo the check on all discs at once so It will not take days to complete. Thanks for the help
February 23, 201313 yr What would the command be to run a long smart test on all 16 of my drives and output the results to a txt file? I cannot get a clean parity check so I expect one of the discs is causing it. I really would like it todo the check on all discs at once so It will not take days to complete. Thanks for the help The "long" smart test is unlikely to tell you the problem disk, but who knows, you might get lucky. You must disable ANY disk spin-down, as that will terminate a test. The test is run on the disk itself, so you can run them all in parallel. There is no single command to run it on them all. Basically, you instruct each disk to run the test, then wait about 5 hours and ask them for a SMART report. The results of the test are near the bottom of the report. (A "long" test is known as an "offline extended test" at that point in the report) To request a test on a specific disk, type smartctl -t long /dev/sdX where X = the drive letter of the drive to be tested. When you request the report it will probably tell you to wait 255 minutes. That is typically wrong, as I think it is the highest value it can print, and not long enough for today's larger disks. If you request a SMART report after 255 minutes, and it does not indicate the test is complete, wait more and request another SMART report. You can type these commands one after another for each of your disks. No need to wait for any to complete before requesting one on another disk. A smart "long" test will abort on the first unreadable sector it encounters. That might, or might not be the cause of your parity errors. The SMART report with the results can be gotten by typing smartctl -a /dev/sdX > /boot/disk_sdX_smart.txt (after letting it run its course)
Archived
This topic is now archived and is closed to further replies.