LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HDD Test/"Break In" using dd (https://www.linuxquestions.org/questions/linux-newbie-8/hdd-test-break-in-using-dd-4175447329/)

jfluckey 01-26-2013 11:10 AM

HDD Test/"Break In" using dd
 
I have a new 3TB WD Red drive. I put it in my FreeNAS box and ran the following commands
Code:

dd if=/dev/zero of=/dev/ada0 bs=65536 &
dd if=/dev/ada0 of=/dev/null bs=65536 &

with a little time in between.

After ~14 hours, I got the results:
Quote:

dd: /dev/ada0: short write on character device
dd: /dev/ada: end of device
45785416+0 records in
45785415+1 records out
3000592982016 bytes transferred in 53383.254357 secs (56208506 bytes/sec)
I guess I never really worried about the output of the dd command when copying drives. I guess I was expecting both records in and out to end with "+0". Can someone explain my results and let me know if the results throw up any red flags?

jpollard 01-26-2013 01:15 PM

It just means the device did not match a multiple of your buffer size. The "short write" indicates that the output device filled before the complete record was written. The +1 is the partial record that was read from the device.

jfluckey 01-26-2013 09:18 PM

Quote:

Originally Posted by jpollard (Post 4878073)
It just means the device did not match a multiple of your buffer size. The "short write" indicates that the output device filled before the complete record was written. The +1 is the partial record that was read from the device.

So should I rerun the test with a different buffer size or are the results enough for me to implement my drive?

jpollard 01-27-2013 05:53 AM

No real need to. The device is working.

Now there is still the possibility of an early death, but that would require about a month of random read/write activity, and is usually not worth the effort.

btmiller 01-27-2013 01:38 PM

I'd suggest running the S.M.A.R.T. self tests on the drive to fully test it, e.g. "smartctl -t long /dev/XXX" and then "smartctl -l selftest /dev/XXX" to see the results. If you're feeling paranoid, you can also run badblocks, but it will take some time.

jfluckey 01-27-2013 04:47 PM

Quote:

Originally Posted by btmiller (Post 4878574)
I'd suggest running the S.M.A.R.T. self tests on the drive to fully test it, e.g. "smartctl -t long /dev/XXX" and then "smartctl -l selftest /dev/XXX" to see the results. If you're feeling paranoid, you can also run badblocks, but it will take some time.

I kinda am on this one. I haven't bought an HDD since I got (4) 250 GB :eek: for my RAID almost (7) years ago. I bought this one on a sale but there were several reviews of failure after a month or so. Stressing it now would put me at ease as I am in need of this extra space before my library can get any bigger. I've transferred ~1TB to this drive already (just duplicate as I have my original data on my other drives). I'm pretty sure it won't, but the smartctl will not affect any data on the drive? I probably won't wait for an answer as I can just recopy the data if it does :).

TIA.

btmiller 01-27-2013 09:21 PM

The smartctl tests are by default run in non-destructive mode. You can run them even with data on the drive and the partitions mounted and it will not affected anything.


All times are GMT -5. The time now is 12:40 AM.