this post was submitted on 23 Mar 2025
35 points (100.0% liked)

Selfhosted

45087 readers
343 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hey all, I've got ZFS pool created and just create a VM drive in that pool like normal, then Jellyfin just has that drive mounted. I think I'm losing the best parts of ZFS through this manner.

How should I set this up properly? Create a media pool or something and have VMs accessing the pool directly?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 5 days ago* (last edited 5 days ago) (21 children)

So if you're going through the trouble of setting up proxmox, I would setup the majority of the storage in a ZFS pool for a TrueNAS SMB share/NFS share. Then create a small container just to host jellyfin and jellyfin's cache--maybe commit 10GB of storage to it--really depends on how big your media library is. Mine is about 5TB and cache, metadata, and other misc things take up about 8GB.

Setting up your share is enough for jellyfin. Since the media and jellyfin are stored on the same metal, additional latency will be sub 100ms. Create a library in Jellyfin and set it to the share; Movies: \\nas\Movies, TV: \\nas\TV, etc.

Works flawlessly and would have more utility than allocating the entirety of your storage to your jellyfin container because it functions as a normal NAS. I've been running with a setup like this for a while and it works great.

[–] [email protected] 11 points 5 days ago (11 children)

Why bother with truenas? Just put the media in a zfs pool and mount it directly into jellyfin.

[–] [email protected] 2 points 4 days ago (6 children)

So you mount the pool to each vm that needs the shared data? Afaik zfs is not made for concurrency

[–] [email protected] 1 points 4 days ago (1 children)

Zfs (and most modern filesystems) are fine with concurrency.

I mount the same data store into several instances, it works well. Just needs some planning for permissions.

[–] [email protected] 1 points 4 days ago (1 children)

Could you explain further with a bit more detail? I havnt looked at this in a while but back then the options where virtiofs or nfs

[–] [email protected] 1 points 4 days ago (1 children)

Each cgroup container mounts a host path. That's it.

[–] [email protected] 2 points 4 days ago (1 children)

So lxc containers and not vm’s

[–] [email protected] 1 points 4 days ago (1 children)

Yes, Lxc, docker, whatever cgroup2 isolation environment, but not VMS, true.

Vms can achieve the same thing through shares

[–] [email protected] 1 points 4 days ago

Thanks. My setup is way over complicated with 3 hosts in a cluster and shared storage, so local storage on the hosts stay unused. But i have been thinking about redoing it with separate hosts. This solution looks promising for sharing data, even if just on one host

load more comments (4 replies)
load more comments (8 replies)
load more comments (17 replies)