Sei sulla pagina 1di 12

XigmaNAS

 Quick links  FAQ  Noti cations  Private messages RobertoBenzi 

 Home ‹ Board index ‹ SOFTWARE ‹ Extensions / Add-ons Search…  

*New 12.1 series Release:


2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:


2019-10-19: XigmaNAS 11.3.0.4.7014 - released

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOW TO] Plex Media Server for N4F Embedded (No Jail Need)
Moderator: crest

Forum rules
• Set-Up Guide • FAQs • Forum Rules

Post Reply    Search this topic…   First unread post • 26 posts • Page 1 of 1

 
[HOW TO] Plex Media Server for N4F Embedded (No
Jail Need)
#1
JoseMR
 by JoseMR » June 9th, 2015, 1:32 am Hardware & Software Guru

Hi again folks, I've prepared another very simple guide on how to install and run the latest Plex
Media Server without Jail setups, for NAS4Free 9.3 x64 Embedded platforms, the Posts: 1252
Joined: April 16th, 2014, 4:15 am
recommended installation method. Location: PR
Contact: 
Status: Of ine
This method requires the help of mount_unionfs to unify the /usr/local le system in order to
transparently install the Plex package to the mounted location, note that this method will not break
and/or modify your NAS4Free Embedded because will not going to unify /var under any
circumstance.

EDIT: New and improved Plex Media Server Add-On HERE

The steps are very simple to follow, so let's get started.

First decide and create the directories that will be used for unionfs and the Plex Media Server with
your own paths:

CODE: SELECT ALL


mkdir -p /mnt/data/usr/local <--- Used for mount_unionfs, also where Plex will be install
mkdir /mnt/data/plexdata <--- Where Plex will place metadata, logs etc.
mkdir /mnt/data/plextmp <--- Where Plex will place temporal transcoding.

Now go to System|Advanced|Command scripts and add the following command for mount
/usr/local as PostInit:

CODE: SELECT ALL


mount_unionfs /mnt/data/usr/local /usr/local

then reboot the server, after reboot from console/SSH type this command:

CODE: SELECT ALL


df -h

and you should see the newly mounted le system line like this:

CODE: SELECT ALL


<above>:/mnt/data/usr/local

Secondly, create the Plex user and group.

Go to Access|Groups and add the following info:

CODE: SELECT ALL


Name: plex
Group ID: 972
Description: Plex media server

Go to Access|Users and add the following info:

CODE: SELECT ALL


Name: plex
Full Name: Plex media server
User ID: 972
Primary group: plex

Third, add the required Plex parameters to rc.conf.

Go to System|Advanced|rc.conf and add the following info:

CODE: SELECT ALL


Name: plexmediaserver_plexpass_enable
Value: YES
Comment: Plex enabled

Name: plexmediaserver_plexpass_support_path
Value: /mnt/data/plexdata
Comment: Plex data location

Name: plexmediaserver_plexpass_tmp
Value: /mnt/data/plextmp
Comment: Plex tmp location

Tip: you may want to edit the existing size of /var from 128MB to 256MB to prevent errors while
fetching the Plex package:

CODE: SELECT ALL


Name: varsize
Value: 256MB
Comment: Default /var size

Last steps to do, install Plex Media Server package and set auto-start on reboots.

Go to System|Advanced|Command scripts and add the following command as PostInit:

CODE: SELECT ALL


/usr/local/etc/rc.d/plexmediaserver_plexpass start

Now install Plex Media Server from Console/SSH with the following command:

CODE: SELECT ALL


pkg install plexmediaserver-plexpass

after package installation please skip any on-screen instructions and reboot server.

To access Plex WebGUI: http://nas-ip:32400/web


That's all Enjoy!

To upgrade Plex using this installation method just use the following commands below:

CODE: SELECT ALL


Stop Plex Media Server
# /usr/local/etc/rc.d/plexmediaserver_plexpass stop

Install Plex Media Server


# pkg install plexmediaserver-plexpass

Skip any on-screen instructions and reboot server.

This will reinstall Plex over the previous Plex installation replacing old les with the new ones, and
Plex will reload the existing libraries, con guration and metadata as they are located in the
plexdata folder.

If you still want to install also upgrade packages in a normal fashion using this installation method
please read This

Currently tested and working on NAS4Free 9.3 x64 Embedded with either UFS/ZFS mount points.

Notes:
1) Stay aware of the Bugs/Limitations of mount_unionfs
2) Please never unify the entire /var directory as this leads to strange behaviors/breakage, read
more Here
3) Be aware that there is some strange bug/issues with NAS4Free 10.1 and Plex, for some reasons
the main Plex service crash/exit on signal 6 by itself, so this method is currently working on
NAS4Free 9.3 so far.

Disclaimer: This Plex Media Server installation guide is provided AS-IS and I'm not responsible for
any data loss or damage caused by the instructions provided in this guide, use at your own risk.

Last edited by JoseMR on October 8th, 2016, 10:33 pm, edited 6 times in total.

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#2

 by ernie » June 9th, 2015, 6:59 am


ernie
Forum Moderator
Thanks JoseMR for this.

I have a noob question: Posts: 1424


Joined: August 26th, 2012, 7:09 pm
What are drawback/advantage of full install of Plex in Nas4free versus install in jail ? Location: France - Val d'Oise
Is it performance ? Contact: 
Status: Of ine
BR

NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#3

 by JoseMR » June 9th, 2015, 7:49 am


JoseMR
Hello ernie, there is virtually no difference regarding performance afaik, however some Hardware & Software Guru
users(including me) have experienced some networks issues where Plex/DLNA are not visible on
the network if running within a jail, so the IP needs to be entered manually on each device and Posts: 1252
sometimes the connection just drops upon set-top box restart. Joined: April 16th, 2014, 4:15 am
Location: PR
Contact: 
Aditionally this guide will help new users to run a simple File/Media server without to much hassle Status: Of ine
on Embedded

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#4

 by tigerdog » June 24th, 2015, 7:02 pm


tigerdog
How much memory is consumed by Plex? I'm currently using 9.2.0.1 x86 embedded and MiniDLNA Starter
as server. This con g uses only 19% of my server's (small) 797M memory (1G total). Can Plex run
on an embedded machine with only 1G memory? Note, CPU is Celeron 430, so I could run 64-bit Posts: 16
NAS4Free if needed. Joined: November 28th, 2012, 7:35 pm
Contact: 
Status: Of ine

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#5

 by raulfg3 » June 24th, 2015, 10:15 pm


short answer=no. raulfg3
Site Admin
Long = try it and say us the reallity

Posts: 5000
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size Joined: June 22nd, 2012, 10:13 pm
only 22TB usable Location: Madrid (ESPAÑA)
Contact: 
Wiki Status: Of ine
Last changes

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#6

 by JoseMR » June 24th, 2015, 11:04 pm


JoseMR
As raulfg3 said, you can try it(Plex is x64 only), just monitor the RAM/CPU usage during streaming, Hardware & Software Guru
but remember Plex uses more CPU during transcoding rather than RAM, so try streaming any
movie that requires on the y transcoding such a highly compressed movie, if the movie start Posts: 1252
buffering constantly, the quality is very poor and/or lags then your system is lacking CPU power. Joined: April 16th, 2014, 4:15 am
Location: PR
Contact: 
Read more about Plex Full Transcode Here Status: Of ine

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#7
MikeMac
 by MikeMac » June 24th, 2015, 11:54 pm Forum Moderator

I personally had installed Plex into chroot (created by Finch). There is an advantage over jailed
installation - no "networks issues where Plex/DLNA are not visible on the network" Posts: 498
Joined: October 7th, 2012, 11:12 pm
Location: Moscow, Russia
I am not sure about advantage over this metod - but in chroot I have completelly separated Contact: 
Status: Of ine
FreeBSD, with possibility to update it, install any sw and update it.

More, I use chroot on a separate dataset and have snapshot functionality similar to root on zfs, but
on embedded nas4free.

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#8

 by tigerdog » June 25th, 2015, 1:21 am


tigerdog
Thank you for the feedback. I do not intend to transcode at all, so lack of CPU shouldn't be an Starter
issue. The application is purely for streaming audio and video in the stored format, typically FLAC,
to devices that directly handle it. More interested in RAM. If others have already done this, I'd Posts: 16
appreciate knowing the RAM (and CPU, I guess) when streaming but not transcoding. Thanks for Joined: November 28th, 2012, 7:35 pm
the replies so far! Contact: 
Status: Of ine

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#9

 by JoseMR » June 25th, 2015, 1:31 am


JoseMR
Hi MikeMac good point about chroot, I've used Finch before and it had some advantages over Hardware & Software Guru
TheBrig(v0.8) regarding the network issues.
Posts: 1252
Though I personally think downloading a full blown FreeBSD environment for just a small media Joined: April 16th, 2014, 4:15 am
Location: PR
server app is quite overkill, and with unionFS method Plex works just ne and I've upgraded the Plex
Contact: 
twice with no issues. Status: Of ine

Also with this method I got Plex running in just few minutes with only few settings through the
WebGUI and very minimal CLI.

But yes, not every application can run without /var like in this method, in that case Jails is the way
to go.

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#10

 by JoseMR » June 25th, 2015, 1:36 am


JoseMR
Hi tigerdog, streaming direct media should not be an issue, I've tested Plex from a VM before and Hardware & Software Guru
direct play utilize little RAM, unless you are streaming them from a ZFS pool, in that case the le will
be cached in the ARC(RAM) and is normal behavior. Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Contact: 
XigmaNAS RootOnZFS
Status: Of ine
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#11

 by tigerdog » June 25th, 2015, 2:04 am


tigerdog
great info. Thanks, JoseMR. Gives me enough con dence to at least give Plex a try. Starter

Posts: 16
Joined: November 28th, 2012, 7:35 pm
Contact: 
Status: Of ine

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#12

 by lindsay » June 25th, 2015, 2:50 pm


lindsay
Forum Moderator
As i have a plexpass i can download new, but how do you update/upgrade PLEX?

Posts: 309
Joined: June 23rd, 2012, 9:59 am
Protected by smoothiebox Red,Green, Location: Steinkjer,Norway
Purple,Orange Zones/VLAN`s Contact: 
Powered by AMD A10-6700T Status: Of ine

XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)


Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#13

 by JoseMR » June 25th, 2015, 8:40 pm


JoseMR
Hardware & Software Guru
 lindsay wrote:
As i have a plexpass i can download new, but how do you update/upgrade PLEX?
Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
Upgrading packages inside a chroot/jail should be like in a normal FreeBSD install, just use pkg
Contact: 
upgrade. Status: Of ine

Regarding the Plex package plexmediaserver is the old Plex package name, is now called
plexmediaserver-plexpass(don't requires Plexpass membership for free usage) so you may have
to uninstall the old Plex package before install the new Plex server.

To upgrade Plex using the installation method on this thread just use the following commands
below:

CODE: SELECT ALL


Stop Plex Media Server
# /usr/local/etc/rc.d/plexmediaserver_plexpass stop
Install Plex Media Server
# pkg install plexmediaserver-plexpass

Skip onscreen instructions and reboot.

This will reinstall Plex over the previous Plex installation replacing old les with the new ones, and
Plex will reload the existing libraries, con guration and metadata as they are located in the
plexdata folder.

Regards

EDIT:
If you want to install also upgrade packages in a normal fashion you must unify /var/db in order
for the system to be aware of the installed packages

CODE: SELECT ALL


mount_unionfs /mnt/data/var/db /var/db

I have tested it under a VM and it don't break NAS4Free Embedded WebGUI and I found no strange
behaviors so far, though I'm still testing this on real hardware, so proceed at your own risk.

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#14

 by ernie » July 4th, 2015, 2:21 pm


ernie
Forum Moderator
Hello

I am installing as your post. Posts: 1424


Joined: August 26th, 2012, 7:09 pm
Location: France - Val d'Oise
One question as I am running zrep, so it send zfs con guration & contents to another nas. Contact: 
Status: Of ine
On this second nas, if I don't want that Plex is launched I think that I need to not put this
/usr/local/etc/rc.d/plexmediaserver_plexpass start
in script as postinit.

Am I rigth ?

I would like avoid 2 dlna plex at same time on my network.

And with the rst step I don't have:


<above>:/mnt/data/usr/local

I create a dataset 'plex' where I create the 3 folders. I put mount_unionfs command, I reboot, but
the command df -h doesn't show:
<above>:/mnt/data/usr/local

only :

CODE: SELECT ALL


nas4free1: ~ # df -h
Filesystem Size Used Avail Capacity M
/dev/xmd0 119M 34M 85M 29% /
devfs 1.0k 1.0k 0B 100% /
/dev/xmd1 719M 247M 471M 34% /
procfs 4.0k 4.0k 0B 100% /
/dev/ufsid/54eda96ee0269960 902G 803G 26G 97% /
pool1 3.0T 18G 3T 1% /
pool1/apple 3T 1.7G 3T 0% /
pool1/btsync 3T 52M 3T 0% /
pool1/documents 3.0T 57G 3T 2% /
pool1/extensions 3T 44M 3T 0% /

Is mount_unionfs reserved to folder and no dataset ?

Thanks

NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#15

 by JoseMR » July 7th, 2015, 5:18 pm


JoseMR
Hardware & Software Guru
 ernie wrote:
if I don't want that Plex is launched I think that I need to not put this
Posts: 1252
/usr/local/etc/rc.d/plexmediaserver_plexpass start Joined: April 16th, 2014, 4:15 am
Location: PR
in script as postinit.
Contact: 
Status: Of ine
Am I rigth ?

Correct, don't put that line to PostInit if Embedded, also you may want to edit the parameter
plexmediaserver_plexpass_enable and change to NO or just delete the parameter under
System|Advanced|rc.conf to prevent it from starting manually as well.

 ernie wrote:
And with the rst step I don't have:
<above>:/mnt/data/usr/local

I create a dataset 'plex' where I create the 3 folders. I put mount_unionfs command, I reboot, but
the command df -h doesn't show:
<above>:/mnt/data/usr/local

/mnt/data/usr/local is the path on my example, you need to edit the path with your own, for
example /mnt/pool1/plexdataset.

 ernie wrote:
Is mount_unionfs reserved to folder and no dataset ?

Unionfs works on UFS and ZFS directories under FreeBSD.

However I've noticed that you have /usr/local and /var/db already mounted:

CODE: SELECT ALL


<below>:/mnt/pool1/sup/opt/usr_local 6T 6T 471M 100% /u
<below>:/mnt/pool1/sup/opt/var_db_pkg 3T 3T 90M 100% /v

DO NOT try to duplicate /usr/local, /var/db system directories or you will end up with a Server
internal error and unresponsive Console/SSH, and booting from LiveCD/USB is required to
x/replace the con g.xml

If you need Plex just use pkg install plexmediaserver-plexpass and mannually add the required
parameters to System|Advanced|Command scripts, System|Advanced|rc.conf and Access|Users
and Groups on the main Server.

Also you may want to try and play with Plex under a VM before making changes, the easiest way
to get Plex up and running in minutes is with my ezPlex Add-On script, it will auto create an Unionfs
under Embedded or natively install if Full followed by the required WebGUI entries.

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#16

 by ernie » July 7th, 2015, 11:07 pm


ernie
Forum Moderator
These mount comes from zrep. So if I understood correctly, I need only to launch the installation
and the con guration of variables in nas4free. Am I right ?
NAS 1&2: Posts: 1424
Joined: August 26th, 2012, 7:09 pm
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC Location: France - Val d'Oise
XigmaNAS 12.0.0.4.6766 embedded Contact: 
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on Status: Of ine
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#17

 by JoseMR » July 8th, 2015, 1:45 am


JoseMR
Hardware & Software Guru
 ernie wrote:
These mount comes from zrep. So if I understood correctly, I need only to launch the installation
Posts: 1252
and the con guration of variables in nas4free. Am I right ? Joined: April 16th, 2014, 4:15 am
Location: PR
Contact: 
Correct, as the Unionfs already exist all you have to do is install Plex through SSH and manually Status: Of ine
add the Plex entries on the WebGUI.

Since ezPlex will look for directory patterns like /usr/local and var/db on the current directory,
ezPlex is not an option unless you temporary disable the unionfs reboot and x the /usr_local,
/var_db directory patterns(not recommended)

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#18

 by ernie » July 11th, 2015, 2:49 pm


ernie
Forum Moderator
Hello JoseMR,

One question more. You write: Posts: 1424


Joined: August 26th, 2012, 7:09 pm
Location: France - Val d'Oise
 Contact: 
Status: Of ine
DO NOT try to duplicate /usr/local, /var/db system directories or you will end up with a Server
internal error and unresponsive Console/SSH, and booting from LiveCD/USB is required to
x/replace the con g.xml

OK but in fact I have also phpvbox which has an issue:

- phpvbox:

CODE: SELECT ALL


<below>:/mnt/pool1/vbox/install/usr_local 3T 3T 471M 100% /u

-zrep:

CODE: SELECT ALL


<below>:/mnt/pool1/sup/opt/usr_local 6T 6T 471M 100% /u
<below>:/mnt/pool1/sup/opt/var_db_pkg 3T 3T 90M 100% /v

So there is already a con ict, isn't it ?

Do I use in fact the mount of phpvbox for also zrep and also Plex ?

Thanks for your help

NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#19

 by JoseMR » July 11th, 2015, 7:05 pm


JoseMR
Hello, I usually recommend to use only one Unionfs instance for /usr/local and /var/db in the Hardware & Software Guru
same disk/dataset location for installing packages, as multiple unionfs on /usr/local and/or
/var/db could result in unexpected behaviours like I experienced while playing on VM's before. Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
However if your system is working as expected, please don't try to x, it could lead you to start over
Contact: 
and/or redo complex things again, unfortunately I have no experience with zrep. Status: Of ine


Do I use in fact the mount of phpvbox for also zrep and also Plex ?

Yes, Unionfs will just unify/extend /urs/loca/ and /var/db in order for the system transparently
install packages like a native FreeBSD installation, thats why I never give unionfs directory a name
related with a speci c package, because unionfs is for every package you install, therefore
preventing confusion.

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#20

 by ernie » July 11th, 2015, 7:37 pm


ernie
Forum Moderator
If I leave as it, one question:

1) which mount union do I need to use for Plex : zrep or phpvbox ? Posts: 1424
Joined: August 26th, 2012, 7:09 pm
2) if I use ezplex, which folder will be used ? mount of zrep or phpvbox ? Location: France - Val d'Oise
Contact: 
Status: Of ine
It will be good perhaps for add-on/extensions to have a reference rule for mount union : all will
use mount union in /pool/addon/var or /pool/addon/usr
where pool can change but not the end.
It will perhaps simplify compatibility between extensions/add on.

Thanks for your answer, and feel free to comment my last remark/proposition.

Edit
Based on a discussion with Sea1150, more information.
Zrep is using a mount on the lower layer.
Phpvbox is on the upper layer.
So it works.
Now a question: which layer plex will see ? I think the upper layer.

NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#21

 by JoseMR » July 12th, 2015, 3:14 am


JoseMR
Hardware & Software Guru
 ernie wrote:
If I leave as it, one question: Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
1) which mount union do I need to use for Plex : zrep or phpvbox ? Contact: 
Status: Of ine

You can use any existing /usr/local Unionfs for Plex, /var/db is optional but recommended for the
system be aware of the installed packages so you can easily update/upgrade/delete them with
pkg command, zrep union seems okay except for the lower layer.


2) if I use ezplex, which folder will be used ? mount of zrep or phpvbox ?

You can use ezPlex.php on any existing /usr/local, /var/db unions, however your unionfs has an
odd directory structure: /usr_local instead /usr/local same with /var_db.

The problem is that ezPlex will auto create/mount the Unionfs for you or skip the creation/mount if
the directories exist, but the directory structure needs to be for example:
/mnt/pool1/sup/opt/usr/local same with /var/db, so installing by hand is preferred.


It will be good perhaps for add-on/extensions to have a reference rule for mount union : all will
use mount union in /pool/addon/var or /pool/addon/usr
where pool can change but not the end.
It will perhaps simplify compatibility between extensions/add on.

If I understand correctly you should not worry about Extensions compatibility issues, Extensions like
TheBrig, Extended-GUI and so on, they are simply scripts and php web pages to add extra
functionality to NAS4Free and can be installed on any dedicated persistent location, however is
mandatory to install of cial FreeBSD packages under Unionfs or Jails on NAS4Free Embedded ,
since the default install location for FreeBSD packages is /usr/local, and the pkg database is
located by default in /var/db.


Edit
Based on a discussion with Sea1150, more information.
Zrep is using a mount on the lower layer.
Phpvbox is on the upper layer.
So it works.
Now a question: which layer plex will see ? I think the upper layer.

Based in my experience, I've tested and had no success with Plex on the lower layer(below)
unions, and expected results in the upper layer.

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#22

 by ernie » July 12th, 2015, 9:43 am


ernie
Forum Moderator
Thanks JoseMR

Zrep is using lower layer. Plex will use supper layer. Posts: 1424
Joined: August 26th, 2012, 7:09 pm
Do I need to change the name of folder var_db and usr_local, even if it is not the same layer ? Location: France - Val d'Oise
Contact: 
Status: Of ine
BR

NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#23

 by JoseMR » July 12th, 2015, 11:19 pm


JoseMR
Hardware & Software Guru

 ernie wrote:
Thanks JoseMR Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
Zrep is using lower layer. Plex will use supper layer. Contact: 
Do I need to change the name of folder var_db and usr_local, even if it is not the same layer ? Status: Of ine

BR

It really don't matter unless you plan to run ezPlex.php or just want to x the directory structure to
its default on purpose.

If you planning on x the directory structure to look like /usr/local instead of usr_local you need to
temporarily disable the union_mount PostInit commands and reboot .

After reboot verify with df -h if no unionfs is mounted, then rename usr_local to local then create a
directory called usr in the same dir of local then move local directory to usr, same apply to var_db

Then re-enable the mount_unionfs PostInit commands with the new directory structure. e.g:
mount_unionfs -o below /mnt/pool1/sup/opt/usr/local and same for /var/db

If you feel uncomfortable with the console/ssh, the easiest way to accomplish this is with WinSCP
or Filezilla

Note than Plex run on upper layer as previously commented.

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#24

 by ernie » July 13th, 2015, 9:30 am


ernie
Forum Moderator
Thanks JoseMR. I Will test it

Posts: 1424
Joined: August 26th, 2012, 7:09 pm
NAS 1&2: Location: France - Val d'Oise
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC Contact: 
XigmaNAS 12.0.0.4.6766 embedded Status: Of ine
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:


NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail   eddi1984
NewUser
Need)
#25
Posts: 1
 by eddi1984 » April 22nd, 2016, 6:49 pm
Joined: April 22nd, 2016, 6:46 pm
Contact: 
Hi folks, Status: Of ine

I am following the instructions to the "t", however, after the reboot, the directories that I created
(/mnt/data/usr/local) are gone after the reboot. What am I missing.

I have nas4free 10.2.0.2 - Prester (revision 2545).

Thanks.

Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail  
Need)
#26

 by JoseMR » April 22nd, 2016, 11:51 pm


JoseMR
Hello welcome to the forum, you need to create the directories on a persistent data location i.e Hardware & Software Guru

your shared disk, also remember if you will try UnionFS to install packages, make sure is UFS, since
mounting UnionFS from UFS to ZFS can cause unexpected behaviors, also if you don't want to mess Posts: 1252
around with NAS4Free or how to run Plex, you could try my latest Plex Add-On for NAS4Free: Joined: April 16th, 2014, 4:15 am
Location: PR
viewtopic.php?f=71&t=10506 Contact: 
it does not require jails, unionfs or complex con gurations. and I'm providing upgrades on time Status: Of ine

Regards

System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Quick Reply

Subject: Re: [HOW TO] Plex Media Server for N4F Embedded

Full Editor & Preview   Submit  

Post Reply      26 posts • Page 1 of 1

 Return to “Extensions / Add-ons” Jump to 

 Home ‹ Board index  Policies  Delete cookies

© 2018 XigmaNAS®, Flat Style by Ian Bradley, All Rights Reserved.


Powered by phpBB® Forum Software © phpBB Limited
Privacy | Terms

Potrebbero piacerti anche