Hi !
At first this was a question, now this is how you should do it :
(less scrolling for new people, thanks to everyone who participated)
First, you migrate your pools like this :
here, you should use your own pool names.
the old pool is named tank, the new one dozer
Then, you could need to edit your jail mount points.
To do this, you have to :
set nano as your editor (optional if you know how to search and replace with vi)
then edit the fstab of your jails
then do search and replace all with nano, searching with your old mountpoint /mnt/tank/iocage with /mnt/dozer/iocage
Tested on 11.2U1
(old post contents)
I have lots of jails set up for my uses that i'd like to transfer to a newly bought SSD from my HDD pool.
I've found several posts talking about changing the iocage dataset location doing a reset, but :
nowhere i read touches upon how to effectively transfer an active jail dataset without having to remake every one of them.
What i already did :
- copy the whole dataset to a save folder
- prepared the new pool
So, my questions are :
- is there an other way than doing an "iocage clean -a" / "iocage reset" / "iocage activate MYPOOL" to move the dataset ?
- doing that, what's the right way to go to not loose everything ?
I'm running FreeNAS-11.2-BETA3
At first this was a question, now this is how you should do it :
(less scrolling for new people, thanks to everyone who participated)
First, you migrate your pools like this :
Code:
iocage stop ALL zfs unmount -f tank/iocage zfs snapshot -r tank/iocage@migration zfs send -R tank/iocage@migration | zfs receive -v dozer/iocage iocage clean -a zfs destroy -f tank/iocage iocage activate dozer zfs destroy -r dozer/iocage@migration
here, you should use your own pool names.
the old pool is named tank, the new one dozer
Then, you could need to edit your jail mount points.
To do this, you have to :
set nano as your editor (optional if you know how to search and replace with vi)
Code:
EDITOR=/usr/local/bin/nano; export EDITOR
then edit the fstab of your jails
Code:
iocage fstab -e yourjail
then do search and replace all with nano, searching with your old mountpoint /mnt/tank/iocage with /mnt/dozer/iocage
Tested on 11.2U1
(old post contents)
I have lots of jails set up for my uses that i'd like to transfer to a newly bought SSD from my HDD pool.
I've found several posts talking about changing the iocage dataset location doing a reset, but :
nowhere i read touches upon how to effectively transfer an active jail dataset without having to remake every one of them.
What i already did :
- copy the whole dataset to a save folder
- prepared the new pool
So, my questions are :
- is there an other way than doing an "iocage clean -a" / "iocage reset" / "iocage activate MYPOOL" to move the dataset ?
- doing that, what's the right way to go to not loose everything ?
I'm running FreeNAS-11.2-BETA3
Last edited: