Upgrade but "Clean?"

ardyer

Cadet
Joined
Jul 27, 2022
Messages
4
I am currently running FreeNas 11.3-U5. The system was set up for me by a friend (I don't remember the original version), but since then I've had to reinstall and learned a lot doing so. The side effect of learning was that I know that I did some things wrong and/or less efficiently that I should have. I would like to upgrade to TrueNas but I would also like to get rid of those old mistakes and start fairly clean. My concern is though that I really only use this as a Plex server and I don't want to loose my data (although I don't mind resetting up Plex). What would be the best way to do this? In other words, will the regular upgrade process take care of this for me, since it is such a major update or do I need to go through the regular install process again? And if so, how to I make sure to protect all my media?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
your Plex database (separate from your Media Library... I'm assuming you know where that is and you're in control of not losing that) will be found somewhere like:

"/mnt/pool/iocage/jails/plex/root/config/Plex Media Server"

But that will depend on which install you're using and what options are specified to redirect the database to the /config location in the jail.

If you aren't finding it where I'm pointing, you can go to the shell of the jail and use this command:

find / -name "Plex Media Server"

Once you have it, grab that directory and its contents and then you can happily blow away whatever and put it back in place once you're done.

Make sure to take note of where your media library is relative to the jail (iocage fstab plex -l) (run on the host) as it's much easier if you can match that on the new install to make things match to the library without needing to re-scan everything.

You could just do a fresh install and import your pool(s) to it if you are OK with your pool layouts.
 

ardyer

Cadet
Joined
Jul 27, 2022
Messages
4
your Plex database (separate from your Media Library... I'm assuming you know where that is and you're in control of not losing that) will be found somewhere like:

"/mnt/pool/iocage/jails/plex/root/config/Plex Media Server"

But that will depend on which install you're using and what options are specified to redirect the database to the /config location in the jail.

If you aren't finding it where I'm pointing, you can go to the shell of the jail and use this command:

find / -name "Plex Media Server"

Once you have it, grab that directory and its contents and then you can happily blow away whatever and put it back in place once you're done.

Make sure to take note of where your media library is relative to the jail (iocage fstab plex -l) (run on the host) as it's much easier if you can match that on the new install to make things match to the library without needing to re-scan everything.

You could just do a fresh install and import your pool(s) to it if you are OK with your pool layouts.
Okay, I think we're already over my head. How do I grab the contents of the the Plex Media Server folder?

Also, is it normal to have two different "Jails" sections under on my main volume? I've attached a screenshot, one is under "iocage" and the other has it's own heading.
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    198.2 KB · Views: 184

ardyer

Cadet
Joined
Jul 27, 2022
Messages
4
It won't let me edit to add additional detail, but I wanted to clarify that I know how to copy stuff within the jail, but I thought the whole point of the jail was that it wasn't accessible for the rest of the OS.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Okay, I think we're already over my head. How do I grab the contents of the the Plex Media Server folder?

Also, is it normal to have two different "Jails" sections under on my main volume? I've attached a screenshot, one is under "iocage" and the other has it's own heading.
You can delete the jails dataset and its subordinates. This is what the warden jail manager used; but this became moot in 11.3, when the iocage jail manager took over.

It won't let me edit to add additional detail, but I wanted to clarify that I know how to copy stuff within the jail, but I thought the whole point of the jail was that it wasn't accessible for the rest of the OS.
No, the point of the jail is that it has no access to the host file system, other than what the host provides in the jail fstab. The host can merrily stomp all over the jail. As for editing the jail, this can only be done when the jail's not running.
 

ardyer

Cadet
Joined
Jul 27, 2022
Messages
4
You can delete the jails dataset and its subordinates. This is what the warden jail manager used; but this became moot in 11.3, when the iocage jail manager took over.


No, the point of the jail is that it has no access to the host file system, other than what the host provides in the jail fstab. The host can merrily stomp all over the jail. As for editing the jail, this can only be done when the jail's not running.
Great, I'll delete the jail set.

So if I want to copy something from a jail, is that just a regular cp command from the main shell?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Top