Recreate a jail

Status
Not open for further replies.
Joined
Dec 7, 2013
Messages
95
I just had to reinstall FreeNAS due to a system drive failure.
I had an svn server running in a jail for my programming project.

Now is there a way to get that jail back (the data is still there) to the state it was in just before the failure?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The jails are ordinarily on the data pool, so none of your data or software there should be affected. If you have a backup of your config file, just upload it and you'll be set. Otherwise, look around here--I know there's been a thread or two recently addressing this situation, though I don't recall where off the top of my head.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
All you have to do is point the jail location to where it was. Reboot and like magic your jails should start working properly. This doesn't work on plugins though as they store special info in your config file that is lost if you lose your config file.
 
Joined
Dec 7, 2013
Messages
95
I did not have any plugins installed before the reinstall, I did install one after though.
What I did now was:
zfs rename datasets from .../jails_2 to .../jails
zfs destroy .../jails_2
Set jails folder to .../jails
Now, the dataset that was .../jails_2/mineos_1 had to be promoted so I could destroy jails_2
so I renamed .../jails/mineos_1 to .../jails/mineos_2, created a new mineos_1 dataset and rsynced the contents of the renamed folder to the new dataset.

Finally, I probably need to tell MineOS to look for it's data in the new location
 
Status
Not open for further replies.
Top