+-------+-------------------------------------------------------------------------------------------------------------------------------------------+ | 15 | /mnt/flospool/media /mnt/flospool/iocage/jails/pms/root/media nullfs rw 0 0 | +-------+-------------------------------------------------------------------------------------------------------------------------------------------+
In the next two years, we expect CORE users to either:
- Migrate their plugins to personally managed jails and remain on CORE
- Migrate from CORE to SCALE and rebuild their applications using the simpler Apps or VMs
Hey DanB. Me again. I was looking through your scripts and noticed that you've made a big difference in your Plex installation vs what I have now. I didn't put the metadata outside of the jail. I will certainly research and explore this on my own, but I wanted a good sanity check before beginning: How difficult is it to move the metadata outside of the jail once the jail has been setup? Thanks for your insight. Appreciate you!danb35 submitted a new resource:
Scripted Plex installation - Script to install Plex Media Server
Read more about this resource...
Not very. Stop the plex process, tar up the config/metadata, untar it in the new directory. Or you could even copy it directly; all the files inside a jail are accessible from the host. It takes a while, as it adds up to quite a bit of data, but it isn't particularly difficult.How difficult is it to move the metadata outside of the jail once the jail has been setup?
It matches what they say for FreeBSD pretty well (i.e., exactly). I'm thinking the FreeNAS 11 entries are left over from when plugins were done very differently.It doesn't match up with any resources elsewhere, even Plex's website
I don't know that I have one especially. I prefer keeping it outside of the jail (which is why my script works that way), and I'd probably favor keeping snapshots over a regular tar process. Again, the metadata can be pretty big--tens of GB and thousands of files isn't that uncommon--and running a regular tar backup could take quite a while. But other than that, I don't see a particular reason not to do it.What's your opinion on a daily script to tar the entire 'metadata' directory and move it to a folder outside of the jail?
Ok, I've already copied them over. I just need to find in Plex where the metadata needs to be stored when the jail starts. Searching all over the interweb, I haven't found it. The best I've found are some instructions to create a 'symlink' to the new folder. I've already tasked you today, so humbly ask: Is there a config file for plex somewhere where I can simply change the metadata directly location?It matches what they say for FreeBSD pretty well (i.e., exactly). I'm thinking the FreeNAS 11 entries are left over from when plugins were done very differently.
I don't know that I have one especially. I prefer keeping it outside of the jail (which is why my script works that way), and I'd probably favor keeping snapshots over a regular tar process. Again, the metadata can be pretty big--tens of GB and thousands of files isn't that uncommon--and running a regular tar backup could take quite a while. But other than that, I don't see a particular reason not to do it.
The reason I recommended stopping the Plex process is to ensure that the metadata remains in a consistent state while you're moving it around. It may not be necessary, but it seems like a good precaution.
Not a config file as such, but a command you can run inside the jail:there a config file for plex somewhere where I can simply change the metadata directly location?
sysrc plexmediaserver_support_path="/path/to/metadata"
sysrc plexmediaserver_support_path="/mnt/Pool1/plexmetadata/Metadata"
/mnt/Pool1/plexmetadata/Metadata
that the jail sees as /media/plexmetadata
sysrc plexmediaserver_support_path="/media/plexmetadata"
Yes.So I should always create mount points when the jail needs to reference anything outside of it.
This is incorrect. You're inadvertently referencing a path outside the jail. The jail has no concept of "/mnt/Pool1/....." Only the proper TrueNAS host has such access. You need to reference the path in the jail itself that points to this location. (This location, which you gave access to the jail via a mountpoint.)Now in the jail console (after stopping the plex server), I can type: sysrc plexmediaserver_support_path="/mnt/Pool1/iocage/jails/plex/root/media/metadata"
/mnt/pool/iocage/jails/jailname/root
is where the jail's root filesystem begins, and hence, how it "sees the world".Aaaaah. I finally get it now. Not only can I not reference anything outside of the jail from inside it with any commands or configs, it doesn't know the outside even exists. So referencing it would never work.Yes.
This is incorrect. You're inadvertently referencing a path outside the jail. The jail has no concept of "/mnt/Pool1/....." Only the proper TrueNAS host has such access. You need to reference the path in the jail itself that points to this location. (This location, which you gave access to the jail via a mountpoint.)
See my previous post for an example.
EDIT: To help you see it from a different perspective, consider this:
Anything after/mnt/pool/iocage/jails/jailname/root
is where the jail's root filesystem begins, and hence, how it "sees the world".
Take this path on your TrueNAS system, for example...
/mnt/pool/iocage/jails/myapp/root/media/downloads
If this is the real path from the host's perspective...
/mnt/pool/iocage/jails/myapp/root/media/downloads
Then this is the path, as seen (and understood) from within the "myapp jail"...
/media/downloads
(Where mountpoints come into play is directing certain paths, within the jail, to have access outside of the jail.)