this post was submitted on 23 Sep 2024
85 points (97.8% liked)

Selfhosted

39328 readers
811 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I have quite an extensive collection of media that my server makes available through different means (Jellyfin, NFS, mostly). One of my harddrives has some concerning smart values so I want to replace it. What are good harddrives to buy today? Are there any important tech specs to look out for? In the past I didn't give this too much attention and it didn't bite me, yet. But if I'm gonna buy a new drive now, I might as well...

I'm looking for something from 4TB upwards. I think I remember that drives with very high capacity are more likely to fail sooner - is that correct? How about different brands - do any have particularly good or bad reputation?

Thanks for any hints!

top 50 comments
sorted by: hot top controversial new old
[–] Ugurcan@lemmy.world 5 points 1 day ago* (last edited 1 day ago) (2 children)

One thing no one will tell you HOW LOUD some HDDs could get under load. You may not want any of those disks around if you’re keeping your server around your living spaces.

Just check dB values in the spec sheets.

[–] ryan_harg@discuss.tchncs.de 2 points 1 day ago

That's a good hint, although I wouldn't mind too mich. personally. My server is located in the basement.

[–] yonder@sh.itjust.works 2 points 1 day ago

Depending on the use, you may be able to spin then down when not in use, but that's not always possible for some applications.

[–] roofuskit@lemmy.world 11 points 1 day ago
[–] Appoxo@lemmy.dbzer0.com 5 points 1 day ago (1 children)

My last I have bought are the Toshiba N300 15tb helium drives.
Didnt write much to it but they were cheap and seemed quiet enough to have around in my room (where I also sleep)

[–] Corgana@startrek.website 1 points 1 day ago (1 children)

Those are great drives but I would not want one of those in the room where I sleep haha

[–] Appoxo@lemmy.dbzer0.com 1 points 1 day ago

I have and while they sure are loud, dampening the NAS with foam tape (had some double adhesive tape from buying LED strips laying around) quietened it enough to be managable.

[–] schizo@forum.uncomfortable.business 18 points 1 day ago (1 children)

I'd like to second the 'manufacturer doesn't matter, all drives are going to fail' line, but specific models from manufacturers will have a much higher failure rate than others.

Backblaze, for example, publishes quarterly(ish?) stats showing the drives with the highest failure rates in terms of percentages, so you can kind of get a good view on if there's a specific drive model you should maybe avoid.

Or just buy an actual enterprise drive, avoid SMR, and have backups is also a sane approach.

[–] roofuskit@lemmy.world 3 points 1 day ago

Some manufacturers have lower failure rates overall. But yes, you do have to mind the specific model.

[–] avidamoeba@lemmy.ca 39 points 2 days ago* (last edited 2 days ago) (6 children)

Buy recertified enterprise grade disks from https://serverpartdeals.com. Prices were around $160/16TB the last time I checked. Mix brands and models to reduce simultaneous failure. Use more than 1-disk redundancy. If you can't buy from SPD, either find an alternative or buy external drives and shuck them. Use ZFS to know if your data is correct. I've been dealing with funny AMD USB controllers recently and the amount of silent data corruption I'd have gotten if not for ZFS is ridiculous.

[–] Pacmanlives@lemmy.world 3 points 1 day ago (1 children)

Holy cow these are way cheaper than anything I have seen before. I am in a RAID 5 setup so if a disk or two dies I am okay.

[–] avidamoeba@lemmy.ca 1 points 1 day ago* (last edited 1 day ago) (1 children)

If you can, move to a RAID-equivalent setup with ZFS (preferred in my opinion) in order to also know about and fix silent data corruption. RAIDz1, RAIDz2 would do the equivalent to RAID5, RAID6. That should eliminate one more variable with cheap drives.

[–] Pacmanlives@lemmy.world 5 points 1 day ago (1 children)

ZFS is a no go for me due to not being able to add larger disk and then expand my pool size on the fly. MDADM and LVM+XFS have treated me well the past few years. I started with an 12tb pool and now over 50 tb pool

[–] avidamoeba@lemmy.ca 1 points 22 hours ago* (last edited 22 hours ago) (1 children)

Not that I want to push ZFS or anything, mdraid/LVM/XFS is a fine setup, but for informational purposes - ZFS can absolutely expand onto larger disks. I wasn't aware of this until recently. If all the disks of an existing pool get replaced with larger disks, the pool can expand onto the newly available space. E.g. a RAIDz1 with 4x 4T disks will have usable space of 12T. Replace all disks with 8T disks (one after another so that it can be done on the fly) and your pool will have 24T of space. Replace those with 16T and you get 48T, and so on. In addition you can expand a pool by adding another redundant topology just like you can with LVM and mdraid. E.g. 4x 4T RAIDz1 + 3x 8T RAIDz2 + 2x 16T mirror for a total of 44T. Finally, expanding existing RAIDz with additional disks has recently landed too.

And now for pushing ZFS - I was doing file based replication on a large dataset for many years. Just going over all the hundreds of thousands of dirs and files took over an hour on my setup. That's then followed by a diff transfer. Think rsync or Syncthing. That's how I did it on my old mdraid/LVM/Ext4 setup, and that's how I continued doing on my newer ZFS setup. Recently I tried using ZFS send/receive which operates within the filesystem. It completely eliminated the dataset file walk and stat phase since the filesystem already knows all of the metadata. The replication was reduced to just the diff file transfer time. What used to take over an hour got reduced to seconds or minutes, depending on the size of the changed data. I can now do multiple replications per hour without significant load on the system. Previously it was only feasible overnight because the system would be robbed of IOPS for over an hour.

[–] Pacmanlives@lemmy.world 2 points 21 hours ago (1 children)

I wonder if that’s a new feature. IIRC the issue was with vdevs in ZFS in the pool expansion. I am a FreeBSD user and do have some jails running. I do like ZFS a lot it’s way more mature then BTRFS on the Linux

[–] avidamoeba@lemmy.ca 1 points 21 hours ago* (last edited 21 hours ago)

As far as I can tell it dates back to at least 2010 - https://docs.oracle.com/cd/E19253-01/819-5461/githb/index.html. See the Solaris version. You can try it with small test files in place of disks and see if it works. I haven't done it expansion yet but that's my plan for growing beyond the 48T of my current pool. I use ZFS on Linux btw. Works perfectly fine.

[–] pedroapero@lemmy.ml 6 points 1 day ago

I use BTRFS for the same. Being able to check for and repair silent corruptions is a must (and this is without needing to read the whole drives, only the actual files). I've had a lot of them over the years, including (but not only) because of a cheap USB controller also.

[–] mumblerfish@lemmy.world 4 points 1 day ago

Oh, wow. Just ordered a new computer. I guess it have to include some more disks!

[–] Loulou@lemmy.mindoki.com 15 points 1 day ago (1 children)

This is incredible!

American sites like this so rarely ship to France, or it costs a litteral fortune just in shipping, here it's 130€ for a 12TB shipping included!

Wow.

I Do Not Need A 12TB Hard drive.

I Do Not Need a 12 TB Hard drive!

I mean or do I?

Thanks 💖

[–] avidamoeba@lemmy.ca 7 points 1 day ago

Get more drives, run higher redundancy 💪

Damn I just put 32 more TBs in my homelab and wish I would have known about this site.

[–] femtech@midwest.social 7 points 2 days ago (1 children)

Yep, I have 6 14tb drives from them in raid10.

[–] avidamoeba@lemmy.ca 2 points 2 days ago (2 children)
[–] TheHolm@aussie.zone 4 points 1 day ago (2 children)

I would not trust these kind of dives in the mirror. IMHO RAID6 is the only way.

[–] peregus@lemmy.world 1 points 22 hours ago

IMHO RAID6 is the only way.

Or SnapRaid

[–] avidamoeba@lemmy.ca 2 points 1 day ago (1 children)

Due to risk of failure or risk of data corruption because the mirror can't tell which drive is right when there's a difference?

[–] turmacar@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (1 children)

The second one.

Mirroring is good for speed, but a storage mechanism with parity checks will always be more recoverable. And you will have far more storage available.

[–] avidamoeba@lemmy.ca 1 points 22 hours ago* (last edited 22 hours ago)

I think data checksums allow ZFS to tell which disk has the correct data when there's a mismatch in a mirror, eliminating the need for 3-way mirror to deal with bit flips and such. A traditional mirror like mdraid would need 3 disks to do this.

[–] femtech@midwest.social 6 points 2 days ago

I just keep adding 2 more drives as it gets full. Not sure if that's the best thing.

[–] brunogron@feddit.nu 41 points 2 days ago (1 children)
[–] yggstyle@lemmy.world 7 points 2 days ago

This. They provide outstanding insights and the articles they provide alongside the data are quite good.

[–] SomeoneSomewhere@lemmy.nz 25 points 2 days ago* (last edited 2 days ago)

Any hard drive can fail at any time with or without warning. Worrying too much about individual drive families' reliability isn't worth it if you're dealing with few drives. Worry instead about backups and recovery plans in case it does happen.

Bigger drives have significantly lower power usage per TB, and cost per TB is lowest around 12-16TB. Bigger drives also lets you fit more storage in a given box. Drives 12TB and up are all currently helium filled which run significantly cooler.

Two preferred options in the data hoarder communities are shucking (external drives are cheaper than internal, so remove the case) and buying refurb or grey market drives from vendors like Server Supply or Water Panther. In both cases, the savings are usually big enough that you can simply buy an extra drive to make up for any loss of warranty.

Under US$15/TB is typically a 'good' price.

For media serving and deep storage, HDDs are still fine and cheap. For general file storage, consider SSDs to improve IOPS.

[–] ccunning@lemmy.world 15 points 2 days ago

I’d start with Backblaze’s 2023 drive report

[–] walden@sub.wetshaving.social 12 points 2 days ago* (last edited 2 days ago) (2 children)

There are two types, CMR and SMR. You can read online about the differences. CMR is better because SMR tries to be all fancy in order to increase capacity, but at the cost of speed and data integrity.

It won't be front and center in the specs of a particular drive, but you usually find the info somewhere.

I wouldn't worry about higher capacity failing sooner. If you have 10x4TB vs 2x20TB, that's 5x as many drives to go bad. So a 20TB drive would need a 5x worse fail rate to be considered worse. A pro of larger (fewer) drives is lower power consumption. 5-10 watts per drive doesn't sound like much, but it adds up.

[–] dmention7@lemm.ee 3 points 2 days ago

If you are buying used datacenter drives, larger capacity drives are also likely to be newer, which tips the scales a little more in that direction.

[–] avidamoeba@lemmy.ca 3 points 2 days ago (1 children)

I don't think anyone makes SMR drives in the current lineups anymore.

[–] walden@sub.wetshaving.social 5 points 2 days ago

That's good

[–] tobogganablaze@lemmus.org 10 points 2 days ago* (last edited 2 days ago) (3 children)

After I had two WD drives fail in my old NAS so I switched to all Seagate on my next build. Currently running 9x 20TB Exos X20, though for only about a year now, so no issues should be expected, yet.

I think the most important thing is that you pick a drive that is meant for NAS/server use (so rated for running 24/7). And having manufacturere warrenty is also nice. My Seagate drives have 60 months (which is considerably more then the 36 months that my WD drives had).

load more comments (3 replies)
[–] Nibodhika@lemmy.world 4 points 1 day ago (2 children)

One important thing, ensure the drive is CMR, the reason is that you likely want a RAID, and non-CMR disks take so long to read the entire disk that the chances of a second failure while recovering from a disk failure is significant.

That being said, how are you keeping track of the disks state? I built my RAID recently, and your post made me realize that I have nothing to notify me if one of the disks shows early signs of problems.

[–] DeathByDenim@lemmy.world 2 points 1 day ago

I just use the built-in email function that comes with mdadm. If a drive fails, I'll know right away and replace it with a spare. You do need your server to be able to send emails with something like postfix.

If you have hardware RAID, there's often a monitoring tool that comes with it or at the very least a command-line utility that can report the RAID state which you can then use in a script.

[–] ryan_harg@discuss.tchncs.de 1 points 1 day ago

I don't keep track actively. I noticed problems when reading a file and looked at the drive with smartctl for that reason. Does anybody know how to keep track actively?

[–] Max_P@lemmy.max-p.me 8 points 2 days ago (1 children)

I've heard very good things about resold HGST Helium enterprise drives and can be found fairly cheap for what they are on eBay.

I'm looking for something from 4TB upwards. I think I remember that drives with very high capacity are more likely to fail sooner - is that correct?

4TB isn't even close to "very high capacity" these days. There's like 32TB HDDs out there, just avoid the shingled archival drives. I believe the belief about higher capacity drives is a question of maturity of the technology rather than the capacity. 4TB drives made today are much better than the very first 4TB drives we made a long time ago when they were pushing the limits of technology.

Backblaze has pretty good drive reviews as well, with real world failure rate data and all.

load more comments (1 replies)
[–] kylian0087@lemmy.dbzer0.com 3 points 2 days ago

I would say Seagate Exos or Western Digital Ultrastar.

[–] SaintWacko@slrpnk.net 4 points 2 days ago

I use Seagate Ironwolf 4TB drives in mine. Bought them all used, $50-60 each. Check on eBay and Facebook marketplace

[–] user68k@wired.bluemarch.art 3 points 2 days ago* (last edited 2 days ago)

At home I use two Toshiba MG09ACA18TE's and they work like a charm. I've bought them at around US$20/TB and it was the best price/TB offer at that time.

At work we use Exos X18's and Exos X20's without any problem at all.

load more comments
view more: next ›