So with much careful deliberation over my previous adventures, I decided to stop screwing around and just build the network/homelab as I wanted. This involved removing old devices and cleaning cables, new NAS drive, new dedicated Virtual Machine box, and moving different services around!

Overall concept

My reigning goals for the network/homelab situation was as follows:

  • minimize energy usage
  • simplify management
  • reduce amount of devices and clutter
  • keep mission critical components clear of the sections for messing around
  • keep overall foot print small enough to fit under the LACK table.

Strikethroughs show where I failed miserably, but at least it now fits under a LACK table

These points clearly are contradictory but I decided to try to split the network into three local subcomponents and some offsite silliness:

  • 100% availability portion
    • Mission critical aspects like the DHCP server, Ad-blocking DNS, dynamicDNS updating, domotics and VPN entry into the network.
    • Services hosted in the Raspi Model 3B, but also includes router, and network switch.
  • 60% availability portion
    • The daily use, general purpose, download and backup services, which would only really be used whilst I’m awake. Setup once with appropriate logging and forget about it.
    • NAS with docker capabilities (DS715+) to host some services, and the Nvidia Shield as a plex server/general media device by the TV.
  • 10% availability portion
    • The part of network to fool around with and test new systems, run processing scripts and generally anything else which might break other parts or slow down the NAS.
    • This would be a dedicated box for virtual machines and other conterised services, capable of running inferences and other aspect. At the moment it’s a Lenovo M72e Tiny which I managed to get rather cheaply (£70) running Proxmox, but I’m not married with the idea either.
  • Offsite backups
    • Using external harddrives, cloud storage (onedrive) and my old NAS installed remotely, I plan on making a housefire-ransomware-global-company-collapsing resistant backup setup. Basically should deal with anything but a nuclear EMP.

welp, well this is the network's current state... welp, well this is the network’s current state…

Pi Heatsinks

First thing was first, the Raspberry Pi was not fairing well, from the moment it turned on it was hitting a constant 60degrees C, and would sometimes chug hard when the download services were accessed, even crashing and taking my whole DHCP service down too. The location wasn’t great, jumbled in between a nest of cables, but also just the fact there was no airflow and no heatsink didn’t help.

Nothing some spare thermal paste, a crappy heatsink and some good old glue can’t fix. With a bit of repositioning too the temps now dropped to sub 40 degrees. Resounding success even considering how ropey it seemed to just glue things to the board.

Cable management and general reorganisation

That aforementioned nest of cables finally got to me. Until now, I had just thrown in almost all the devices under an Ikea LACK table, dangling cables all over the place and just pushing in an old trusty printer from the front until it didn’t stick out. Which meant it just fell out the back, and there was no rhyme or reason how it all went together, honestly a bit embarrassing…

As I was adding new devices and would have had to get a switch sooner or later, I decided to tackle the issue, also buying a smart plug with USB ports to power what I could, and ability to remotely switch off parts of the network.

With a bit of wood I found laying around, some screws, black spray paint and a whole lot of time (way more than what I wanted to give but I got carried away) it is now slightly better.

Now its still not perfect, but using a piece of wood to raise a small shelf and put the power cables underneath made a massive difference, the raspberry pi is much better positioned too and almost all of it is quite reachable. Black paint also helped disguise it in, even if it was a shoddy job.

Its still a bit of a bundle of wires, and two shelves would have helped, but considering I sawed that board with a Victorinox knife, I was getting close to awaking some RSI or carpel tunnel syndrome or other. I’ll leave it for another weekend in a couple of months time.

End result! Can spot the eHDD and new virtual machine box hidden away End result! Can spot the eHDD and new virtual machine box hidden away

The New DS716+ NAS box

Old NAS was a DS214play, a solid 2-bay NAS drive from Synology with transcoding capabilities. It served me well for 6 years, however the transcoding was only for Synology applications (not Plex), it had a 32-bit intel cpu (so no docker) and no support for BtrFS (so no snapshots and bitrot protection). Thus, out with the old in with the (not so) new with a DS716+ nabbed off ebay, which had docker support and BtrFS support.

This meant I now took the full download stack (VPN, Transmission, Sonarr, Radarr, Bazarr and jacket) off the poor Raspi 3B and into the NAS drive. Now the docker management isn’t perfect here and Synology screws around with the containers so I installed portainer and then did a mix of haugene’s guide to create a tunnel device as well as technodadlife’s portainer stack but modifying it for my applications and running it for the first time from a SSH session using docker-compose instead to kick start the service (portainer was not behaving for some reason). There was some fighting in there with the permissions of various containers and creating a user for docker, but overall it just took time and some googling.

Now I also created a new volume, redid some of the folder structures, and now have proper back up with a weekly External USB drive back up and a remote back up into the old NAS.

Overall quite happy with the move:

  • The Pi isn’t dying anymore if I accessed to many services at the same time
  • Seperation of Pihole and the DHCP and NoIP services from a device I can shut down.
  • Torrent speed not limited by Pi’s slowwww adapter
  • Have fancy new BtrFS volume instead of Ext4
  • Remote backups to my brother place for most important data

But wait there’s more!

Welp! there’s the struggles with changing out the printer and the new virtual box machine I bought to run silly things in, but its the end of the weekend already and better leave it for another post!

Conclusion

Don’t get me wrong, this setup is still over-complicated and over-kill, and honestly I could trim some fat and merge parts, but it would also be less fun. Overall I’m pretty pleased with how it stands and it’s been good practice to play around with all the portions. I’ll continue removing random devices I have littered around the house which don’t do anything and just focusing on keeping this central core part running just as I like it, possibly changing parts here and there, but will see. For now its not going to be changing any time soon…

https://lejimmy.com/setting-up-transmission-bittorrent-with-openvpn-on-a-synology-nas-and-docker/

Copyright © 2023 Pandalism