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?

    • Oisteink@feddit.nl
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

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

      • non_burglar@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        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.

        • Oisteink@feddit.nl
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          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

              • non_burglar@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 days ago

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

                Vms can achieve the same thing through shares

                • Oisteink@feddit.nl
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 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

    • Xanza@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Sure, you can also do this. But why not make it available to your network in addition to Jellyfin? What if you have a TV that doesn’t have access to the Jellyfin app? If it’s a private ZFS pool not on the network you’re fucked. If you share the media via a network share, you can always do any number of things to stream that media to your TV.

      It gives you a ton more options up to and including just watching the media on your PC in your favorite media browser.

      • non_burglar@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        If it’s a private ZFS pool not on the network you’re fucked.

        Sorry, i didn’t word that correctly. I understand why you might need a share, I just think a whole truenas instance just for a few shares is way overkill. If I needed a samba share, NFS export, or an iscsi lun i would just spin up a Debian container and be done with it.

    • Xanza@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      You can do a share any number of ways. I simply banked on the fact that anyone willing to ask the question likely doesn’t know how to setup SMB shares without a GUI like TrueNAS.