Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
datastore3 ~ # badblocks -wsv /dev/sdc
Checking for bad blocks in read-write mode
From block 0 to 1953514583
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: 90.25% done, 29:05:59 elapsed. (0/0/0 errors)
datastore3 shell-scripts # smartctl --all /dev/sdc
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.12.4-gentoo-datastore3-build1] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: ST2000NM0033-9ZM175
Serial Number: Z1X1F9DB
LU WWN Device Id: 5 000c50 065889fad
Firmware Version: SN03
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Feb 4 18:33:31 2014 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 89) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 238) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x50bd) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 080 065 044 Pre-fail Always - 104631756
3 Spin_Up_Time 0x0003 100 100 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 1
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 070 060 030 Pre-fail Always - 11678163
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 29
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 1
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 067 065 045 Old_age Always - 33 (Min/Max 23/35)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 0
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 1
194 Temperature_Celsius 0x0022 033 040 000 Old_age Always - 33 (0 23 0 0 0)
195 Hardware_ECC_Recovered 0x001a 035 030 000 Old_age Always - 104631756
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
but stress testing mechanical drives amounts for crap really
Wow, thanks for all the great information! I have 8x4TB drives that I'll be testing.
drescherjm - Do you have a shell script that you run to do these tests? I see the smartmontools and badblocks tools that you utilize. Seems like it wouldn't be terribly difficult to build a script that you could kick off and then spit out a log file at the end.
6296 be/4 root 161.32 M/s 0.00 B/s 0.00 % 98.01 % badblocks -wsv /dev/sdn
26310 be/4 root 160.11 M/s 0.00 B/s 0.00 % 97.81 % badblocks -wsv /dev/sdp
26304 be/4 root 166.90 M/s 0.00 B/s 0.00 % 97.71 % badblocks -wsv /dev/sdo
I've picked up a bunch of new hard drives for my file server and looking for suggestions on how to do a full stress test on them before putting them into my server. I'm not confined by any time constraints.
Since there are no time constraints, run tests until the drive fails and then go back in time.
Failures are so infrequent that it is reasonable to believe that recovering from a failure is more cost effective than doing any testing.
In the past I have tried all the possible combinations of tests under FreeBSDa and / or Linux, but now I use Spinrite from Steve Gibson
https://www.grc.com/sr/spinrite.htm
It catches all errors (and repairs them too, no matter what filesystem is there on the disk, even encrypted ones).
I'm about to buy a Synology NAS and the HDDs should be formatted and checked by the NAS. Do you think it would be worth testing with badblocks before installing? I'm caught between trying to be safe and trying to avoid spending the days it will take to test a 4TB HDD .
datastore4 ~ # zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
bad 448G 441G 7.07G 98% 1.00x ONLINE -
zfs_data_0 25.2T 3.35T 21.9T 13% 1.00x ONLINE -
pool: zfs_data_0
state: ONLINE
scan: scrub in progress since Wed Feb 5 08:02:19 2014
1.53T scanned out of 3.35T at 328M/s, 1h36m to go
0 repaired, 45.69% done
config:
NAME STATE READ WRITE CKSUM
zfs_data_0 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
a0_d0-part3 ONLINE 0 0 0
a0_d1-part3 ONLINE 0 0 0
a0_d2-part3 ONLINE 0 0 0
a0_d3-part3 ONLINE 0 0 0
a0_d4-part3 ONLINE 0 0 0
a0_d5-part3 ONLINE 0 0 0
a0_d6-part3 ONLINE 0 0 0
raidz2-1 ONLINE 0 0 0
a1_d0-part3 ONLINE 0 0 0
a1_d1-part3 ONLINE 0 0 0
a1_d2-part3 ONLINE 0 0 0
a1_d3-part3 ONLINE 0 0 0
a1_d4-part3 ONLINE 0 0 0
a1_d5-part3 ONLINE 0 0 0
a1_d6-part3 ONLINE 0 0 0
errors: No known data errors
Just due to how your drives are arranged?
Looks like some of the other options described in this thread would would be better options since they are free. Is there a reason why you're using Spinrite instead of those? Maybe usability since you can just boot off a disc and go?
My experience: I've sent a lot of "broken" disks to Apple, IBM or HP (under warranty); they told me the HDs were 100% "gone" and data not recoverable. I had a bunch of them rusting in my closet when a friend of mine brought in a CD with Spinrite.
That tiny piece of software was able after 15 days of working (24/7) to recover the unrecoverable
After that experience this is my only paid software in my toolbox. It was able to find defective HDs (badly shipped by Amazon) that other testing methods failed, saving me time and frustration.
Spinrite and HDD Regenerator are great for recovering hard drives with problems.
But they are not tools to use for identifying faulty drives, they fix some drive problems that you already know are faulty.
Tools like this arent relevant to the topic.
Spinrite and HDD Regenerator are great for recovering hard drives with problems.
But they are not tools to use for identifying faulty drives, they fix some drive problems that you already know are faulty.
Tools like this arent relevant to the topic.
I like the guy who has a job and stress tests drives for 3 days before putting them into production. (I appreciate his test scheme.)
He left out 2 important pieces of information.
1) What percentage of drives fail during the test phase.
2) What percentage of drives that pass the stress test survive production use.
Steve Gibson says that this tool is great to test new hard drives, and I mainly use it for this purpose.
A level 2 test is able to discover defective surface or mechanical problems due to bad shipping.
I'm using it now on 6 Seagate VN 3000 to test before putting them into a FreeNAS box.
Spinrite correctly identified some problems with two brand new Seagate ST2000 that - after months - showed to be faulty. No other tool was able to do that; so - for now - I trust this software as my main test suite for hard drives.
In the past I have tried all the possible combinations of tests under FreeBSDa and / or Linux, but now I use Spinrite from Steve Gibson
https://www.grc.com/sr/spinrite.htm
It catches all errors (and repairs them too, no matter what filesystem is there on the disk, even encrypted ones).
Have you run a "badblocks" test on a drive that Spinrite showed to have faults? I'd be curious to see how those tools compared.
I run Spinrite for a main reason: it's true "low level" so – if you have encrypted disks (like using TrueCrypt or FreeBSD GELI encryption) – you don't need a software that "understands" the underlying filesystem
Gibson would sell a lot more copies at say $30. Steve: are you reading this?
"true 'low level'"
What do you think that means? Don't you realize that the lowest possible level to access a HDD is at the block level? Many programs are capable of reading and writing to HDDs at the block level, including badblocks.
Bill McGonigle explains very well the difference you need to know:
http://comments.gmane.org/gmane.org.user-groups.linux.gnhlug/22505
Evidently you do not understand your own link.
I start with a SMART conveyance test, then a SMART long / extended test.
Then I DD write and read the whole drive, right before an IOZONE test.
Sometimes these tests give me the answer I need: immediately RMA the drive.
Sometimes not, so I give Spinrite a chance.
A lot of times Spinrite tells me that the drive has problems (even when all the above tests just say it's fine).
After about 6 months this drive (remember: this HD is perfectly fine for all the tests, but not for Spinrite) the drive dies.