DEV Community

James Newman
James Newman

Posted on

# My Homelab: 2022 A year in review

This article is also available on my blog.

2022 has truly been my year of homelabbing, with learning, iteration and change being a reoccurring theme. I began the year with a somewhat humble homelab, and while I’m not ending it with anything outrageous, it has certainly come a long way. Looking into the next year, I plan on less hardware changes, but there’s certainly a lot more to learn.

How it started

I began 2022 with a Synology DS720+ as my file and Plex server, a Dell Optiplex small form factor PC as an application server and the Unifi Dream Machine (UDM) for my router.

Homelab at the start of the year
Yes that’s a Makita belt sander and a car cleaning kit behind, storage is tight in this apartment 😅

The Synology is a great little machine, and while pricier than their competitors, the hardware and software quality makes up for the price difference.

The Dell Optiplex is a low power, small form factor PC with a 6 core i5-9500T, 16GB RAM, 256GB NVME SSD and a 1TB SATA SSD. Bought fairly cheap on eBay, these are a common choice for low power and low budget homelabs. For me it was essentially a docker box. I started on Ubuntu server, but quickly swapped to Proxmox and then an Ubuntu VM. While it was a good little machine, the single NIC was becoming a bottle neck along with the lack of cores / threads. And so I sold this in the summer, but in hindsight wish I’d kept it.

Finally, the Unifi Dream Machine, UDM from here on, is a good little router and certainly a nice upgrade from your ISP or run of the mill (insert brand name) router. However, I have certainly run into some issues with it and has me considering a pfSense box.

The big upgrade

I mentioned above I sold my Optiplex in the summer, replacing this was my new custom built “server”. With more RAM, cores, storage and expandability. This new server also managed to change two more times before arriving at the current configuration.

New server parts

Initial Specs:

  • CPU: Intel i7-10700
  • RAM: 32GB Corsair Vengeance LPX 3200
  • Motherboard: MSI MAG B560M Mortar
  • SSD: 2TB Samsung 980 Pro
  • PSU: BeQuiet Pure Power 11 400w
  • CPU Cooler: BeQuiet Shadow Rock LP
  • NIC: Intel I350 T4
  • Case: Fractal Node 804

The CPU has 8 cores, 16 threads, it’s 65W TDP (not “K” series), and importantly for me, supports Intel QuickSync - Intel's video encoder, supported by applications like Plex and Handbrake.

I opted for a consumer motherboard and RAM, being much cheaper than server hardware and sufficient for my use cases. This freed up some budget for the Samsung 980 Pro, a solid NVME SSD for fast and reliable storage.

The case was purchased very cheap second hand from a friend and did the job nicely, for now…

New server in situ

My idea for this new server was to replace my Synology and the Optiplex. It would be my file server, Plex server, a small Minecraft server for friends and a Docker host.

I had played with Unraid and TrueNAS but encountered a number of issues with both, so eventually ended up going back to my Synology as my primary file server. The Minecraft server also didn’t go to plan, but not from a lack performance. I didn’t want to port forward and so used FRPC to proxy though a Linode VPS, however the latency was too much for my friend on the other side of the planet.

So, the new server became a somewhat overpowered Docker host, running Proxmox with a few VMs, using Ubuntu as the Docker host.

Iteration 2

The case was a little large and bulky for the space it was in. I also didn’t need the 3.5” bays now I had switched back to my Synology. Additionally I was after a 5.25” bay for a blu-ray reader. While the fractal supports slim slot readers, I wasn’t able to find one that would support the custom firmware to rip (backup) my UHD blu-ray collection. So I switched to the Silverstone GD09, a compact case with support for a 5.25” and fitted in my shelving unit. It’s worth noting the sides of this unit is mesh, so the server had plenty of airflow.

Iteration 3 in situ

I also needed to add a PCI SATA card in order to pass through the SATA controller to the Windows VM in order to use the blu-ray drive with it. Paired with MakeMKV, I was ripping and backing up my blu-ray collection. On occasion MakeMKV would no longer find the drive, but shutting down the sever and power cycling resolved this.

Iteration 3 (The current configuration)

After much consideration and a little convincing from a friend, I decided to give Unraid another chance. With only two bays on my Synology, I needed more storage capacity and with Synology moving to AMD CPUs across their new line up, a new NAS was out of the question.

I decided to rebuild my server in yet another case, this time with the Fractal Refine R5. The plan was to rehouse the server in the cupboard that was its original home. However, this time I purchased a shelving rack that would better fit the awkward space.

Iteration 3 angled

Iteration 3 side on
Not in situ

This time the Unraid setup and configuration went a lot more smoothly, although I did have some issues (from user error) setting up a bond with the 4 NICs on the Intel network card. Finally I setup the 4 NICs in a round robin balancer bond (balance-rr) configuration.

I was also able to take out the PCI SATA card and use the MakeMKV docker image in Unraid, passing the device path instead of a SATA controller.

Final Thoughts

Over the last few months of running Unraid I have really dialled in the configuration to work for me. All of my app data is stored on the SSD, making docker images and VMs blazing fast, while allowing the HDDs to spin down. The rest of my files are spread across these hard drives and for now a single parity drive.

For the most part I am using the Unraid docker interface, although this can be a little lacking for more complicated configurations where the use of Docker Compose would simplify things. Portainer may fill in the blanks here for some people, however I just span up a minimal Ubuntu server in a VM to run docker for these specific use cases.

I have set up a local Nextcloud to replace Synology drive for syncing smaller files like documents across my computers and devices. I do need to better utilise its other features like the Calendar and Contacts if I hope to further replace cloud services like iCloud. I still use SMB shares for larger files like backups and media.

Other changes and improvements

Networking

This year I also began to step further into networking! With help from a friend I setup VLANs on my network, purchased some managed Netgear switches and segmented my network appropriately. This coincides with some firewall configuration and also helped me configure a VPN server for remote connections to my home network when I am out and about.

While I’ve done all this on the UDM, I can’t help but feel that Unifi makes some of this configuration long winded and trickier than it should be. In addition, there are known problems like not being able to create a firewall rule preventing VPN clients from accessing the controller. I am hopeful that the new controller OS update will resolve some of my bugbears. Failing that, a switch to pfSense is almost inevitable.

Raspberry Pis

I played a little with the Raspberry Pi this year, creating a small cluster to learn Kubernetes. This was a super cool little setup with a fancy cluster case and all, but I just wasn’t using it. Like the Optiplex, I sold them on at a fair price to a friend. However, I intend to revisit the Pi moving PiHole from the sever to a Pi, along with my reverse proxy, NUT (a network UPS server) and potentially a second Pi for redundancy.

Pi Cluster in a 10” Rack

Currently, if the Unraid server is offline for any reason, devices are unable to resolve the DNS as it’s hosted on the server. “Well setup a second DNS entry in your router!” I hear you cry. It would seem doing so results in my devices using this second DNS entry to resolve domains in my PiHole blacklist, rendering the PiHole useless…

I also tried the Pi TV hat, allowing me to receive digital DVB-T2 signals, a bit like the HD Homerun, but seemingly worse… I had a great deal of issues configuring, receiving and streaming live TV with the Pi TV hat. The tuner seemed hit and mis on whether it’d find channels that my TV would otherwise pick up when plugged-in directly to the buildings antenna. I tried a signal booster which did improve my results, but still found lacking.

UPS

After putting it off for a long time, I finally have a UPS. I originally ordered an Eaton Eclipse 500, which the product photos on Amazon showed a USB for management, however this model didn’t include a USB management port. I ended up keeping this UPS and eventually ordering a second, the 650 with USB. Now if the power goes out, my server and NAS can gracefully shutdown.

Synology

The Synology still has its uses in my homelab, primarily acting as a backup server using some of their great apps. Synology Photos has become my tool of choice for backing up and viewing my photo library from my phone across devices. Active Backup allows me to backup appdata, files and media from my Unraid server via SMB. And finally I use Hyper backup to then backup the most important files to Synology C2 for offsite backups.

All together

Iteration 3 in situ

Capping off the year

So, as you can see, there have been plenty of changes this year and I have certainly learned a lot. But going forward there’s a number of things I plan to change in 2023:

  • Add a Unifi Wifi AP, the UDM Wifi is patchy at best.
  • Implement monitoring for my servers and containers.
  • Replace NGINX Proxy Manager with Traefik.
  • Expose limited access to services like Plex via Tailscale funnel.
  • Potentially replacing my UDM with a pfSense box.
  • Potentially replace my Ikea smart lights and hub with Phillips Hue - I have to restart this thing multiple times a week for it work in HomeKit.

I’m also really interested in finding ways to reduce my homelab's power usage. I am by no means an eco warrior, but certainly notice the increase on my power bill here in the UK this year. Combined with smaller form factor systems, I really feel the lower power / small form factor homelab community is pushed side in favour of big, power hungry server racks.

And finally, more guides and blog posts! Stay tuned.

This article is also available on my blog.

Top comments (1)

Collapse
 
idris_fagbemi_c31c05906e8 profile image
Idris Fagbemi

Please where do I get the raspberry pi cluster box