I took delivery of another 10 x Toshiba PH3500U-1I72 5TB drives yesterday. They are installed into the latest server (varm). This sever also contains 10x Toshiba DT01ACA300 3TB drives.
Last night I wrote a wee script to start long tests on each of them.
I was able to extract a list of the hard drives through this command:
$ egrep ^da[0-9]+: /var/run/dmesg.boot | cut -f 1 -d : | sort | uniq da0 da1 da10 da11 da2 da28 da29 da3 da31 da32 da33 da34 da35 da36 da37 da38 da4 da5 da6 da7 da8 da9
I suspect I could have done similar with ls /dev/da*.
With the above list, I created this script:
$ cat longtest #/bin/sh DRIVES="da0 da1 da10 da11 da2 da28 da29 da3 da31 da32 da33 da34 da35 da36 da37 da38 da4 da5 da6 da7 da8 da9" for drive in ${DRIVES} do smartctl -t long /dev/${drive} done
Then I waited.
Overnight.
Today, I ran this script:
$ cat selftest #/bin/sh DRIVES="da0 da1 da10 da11 da2 da28 da29 da3 da31 da32 da33 da34 da35 da36 da37 da38 da4 da5 da6 da7 da8 da9" for drive in ${DRIVES} do smartctl -l selftest /dev/${drive} done
Here’s the output:
$ sudo ~/tmp/selftest smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 211 - # 2 Extended offline Completed without error 00% 155 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 211 - # 2 Extended offline Completed without error 00% 155 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 204 - # 2 Extended offline Completed without error 00% 149 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 204 - # 2 Extended offline Completed without error 00% 149 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 204 - # 2 Extended offline Completed without error 00% 149 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 202 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 7 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 7 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 7 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 10 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 9 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 211 - # 2 Extended offline Completed without error 00% 155 - smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.2-BETA2-p2 amd64] (local build) Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === 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% 210 - # 2 Extended offline Completed without error 00% 155 -
All of them completed without error. Good. Now it’s on to more interesting things.
I could have used this:
as pointed out by Bradley T. Hughes
Instead of
you can
.