Jail Root Location

Status
Not open for further replies.

WillD

Dabbler
Joined
Oct 16, 2013
Messages
18
I'm running - FreeNAS-9.2.1.2-RELEASE-x64

I'm not able to change the location of where the jail root files are stored. I tried to changed the location numerous times but Freenas defaulted to first ZFS Volume and created a folder named "jails".

To test I detached the first ZFS Volume and so that the second is now first. As expected regardless of the what I enter in the Jail Root it defaults to first volume. When i look at the configuration for Jail Root it changes it. Although i saved a different location.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Did you create a jail already?
 

WillD

Dabbler
Joined
Oct 16, 2013
Messages
18
I just did a fresh install and noticed this behavior, since i was trying to put the Jail is on a specific Volume. I created and deleted several jails.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Once you create a jail you cannot change the location later. If you need to change the location you'll have to manually edit the sql database for FreeNAS config file. There's a short post somewhere with instructions on how to do it. You can do it, but it's totally at your own risk. My advice is to create the jail exactly where you want it and don't expect to change it later.
 

WillD

Dabbler
Joined
Oct 16, 2013
Messages
18
Thanks... but maybe i'm not clear enough. I did a fresh install.. I have 3 Volumes on my system. I wanted to save all the Jails on the 3 volume. I specified that in jail root. Save it. When i created the Jail it defauled to 1st volume in a Jails directory and the Config value "Jail Root" was changed to 1st volume and not 3rd volume. I removed the jail and ran into the same problem creating a new one. I will not allow me to change it to Volume 3. I had to detach the volumes so that Volume 3 is now 1st in the ZFS manager.

I would expect that regardless the location i specify to build a jail it should do that.

Thanks for you info.
 
D

dlavigne

Guest
In that case, it sounds like a bug (assuming that adding jails does this, rather than using Plugins which uses its own hard-coded root).

By volumes, do you mean 3 ZFS pools (volumes) or 3 datasets?
 

WillD

Dabbler
Joined
Oct 16, 2013
Messages
18
In that case, it sounds like a bug (assuming that adding jails does this, rather than using Plugins which uses its own hard-coded root).

By volumes, do you mean 3 ZFS pools (volumes) or 3 datasets?


Yes 3 ZFS pools.
 

TheSmoker

Patron
Joined
Sep 19, 2012
Messages
225
I had the same problem. The way i worked around that (new nas box install):
- delete all pools;
- first create the pool you want the jails on;
- install first jail;
- then create the rest.
If you are on existing installation ... That might be a problem. Maybe export the pools and reimport after finishing with the jails.
 
D

dlavigne

Guest
Please create a bug report at bugs.freenas.org and post the issue number here.
 

jakeandchase

Explorer
Joined
Aug 26, 2014
Messages
53
Was this fixed? I'm having the same issue.

Changed the jail root in the settings but it keeps reverting back.
 

strelok

Dabbler
Joined
Jan 28, 2015
Messages
36
Hello !

I'm learning FreeNAS and have some question regarding to location Jails.

Is it possible to create Jails at different volumes/datasets ?

I have two volumes: tank and tank2
By default I have Jaill root at /mnt/tank/jails

But I would like to have Jail for Transmission on another volume - tank2.

So, am i understanding correctly , that I can have Jails only at one volume/dataset that defined in configuration Jail root ?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
No. Jails have to go in the same place.
 
Status
Not open for further replies.
Top