FlamingPooh
Dabbler
- Joined
- May 14, 2015
- Messages
- 10
hi, i'm setting up new freenas server, and i'm trying to use plex
I have it setup but i'm trying to point plex to use the media files on a different server, but i'm not 100% sure that that gets done.
I think that i need to mount the already networked storage (SMB share on a different device) into...either the jail or FreeNas itself and then point to it in the plex web.
I'm not 100% sure how that is done. if anyone can point me to the right direction, which commands i may want to try using, i would appreciate it.
edit.. TLDR thread:
Best practice seems to be mount Samba share in freenas shell, create a pre-init task with the mounting command, then load the mounted share into the jail with plex in it.
1. Figure out the mount_smbfs command that works in your networked case. (assuming you have a samba share you want to use for plex on another machine)
http://blog.up-link.ro/freebsd-how-to-mount-smb-cifs-shares-under-freebsd/
2. Create pre-init Task
After you have a working mount_smbfs command in shell, copy command into pre-init task , as mount_smbfs dosn't retain after a reboot. so it'll un-mount samba share if you lose power, creating the task make sure on boot, to redo the task
https://doc.freenas.org/11/tasks.html#init-shutdown-scripts
- side note, there also appears to be a way to use /etc/fstab to do it as well, i never got it working. and the above is easier to manage from FreeNas GUI
3. Add storage to jail
https://doc.freenas.org/11/jails.html#add-storage
Source is where you mounted the samba share in FreeNas
Destination is where you want the samba share in the Jail , due to a bug at the moment, you prob want to mount it in root of where plexmediaserver is installed i think its /usr/local/plexdata/plexmediaserver as for some reason plex can't the jail's root.
4. load shares in plex-web; ....hopefully self-explainable
Super thanks to everyone below, very helpful peoples
I have it setup but i'm trying to point plex to use the media files on a different server, but i'm not 100% sure that that gets done.
I think that i need to mount the already networked storage (SMB share on a different device) into...either the jail or FreeNas itself and then point to it in the plex web.
I'm not 100% sure how that is done. if anyone can point me to the right direction, which commands i may want to try using, i would appreciate it.
edit.. TLDR thread:
Best practice seems to be mount Samba share in freenas shell, create a pre-init task with the mounting command, then load the mounted share into the jail with plex in it.
1. Figure out the mount_smbfs command that works in your networked case. (assuming you have a samba share you want to use for plex on another machine)
Code:
mount_smbfs -I 192.168.1.1 //myUser@serverName/mySharedFolder /mnt/mySharedFolder
http://blog.up-link.ro/freebsd-how-to-mount-smb-cifs-shares-under-freebsd/
2. Create pre-init Task
After you have a working mount_smbfs command in shell, copy command into pre-init task , as mount_smbfs dosn't retain after a reboot. so it'll un-mount samba share if you lose power, creating the task make sure on boot, to redo the task
https://doc.freenas.org/11/tasks.html#init-shutdown-scripts
- side note, there also appears to be a way to use /etc/fstab to do it as well, i never got it working. and the above is easier to manage from FreeNas GUI
3. Add storage to jail
https://doc.freenas.org/11/jails.html#add-storage
Source is where you mounted the samba share in FreeNas
Destination is where you want the samba share in the Jail , due to a bug at the moment, you prob want to mount it in root of where plexmediaserver is installed i think its /usr/local/plexdata/plexmediaserver as for some reason plex can't the jail's root.
4. load shares in plex-web; ....hopefully self-explainable
Super thanks to everyone below, very helpful peoples
Last edited: