#Moving `/var/log` off my boot drive into my ZFS pool

15 messages · Page 1 of 1 (latest)

timber grove
#

Hello! I spent the better half of yesterday pulling my hair out over a few different issues, wanted to see if I could find some Linux wizards to help me out. (I mean that in a good way lol)

I own a ZimaBoard 832, and I recently setup a ZFS pool that's working great. I'm booting off the onboard eMMC with a fresh install of Debian 12 Server, with the latest CasaOS installed.

I went through several 'overflow posts & Google searches with not much success. I need to either get a really strict automatic log compressed backup (to my zfs pool) & deletion system setup or figure out how to get all system logs to be stored on my zfs pool, specifically at /charis/host/logs/system. What would be the best way to approach this successfully?

#

I tried converting the /var/log folder into a mount location with no success, and I've heard that making it a symlink is riddled with issues

#

Docker doesn't have a way to change the way it logs, and I have 2 host-level services; Headscale & Zoraxy, that need to also store their logs off the bootdrive

timber grove
#

As for the other issues I'm having with my setup, I'm gonna try other avenues of support to get them resolved, but in case anyone has information:

  • ✅ ~~I'm trying to host Obsidian LiveSync through my Zoraxy proxy, but it's failing to correctly negotiate CORS with browsers and the Obsidian app.
    • I tried setting Access-Control-Allow-Origin to * in the zoraxy header overrides but that didn't help, afaict it has something to do with the OPTIONS requests chromium/firefox do failing to resolve correctly, and I dont know how to debug/fix that.
    • I could just use another port or a Docker network w/ a separate tailscale client but I'd like to avoid that, especially because other services might have similar issues and that added complexity is annoying.
    • I also don't want to switch to Nginx Proxy Manager because it's UI is really crusty.
    • Tracking: https://github.com/vrtmrz/obsidian-livesync/issues/638~~
  • ✅ ~~In my previous setup Headscale had its own home directory, which worked to ensure file permissions actually functioned correctly. However, I don't want headscale to store its files on the boot drive because I want my server host to live on the ZFS pool; I should be able to lose the zimaboard boot drive or switch hardware or reinstall the host OS without the pain of regularly backing up that specific directory.
    • I want my backups to be designed entirely to function on my ZFS pool with the organization I have setup for it. But I can't for the life of me figure out how to get a custom headscale directory to have the correct permissions for the headscale service to actually work, and I'm also not sure how to properly setup a mount at /home/headscale instead.
    • Ideally the headscale directory would actually be at /charis/host/headscale. A real-time directory sync would be a welcome solution, but ideally unnecessary.~~
oak folioBOT
#

GG @timber grove, you just advanced to level 1!

timber grove
#

If there's someone who knows how to help I'd really appreciate it, and if you want me to pay for that help I'd be willing to pay $25 if you're able to help me resolve the issue I'm having. If you don't want to charge for the help I'd still like to tip/donate some to whoever fixes the problem. I've wasted many hours on these issues and I feel like a deer in the headlights ugh.

timber grove
#

And I'm gonna try digging into the docker config for the livesync server and hopefully find a way to get it to work, cause folks on the telegram channel for zoraxy are saying it's not a problem with the proxy. I'll cave and use a port if I can't get it to work :(

#

If anyone knows a community where there's others that use Obsidian LiveSync please let me know

#

Hopefully my other services don't run into similar issues

#

The /var/log thing though I really still don't know what to do tho, because I really don't want to go down the deep rabbit hole of using a service to manage all of that for me, unless someone knows of a really good one that's easy to use

timber grove
timber grove
timber grove
#

Moving /var/log off my boot drive into my ZFS pool