I want to build a proper server with room for 40+ HDDs to move my media server to and have RAID 1. I know a lot about PCs and software, but when it comes to server hardware I have no clue what I'm doing. How would I go about building a server that has access to 40+ RAID 1'd HDDs?
40 drives ? Why that is a huge amount of power , what is your space target
RAID 1 ? With 40 drives ? That would be absolutely stupid you want to use RAID 6 or 10 so you don’t waist 50 % of your space with RAID 1. Or some other N+2 disk redundancy.
Have you considered how much power such a large setup will need?
I'll have to watch a video on it later, I assumed having a 1:1 backup was the most efficient backup method possible without compression. I don't plan on utilizing every drive at once, and I don't plan on having more than 20 to start with, but it won't be much more than I already have, so I should be okay to start. I just want to make sure there room for expansion in the future. I don't need all 40 immediately. My UPS will tell me how much power I'm drawing, right?
You need to research raid 1,6,10 and zfs first. Make an informed decision and go from there. You're basing the number of drives off of (uninformed) assumptions and that's going to drive all of your decisions the wrong way. Start with figuring out your target storage amount and how many drive failures you can tolerate.
With 140TB+ of existing data, I would need 16 18TB HDDs to have RAID 1, and I also need the ability to expand. Really, I just need to have all the data accessible over the network so I can manage it from my main PC and stream it via a Plex/Jellyfin server. Maybe 4 smaller DIY NAS systems accessed by a separate system? I would really prefer no proprietary software if I can avoid it, and enterprise is out of my price range after I'll be spending $3,000+ on HDDs.
The data is currently stored on external drives, but once I've got the new setup with RAID I'll erase the drives and sell to friends, or use in other projects like an emulation station. 15+ wall plugs is excessive.
Doesn't that keep more than two copies? RAID 1 is expensive enough as is. I just need to be able to pop in a replacement drive if one fails so I don't lose data.
The chance of a rebuild taking longer than a failure occurring is non zero. RAID 1 is less protection that raid 50 or raid 60, plus depending on how many disks you have you will save space and get better performance.
I have 300 blu-rays ripped full quality and that only takes 8.28TB. My entire media collection is just over 12TB. I have a friend who has a massively larger library and even he gets by with a NAS. My NAS only has ten disks and I have 84TB of storage. You're over-estimating your needs.
Depends on your budget. Since you're asking here instead of talking to vendors, I guess you want used, so just browse ebay. You can get something used like this https://www.ebay.com/itm/404093943584
TrueNAS scale, LIS HBA cards, server motherboards with plenty of PCI Lanes ie AMD EPYC, large capacity HDD, just make sure they are CMR and not SMR drives. And Raidz2 is your friend. You will not need 40 drives, frankly you will fit 10,000 films, mostly 4K and 1000 complete TV series on a single 12 drive wide Raidz2 vDev using 20TB drives. That's enough to last 50 years in terms of viewing time.
Other have all mentioned various tech to help you out with this - Ceph, ZFS, RAID at 50/60, raid is not a backup, etc.
40 drives is a massive amount. On my system, I have ~58TB (before filesystem overhead) comprised of a 48TB NAS (5x12TB@RAID-5) 42TB of USB backup disks for said NAS (RAID is not a backup), a 3-node vSAN array with 12TB (3x500GB cache, 6x2TB capacity) of all-flash storage at RF2 (so ~6TB usable, since each VM is in independent RAID-1), and a standalone host with ~4TB@RAID-5 (16 disks spread across 2 RAID-5 arrays, don't have the numbers off hand)
That's 5+9+16=30 drives, and the whole rack takes up 950w including the switches, which iirc account for ~250-300w (I need to upgrade those to non-PoE versions to save on some juice). Each server on its own takes up 112-185w, as measured at iDRAC. It used to take up 1100w until I upgraded some of my older servers into newer ones with better power efficiency as my own build-out design principle.
While you can just throw 40-60 drives in a 4u chassis (both Dell and 45drives/Storinator offer the ability to have this as a DAS or server), that thing will be GIGA heavy fully loaded. Make sure you have enough power (my rack has a dedicated circuit) and that you place the rack on a stable floor surface capable of withstanding hundreds of pounds on four wheels (I think I estimated my rack to be in the 300-500lbs class)
You mentioned wanting to watch videos for knowledge - if you want anywhere to start, I'd like you to start by watching the series Linus Tech Tips did on their Petabyte Project's many iterations as a case study for understanding what can go wrong when you have that many drives. Then look into the tech you can use to not make the same mistakes Linus did. Many very very good options are discussed in the other comments here, and I've already rambled on far too long.
Other than that, I wish you the best of luck on your NAS journey, friend. Running this stuff can be fun and challenging, but in the end you have a sweet system if you pull it off. :) There's just a few hurdles to cross since at the 140TB size, you're basically in enterprise storage land with all the fun problems that come with scale up/out. May your storage be plentiful and your drives stay spinning.
You could consider a couple of those SuperMicro server cases and link one as a JBOD via a SAS card… see things like https://www.servethehome.com/sas-expanders-diy-cheap-low-cost-jbod-enclosures-raid/ I picked up a 12bay CSE-826 with a SAS3 backplane and two 80 Platinum redundant power supplies for $300. I know you’d need a larger one, but eBay is a great place :-)
The other option to the server that was posted is to get a DAS Enclosure that you can then hook up to a server or anything that can use a SAS/SATA card. These are generally going to be cheap because it is just a SAS/SATA backplane/expander.
I just picked up a 4u supermicro chassis that holds 36 3.5" disks and 2 2.5" disks.
Unixsurplus.com has some pre built ones for truenas (I'll be running unraid.) I'm moving from a 12 bay dell with 200tb useable. Once I max out this new chassis, then I'll be adding a jbod shelf. Those can basically double my storage without having to do much.
My guesstimate is you have around 1,400 4K DVD rips. Do you need all of them?
You probably should look at RAID 6 with a cold spare (i.e. a drive sitting alongside the server.
ZFS allows you to create spare disks. ZFS spare disks are hot spares which are swapped in for faulty disks and swapped out when you replace the faulty disk.
I suggest that you calculate the cost to build this server, you should allow for NAS specific drives rather than the cheapest desktop drives.
You will need PCI to SATA cards to connect you drives.
I suggest that you look at the NAS builds on PC Part Picker.