- Joined
- Oct 29, 2000
- Messages
- 42,437
So,
I have always purchased brand new hard drives, simply because I am concerned about data loss, but I was curious how well a used set of drives could work.
So, in October last year I decided to do an experiment, and I figured I might as well share my results with everyone here.
I put my used decommed server board to use in my Testbench system, popped a SAS HBA in, and decided to buy some cheap used hard drives from eBay to see how well they would work for me.
I went poking around on ebay. I wanted to get a lot from one seller, and I wanted to go with a seller that was well reviewed, and appeared to focus on decommed enterprise gear (as enterprise stuff tends to ahve been better treated on average than consumer stuff)
I wound up getting a lot of 9 HP branded 4TB 7200rpm HGST HUS726040AL5214 drives with 12GB/s SAS interfaces, for a total of just north of a hundred bucks. I figured, if I was going to get used drives, at least I should get the brand that is best known for its reliability, so HGST it was.
Once they arrived, I checked what I got.
Drive data output (whatever the SAS equivalent of SMART is called) showed me they all had ~39k hours (~4.45 years) on them despite being about 9 years old based on manufacture date.
I also read the drive data. The results. There was a smattering of ECC corrected errors here or there. Some a little better, some a little worse. This is to be expected, but doesn't mean there was ever a data error. Eight of the nine drives had zero "Elements in Grown Defect List". Essentially, my understanding is that this is the key data to look at when it comes to SAS drives.
The results:
Then I dd:ed them full of zeroes to make sure they were clean, and then did a full "badblocks" test that writes random data to the entire drives in four passes.
(This took a little while)
None of the drives had any read or write badblocks errors.
Then I pulled the drive data again.
Still not that bad. No new "Elements in Grown Defects List" (which would signal it being time to replace the drive)
Drive 7 did show a significant growth in ECC errors though. These are not critical. That means that the drive caught the errors and fixed them itself, but it is still a sign that something might be going on.
In the grand scheme of things, this was really not bad for drives I did not trust at all.
I notified the seller of the "Elements in Known Defect List" for drive 5, and he gave me a refund of 1/9th of the order.
I considered Drive 5 to be bad at this point and decided not to use it. I then had 8 remaining drives.
Of these drives I decided to select the 6 best ones (which I deemed to be drives 1, 2, 4, 6, 8 and 9 and built a ZFS pool out of them. The remaining two drives (3 and 7) I put aside as spares, should I have a drive failure. Based on the errors they had, I decided to make drive 3 the first spare, and drive 7 the second spare.
Since I did not know what to expect, I decided to go with a single 6 drive RAIDz3 pool (in other words, it can survive three drive failures before guaranteed data loss). Normally I go with RAIDz2, but I felt it was pertinent to add a little more redundancy with used drives.
It has now been four months.
These drives have not been running 24/7 like the drives in my main server do, but rather they sit in my testbench/nackup workstation. Roughly once a week I power it on, and read backups from the main server. I also do some drive image dumps to them, and stuff like that.
In total I have probably written about 14TB of raw data to the drives at this point. Because I am still a little paranoid, I have been doing a "zpool scrub" to check for errors approximately once a week. I am happy to report that in that time I have not had ZFS report even a single flipped bit.
This is a rather limited sample size, from just one seller, and one model of one brand (now defunct) of drives, so make of it what you will, but I guess this little experiment goes to show, that maybe one doesn't need to fear used drives after all.
At least as long as you thoroughly test the drives before first use, use decent redundancy and are willing to expect some fallout and keep some spares handy.
I'm probably not about to replace all of my drives in my main server with used ones any time soon, but it is good to know that drives destined for secondary or backup servers can probably be sourced cheaper used.
I hope someone finds this useful and worth the time it took me to do this brief writeup.
I have always purchased brand new hard drives, simply because I am concerned about data loss, but I was curious how well a used set of drives could work.
So, in October last year I decided to do an experiment, and I figured I might as well share my results with everyone here.
I put my used decommed server board to use in my Testbench system, popped a SAS HBA in, and decided to buy some cheap used hard drives from eBay to see how well they would work for me.
I went poking around on ebay. I wanted to get a lot from one seller, and I wanted to go with a seller that was well reviewed, and appeared to focus on decommed enterprise gear (as enterprise stuff tends to ahve been better treated on average than consumer stuff)
I wound up getting a lot of 9 HP branded 4TB 7200rpm HGST HUS726040AL5214 drives with 12GB/s SAS interfaces, for a total of just north of a hundred bucks. I figured, if I was going to get used drives, at least I should get the brand that is best known for its reliability, so HGST it was.
Once they arrived, I checked what I got.
Drive data output (whatever the SAS equivalent of SMART is called) showed me they all had ~39k hours (~4.45 years) on them despite being about 9 years old based on manufacture date.
I also read the drive data. The results. There was a smattering of ECC corrected errors here or there. Some a little better, some a little worse. This is to be expected, but doesn't mean there was ever a data error. Eight of the nine drives had zero "Elements in Grown Defect List". Essentially, my understanding is that this is the key data to look at when it comes to SAS drives.
The results:
Then I dd:ed them full of zeroes to make sure they were clean, and then did a full "badblocks" test that writes random data to the entire drives in four passes.
(This took a little while)
None of the drives had any read or write badblocks errors.
Then I pulled the drive data again.
Still not that bad. No new "Elements in Grown Defects List" (which would signal it being time to replace the drive)
Drive 7 did show a significant growth in ECC errors though. These are not critical. That means that the drive caught the errors and fixed them itself, but it is still a sign that something might be going on.
In the grand scheme of things, this was really not bad for drives I did not trust at all.
I notified the seller of the "Elements in Known Defect List" for drive 5, and he gave me a refund of 1/9th of the order.
I considered Drive 5 to be bad at this point and decided not to use it. I then had 8 remaining drives.
Of these drives I decided to select the 6 best ones (which I deemed to be drives 1, 2, 4, 6, 8 and 9 and built a ZFS pool out of them. The remaining two drives (3 and 7) I put aside as spares, should I have a drive failure. Based on the errors they had, I decided to make drive 3 the first spare, and drive 7 the second spare.
Since I did not know what to expect, I decided to go with a single 6 drive RAIDz3 pool (in other words, it can survive three drive failures before guaranteed data loss). Normally I go with RAIDz2, but I felt it was pertinent to add a little more redundancy with used drives.
It has now been four months.
These drives have not been running 24/7 like the drives in my main server do, but rather they sit in my testbench/nackup workstation. Roughly once a week I power it on, and read backups from the main server. I also do some drive image dumps to them, and stuff like that.
In total I have probably written about 14TB of raw data to the drives at this point. Because I am still a little paranoid, I have been doing a "zpool scrub" to check for errors approximately once a week. I am happy to report that in that time I have not had ZFS report even a single flipped bit.
This is a rather limited sample size, from just one seller, and one model of one brand (now defunct) of drives, so make of it what you will, but I guess this little experiment goes to show, that maybe one doesn't need to fear used drives after all.
At least as long as you thoroughly test the drives before first use, use decent redundancy and are willing to expect some fallout and keep some spares handy.
I'm probably not about to replace all of my drives in my main server with used ones any time soon, but it is good to know that drives destined for secondary or backup servers can probably be sourced cheaper used.
I hope someone finds this useful and worth the time it took me to do this brief writeup.
Last edited: