Move jail to new drive

sakings7402

Cadet
Joined
Apr 25, 2023
Messages
2
I was running my jail for plex on an external hard drive. I am now updating my server and want to move my current jail as is to the new internal drive. I want to do this in order to speed things up so that it is not trying to run things off of a external usb drive
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
iocage export and import
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
iocage export and import
Note that export puts the jails into the /pool/iocage/images dataset, which you then need to move to the new pool, after you set it in the UI, then you can import them by name directly.

so, stop all your jails, then:

iocage export jailname (for each jail)

Change the jails pool setting in the UI to the new pool.

Move over /oldpool/iocage/images contents to /newpool/iocage/images

iocage import jailname (for each jail)
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
Note that export puts the jails into the /pool/iocage/images dataset, which you then need to move to the new pool, after you set it in the UI, then you can import them by name directly.

so, stop all your jails, then:

iocage export jailname (for each jail)

Change the jails pool setting in the UI to the new pool.

Move over /oldpool/iocage/images contents to /newpool/iocage/images

iocage import jailname (for each jail)
you take all the fun of discovery out of it :smile:)
 

nickdems

Dabbler
Joined
Jun 7, 2023
Messages
13
Note that export puts the jails into the /pool/iocage/images dataset, which you then need to move to the new pool, after you set it in the UI, then you can import them by name directly.

so, stop all your jails, then:

iocage export jailname (for each jail)

Change the jails pool setting in the UI to the new pool.

Move over /oldpool/iocage/images contents to /newpool/iocage/images

iocage import jailname (for each jail)
Hi Sretalla,
I followed these steps, but when i try to start the new jail i get :
Error: [EFAULT] Stopped plex due to VNET failure

Any ideas on what i should do here ?
Thnx
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
@sretalla Why use this export/import mechanism at all? I just

- stop all jails
- zfs send|receive the entire iocage dataset and all children
- iocage activate the new pool
- start all jails

Done. And of course this works from one machine to another one, too.

Kind regards,
Patrick
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
@sretalla Why use this export/import mechanism at all? I just

- stop all jails
- zfs send|receive the entire iocage dataset and all children
- iocage activate the new pool
- start all jails

Done. And of course this works from one machine to another one, too.
If it works, great!

I had not so great experience with that in the past, so had always used the listed method.

Happy to be corrected to a better/quicker way.
 

nickdems

Dabbler
Joined
Jun 7, 2023
Messages
13
@sretalla Why use this export/import mechanism at all? I just

- stop all jails
- zfs send|receive the entire iocage dataset and all children
- iocage activate the new pool
- start all jails

Done. And of course this works from one machine to another one, too.

Kind regards,
Patrick
i get the same bloody vnet error with this method, any ideas ?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Did you iocage activate the new pool? What does iocage list show? What does iocage get all plex show? Did you move the jails to a machine with a different name for the network interface you are using? That's another reason to always explicitly create a bridge interface for the jails.
 
Top