Moving Jail Root

Status
Not open for further replies.

Mr Onion

Dabbler
Joined
Jul 16, 2016
Messages
27
Being a complete noob, I configured the jail root on the 'wrong' drive (I put it on the drive with my media that I want to access with plex)

I tried renaming it in Jails/Configuration but it does not 'stick'. Looking around the forum I have seen that I need to edit the database file, but I can not find how to do this. Any help is most welcome I am comfortable editing html/php/etc files and have the appropriate editor. I have no jails currently installed

FreeNAS-9.10.2-U1

TiA
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
You'll need to take a snapshot and send it to the other pool. Replace oldtank, newtank and jails with the correct values.

Stop all jails/plugins.

zfs snapshot -r oldtank/jails@snapshot
zfs send tank/jails@snapshot | zfs recv newtank


Then change your jail root.

Once your jails are moved, you can delete the old jails dataset.
 

Mr Onion

Dabbler
Joined
Jul 16, 2016
Messages
27
I tried that and all I get is errors.

Code:
zfs snapshot -r Music/jails@snapshot
zfs send Music/jails@snapshot | zfs recv Data/jails


Existing jail is in Music, new jail will be in Data

The error I am getting

Code:
[root@freenas ~]# zfs snapshot -r Music/jails@snapshot                        
cannot create snapshot 'Music/jails@snapshot': dataset already exists          
no snapshots were created                                                      
[root@freenas ~]# zfs send Music/jails@snapshot | zfs recv Data/jails    


The volumes are

volumes.jpg


I assume I am making another noob error, but being a noob I don't know what or where
 

ccssid

Explorer
Joined
Dec 12, 2016
Messages
86
I tried that and all I get is errors.

Code:
zfs snapshot -r Music/jails@snapshot
zfs send Music/jails@snapshot | zfs recv Data/jails


Existing jail is in Music, new jail will be in Data

The error I am getting

Code:
[root@freenas ~]# zfs snapshot -r Music/jails@snapshot                       
cannot create snapshot 'Music/jails@snapshot': dataset already exists         
no snapshots were created                                                     
[root@freenas ~]# zfs send Music/jails@snapshot | zfs recv Data/jails    


The volumes are

View attachment 15805

I assume I am making another noob error, but being a noob I don't know what or where


go to this youtube by iX Systems....may help you out.

https://www.youtube.com/watch?v=3DnUWTliaOY
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
I tried that and all I get is errors.

Code:
zfs snapshot -r Music/jails@snapshot
zfs send Music/jails@snapshot | zfs recv Data/jails


Existing jail is in Music, new jail will be in Data

The error I am getting

Code:
[root@freenas ~]# zfs snapshot -r Music/jails@snapshot                       
cannot create snapshot 'Music/jails@snapshot': dataset already exists         
no snapshots were created                                                     
[root@freenas ~]# zfs send Music/jails@snapshot | zfs recv Data/jails    


The volumes are

View attachment 15805

I assume I am making another noob error, but being a noob I don't know what or where
It looks like you don't have any jails yet. Just create a new dataset on 'Data' and change the jail root.
 

Mr Onion

Dabbler
Joined
Jul 16, 2016
Messages
27
I have done a little bit more searching and found a reference to running this to delete the jail root

Code:
warden template delete pluginjail


but it errors with

Code:
ERROR: Not a ZFS volume: /mnt/Music/jails/.warden-template-pluginjail          
cannot open 'Music/jails/.warden-template-pluginjail': dataset does not exist 


Music/jails does exist

headerbanner_acp.jpg


I'm still completely lost :mad:
 
Status
Not open for further replies.
Top