[–] 1 point 1 month ago

Premise: most, if not all, of my services run in containers.

I have recently moved to docker context. It’s a pretty cool feature that I don’t see mentioned that often. Essentially it allows to run docker commands from your machine and tunnel them via SSH to your server. What I like about this is that I need all the compose file in my main machine and structure them into a repository so that I don’t have everything scattered around. The new approach I have implemented very recently is this.

One monorepo with one folder per server and in each one a folder per service containing docker compose and .env files. With dotenv I sent the docker context whenever I enter a specific folder, so as soon as I cd into that folder, any docker command I run from there would be tunneled to the correct server.

For everything that does not run in docker, which is not much I think at the moment only vector to collect metrics and logs, I use Ansile. In this case the need is that I want Vector to run on all servers so Ansible is the better choice here.

  • source
  • [–] 1 point 1 month ago

    I use the Grafana stack but I do not self host it. It’s the only thing I use in the cloud with their free offering which is pretty generous and good enough for homelabbing. I have also recently transition away from Alloy to Vector, mainly to give that a try and because the configuration of Vector seems easier and somewhat more intuitive.

  • source
  • [–] [S] 2 points 11 months ago

    That makes sense. The MyCloud only supports JBOD, RADI0 and RAID1. I thought initially to go with RAID0 and the 2 TB disks, but probably the risk is too high compared to the benefit of JBOD for this use case. I mean once one disk if full I can just fill the other one and have Jellyfin get the content from both disks without problems.

  • source
  • parent
  • context
  •  

    Hello all, I have a brainstorming question for you all, or maybe I'm just looking to confirm that my proposed solution makes some sense.

    I am looking to re-arrange my storage solution to fit my needs, here is the situation:

    • I have a 2TB iCloud drive which is the main source of data (iCloud drive and Photos).
    • I have a self hosted Jellyfin instance that requires storage for the media content.
    • At the moment it's using a 2TB WD Element USB drive, which is terrible, not enough storage and super slow.
    • I have a WD MyCloud EX2 Ultra with 2 bays and 2 WD Red 4TB disks.
    • I have a TrueNAS machine running on an Atom D2700 with 8GB of RAM and 2 old 320Gigabytes disks that I've used just for testing.

    The objective:

    • iCloud backup: take a recurring backup of iCloud.
    • Jellyfin storage: I figured at least 4TB.
    • Reuse and costs optimization: reuse as much of the current hardware as possible and minimizing costs.

    My proposed solution:

    • iCloud backup:
      • Move the 2x4TB WD Red from the WD MyCloud EX2 Ultra to the TrueNAS machine and set it up in mirror mode.
      • Use icloud-docker to backup iCloud in TrueNAS.
      • Use rclone to keep an additional offsite backup on Scaleway glacier (I'm already using it to store some other backups and very happy with it).
    • Jellyfin storage:
      • Buy either 1 or 2 6TB WD Blue disks (or equivalent) to put into the WD MyCloud EX2 Ultra and use that as storage unit for the Jellyfin instance.
      • The reason for using WD Blue is to contain costs. The multimedia storage is not that important to me. Meaning I will not take a backup of it, and if I loose something is not a problem. I just need space and decent speed.
    • Reuse and costs optimization:
      • I will reuse all the hardware that I currently have plus buying only 1 or 2 more disks.

    What do you guys think?