Plex can't see ZFS pool when trying to add library

So I just set up a new server (Ubuntu 22.04.3 LTS), installed Plex via snap, and set up a raidz1 pool. I can copy files to the pool, but when I go to add a folder on it to a plex library, the pool just doesn’t show up.

I’ve got the permissions set wide open (rwx access to everyone), but maybe I’m missing something there? I’ve also tried putting a symlink to the desired folder in a location Plex can see…but Plex sees the symlink as a file, and it’s greyed out and unselectable.

Any thoughts on how to get Plex to play nice with my ZFS pool?

/home$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  2.9M  1.6G   1% /run
/dev/sda4       916G   19G  851G   3% /
tmpfs           7.7G     0  7.7G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
efivarfs        192K  129K   59K  69% /sys/firmware/efi/efivars
/dev/nvme0n1p2  260M   37M  224M  14% /boot/efi
spa              22T  2.8G   22T   1% /spa
tmpfs           1.6G  1.7M  1.6G   1% /run/user/10

/home$ zfs list
spa   33.8G  21.0T     33.8G  /spa

/home$ zfs get mountpoint 
spa   mountpoint  /spa        default
Asked By: marcus erronius


I would suggest trying Daniel’s suggestion with a bind mount. Here, I assume your homedir is /home/marcus.

Then, you can create a bind mount (filesystem "loop"/"replication") like this.

First, create the new mountpoint:

mkdir /home/marcus/spa

Then, create the actual bind mount:

sudo mount --bind /spa /home/marcus/spa

Now the contents of /home/marcus/spa should for all purposes have the same contents as /spa.

You can also include this in /etc/fstab with the following line: (the last ,ro part can be added if you want the homedir "replica" of /spa to be only a read-only view).

/spa /home/marcus/spa none bind,ro

Additionally, see here for further reference.

Answered By: Artur Meinild
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.