Transferring Plex like nothing ever happened....to FreeNAS 11.3

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Hi folks, I've been trying to follow some of these posts but get lost after the 2 or 3 commands.
I originally had a Plex plugin created in 9.x and its' worked until I just updated to 11.3 Once I went to 11.2 it worked, but it would never update. I think the last version of the Plex server was 1.14.xxx. I just installed the Plex plugin on 11.3, but don't want to start from scratch. I have way too many users, playlist, view counts, etc.. My question, and I know it's been asked before, how do I move that database to this new plugin, like nothing ever happened? Since we are all home, maybe someone can help me personally.

Thanks
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285

anmnz

Patron
Joined
Feb 17, 2018
Messages
286
Take another look... those are generic instructions with some specific hints for Windows, Mac, Linux, and at least one mention of "NAS devices".
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Take another look... those are generic instructions with some specific hints for Windows, Mac, Linux, and at least one mention of "NAS devices".
Yep. I did. Doesn't really say anything on how to do it.
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
With the caveat that you will need to read and learn a little, this is essentially what you'll do:

- Don't use a plugin
- Create a dataset for the Plex metadata, make sure it's not a Windows permissions dataset
- Create a Plex jail that links to that dataset. I like this script for it: https://github.com/danb35/freenas-iocage-plex
- Stop the plexmediaserver
- Use rsync to copy your old metadata into the new dataset. Reading this will teach you how: https://www.ixsystems.com/community...o-dataset-while-preserving-permissions.47730/

And there you go, Plex should be back with the old metadata. Bonus, it is now trivial to redo the jail if your Plex jail ever dies on you.

White Knight out.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
With the caveat that you will need to read and learn a little, this is essentially what you'll do:

- Don't use a plugin
- Create a dataset for the Plex metadata, make sure it's not a Windows permissions dataset
- Create a Plex jail that links to that dataset. I like this script for it: https://github.com/danb35/freenas-iocage-plex
- Stop the plexmediaserver
- Use rsync to copy your old metadata into the new dataset. Reading this will teach you how: https://www.ixsystems.com/community...o-dataset-while-preserving-permissions.47730/

And there you go, Plex should be back with the old metadata. Bonus, it is now trivial to redo the jail if your Plex jail ever dies on you.

White Knight out.
Thanks. I'll delete the Plex plugin I just installed in 11.3
Let me give this a try.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Set up plex in a new standard jail. Then you need to copy the contents of the /Plex Media Server directory over from your current jail to the new plex jail. I don't know what the install directory is for the old plugin but the current install directory where you need copy it to is /mnt/iocage/jails/your new plex jail name/root/usr/local/plexdata/Plex Media Server

Easiest way to accomplish it is from the root shell using rsync.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
With the caveat that you will need to read and learn a little, this is essentially what you'll do:

- Don't use a plugin
- Create a dataset for the Plex metadata, make sure it's not a Windows permissions dataset
- Create a Plex jail that links to that dataset. I like this script for it: https://github.com/danb35/freenas-iocage-plex
- Stop the plexmediaserver
- Use rsync to copy your old metadata into the new dataset. Reading this will teach you how: https://www.ixsystems.com/community...o-dataset-while-preserving-permissions.47730/

And there you go, Plex should be back with the old metadata. Bonus, it is now trivial to redo the jail if your Plex jail ever dies on you.

White Knight out.
- Create a dataset for the Plex metadata, make sure it's not a Windows permissions dataset - Can I use the Plex metadata dataset I have there under Pools?
https://github.com/danb35/freenas-iocage-plex - link is not working.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Set up plex in a new standard jail. Then you need to copy the contents of the /Plex Media Server directory over from your current jail to the new plex jail. I don't know what the install directory is for the old plugin but the current install directory where you need copy it to is /mnt/iocage/jails/your new plex jail name/root/usr/local/plexdata/Plex Media Server

Easiest way to accomplish it is from the root shell using rsync.
This is the kind of thing I don't understand. I'm trying to follow but it gets me lost.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
This is what I have under Pools.
1585871325182.png


What do I do now?
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
For giggles, I tried to actually use danb35's script. Turns out, I can't - the jail gets created and then has limited network connectivity. That might be my environment. Testing.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Thanks. I'm following a fellow suggestion and so far so good.
rsync is running. It's taking a while...
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
You guys can see how big my database is. You know roughly how long rsync takes for every 1GB?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
It will take a while. Mine took quite some time last time I migrated it and it's no where near the size of yours.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
It finished a little while ago. Took over 4 hrs
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Got everything working. I'm going to write down what I did with help from a fellow user.

Now I have an issue with sharing. I have 2 folders:
1585968295397.png


Backup files works fine and its sub folder.
I have the opposite effect from Media-Storage, I can see the main folders, but i can't access its sub-folder. What gives? I think its an ACL issue but don't know what to change.
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Awesome! I have since created a video that walks through that process. It is all documented already and, if someone isn't at home on CLI, a video can help. https://youtu.be/GvM32lWc_r4
 
Last edited:

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Awesome! I have since created a video that walks through that process. It is all documented already and, if someone isn't at home on CLI, a video can help. https://youtu.be/8I7JBwfAd_4
Let me take a look now... Will report back in 30 min when i view the whole thing
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
You have a lot of stamina ...
 
Top