Finally something I know about! For a rack, you have to watch out for depth, and weight limits. I've been using an audio rack - 500mm is too short, but with the exception of my storage server, it wasn't an issue. Unfortunately, the weight of a console, three UPSs, four switches, two routers and six servers crushed it's castors and mounts. Now though I've repurposed that for the World's Worst Recording Studio, and I'm keeping my eye out for a Startech adjustable-depth rack. They come in various heights from 12U to 30U and are very flexible - but they're expensive new, and hard to find for freeap (but they're out there!). You'll never fill a 42U rack at home, and if you did then the electricity cost (of both the servers, and the ensuing aircon) would bankrupt you in a week. The Startech is perfect for you if you can find it. Most small-height cabinets are short depth too - you need something open at both ends, and between 600mm and 1000mm deep. Ideally around 800 - and the Startech's perfect. Otherwise, a LACKRACK EE is a great starting point for €20.
If you want ATX chassis used, you want Supermicro. The SC-512 (old and new - one is a little wider than the other) are both great, and both can take the PSW-351-1H GOLD PSU, which is basically silent. Of course, 1U case means ridiculously loud blower fan, but old ivy/sandy i3's with 35W TDP will run fine with a passive heatsink as long as you're not constantly ragging them. They'll thermal throttle if you do, but for normal home server kind of stuff they'll idle at 50C in that setup, which is more than fine. Obviously, pick up one of the new N100 ITX boards (don't get older ATOM/Pentium/Celeron boards - only the latest gen; older stuff doesn't have AVX/AVX2 which will screw you for software, and they also have a bad history of fatal CPU hardware bugs) and you're laughing - they're DESIGNED to be run passively in tiny boxes. Intel S1200BTx with i3 3220T is a good choice for a cheap, low power ECC server board; and ASROCK N100M (for a 2U+ case) or N100-ITX (for a 1U case) is a great choice for the other option. What would be REALLY great would be a CM4 with an ATX carrier, but alas - the official one is not *quite* ATX compliant, and no-one ever made a simple, cheap ATX carrier for CM4 modules.
The SC-112 and SC-116 are great 1U chassis for storage; they can take 8/10 SATA/SAS drives - again, if you want to do this at home, use SSD's for low power consumption/heat/noise. If you want bigger, the SC-826 and SC-846 are big cases with many 3.5" bays, and have ATX versions. The SC213/216/219 are also 2U, but with 2.5" drive bays. The 216 has 24 bays, so you could do 48TB (or with reasonable redundancy, 36TB assuming 2 VDEVs of Z3) of SSD storage using cheap consumer drives. 😉
Best way to find the SC-512 is look at 1U appliances on ebay and keep an eye out for them. The case designs are very recognisable, and having an ATX layout in back will be obvious. Plus, you get cool weird branding on them! I have Vocera, MailFoundry, and Stormprobe branded SC-512's - plus, a generic Supermicro one in beige with working FDD and CD-ROM drives; both of which I converted to use USB for internal connection to motherboards, since nothing has IDE/FDD anymore. All upgraded to use the PSW-351-1H (the stock 200W ones in the old models were loud and inefficient); though a couple of them needed tabs ground off the base to fit the longer PSU in. After that, no issue. (The tabs were an optional thing that could be bent in to help mount the older PSU's - so if the case has one it needs to be removed!)
Obviously, other rackmount ATX chassis brands are available - but SuperMicro are such a leading brand that they're the most common one to find used gear using, and models like the SC-512 have been around since the 90's so they're easy to find once you know what to look for.
Switches wise - look at the HPE or Aruba (same deal) 2530 series. The still-supported PoE switches are only 10/100 (but with quad gigabit for uplink ports), but that's fine for most uses - and they're PoE+, which means you can run Pi 4's and Pi 5's over PoE including powering things like NVMe SSDs or some USB gadgets. My radio has a Pi 4, a hungry servo motor and will have a USB SSD before it's finished - and that's all fine on a 2530-24-PoE+ with the Waveshare PoE Hat C. The nice thing is, these switches are like €50 for a PoE switch. It's great. They also have gigabit switches - 2530-24G. And all these switches are supported with current firmware and security patches till EoP 2026. Obviously, they're also fully managed with both web GUI's (that work on modern browsers and don't need Java or Silverlight or Flash or...) and powerful serial/ssh consoles. Highly recommended.
And for Routers - build your own. It's much more interesting, much more useful, much less wasteful if you decide to decommission it later (since you can re-use the parts for something else) - and a PoE Pi 4/5 is a great way to do it. Using VLANs you can even do it with a single ethernet port on the Pi! (Though obviously, your max theoretical throughput is 500Mbps running that way).
Edit: Here's a really old photo of my cluster in the Audio rack. The Vocera box is a gen2 SC-512 chassis, and the two underneath are the narrower gen1 version from the 90's. There's no functional difference for normal use. And hey, there's a couple of Combadges next to the keyboard to boot! 😁
The attachment oldcluster.jpg is no longer available
Pretty sure back then these were a J3455, a J4125 and the first S1200BTL. Again - hard, hard recommend against ANY older atom board, J3455, J5040, any of them. Do not buy anything but an N100 if you're going atom. Other than that, get creative! 😁 Worth mentioning the obvious; I'm obviously mostly talking about the low power stuff because every server chassis I currently own is 1U, and I want them silent. It's a challenge, but a fun one. If you're using a bigger chassis like SC-219; you have space for sensible cooling, and could run something like an Intel 14500 - a desktop CPU that has 14c20t, supports 192GB of ECC memory and would absolutely not be silent in a 1U chassis. I miss when Intel TDP's were SANE.