I have my jail running off of a ssd
I just installed a second ssd with the intention of running them in a mirror in case one failed. I clicked through the volume manager too quickly and selected strip instead of mirror.
Anyway to undo this? Ultimately I just want to mirror the jail between both SSDs
If it helps I have a snapshot of the jail
UPDATE:
I got it fixed thanks to this thread
https://forums.freenas.org/index.ph...to-move-my-plugin-jail-to-another-pool.32906/
I attached a 3rd SSD and created a new volume then did the below steps
Assumptions:
The pool you are transferring the jails from is main_pool
The destination pool is ssd_pool
The jail root (Jails->Configuration) is /mnt/main_pool/jails
The new jail root will be /mnt/ssd_pool/jails
Steps:
Turn off all plugins (Plugins->Installed)
Stop all jails (Jails->View Jails)
Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]
Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
Start jails/plugins
Check that everything works and destroy the original jails dataset (main_pool/jails)
Once I confirmed the jail was up and running on the new SSD, I destroyed the old volume and rebuilt it in a mirror.
Then I reversed the steps to move it from the new SSD back onto the mirrored volume
I just installed a second ssd with the intention of running them in a mirror in case one failed. I clicked through the volume manager too quickly and selected strip instead of mirror.
Anyway to undo this? Ultimately I just want to mirror the jail between both SSDs
If it helps I have a snapshot of the jail
UPDATE:
I got it fixed thanks to this thread
https://forums.freenas.org/index.ph...to-move-my-plugin-jail-to-another-pool.32906/
I attached a 3rd SSD and created a new volume then did the below steps
Assumptions:
The pool you are transferring the jails from is main_pool
The destination pool is ssd_pool
The jail root (Jails->Configuration) is /mnt/main_pool/jails
The new jail root will be /mnt/ssd_pool/jails
Steps:
Turn off all plugins (Plugins->Installed)
Stop all jails (Jails->View Jails)
Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]
Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
Start jails/plugins
Check that everything works and destroy the original jails dataset (main_pool/jails)
Once I confirmed the jail was up and running on the new SSD, I destroyed the old volume and rebuilt it in a mirror.
Then I reversed the steps to move it from the new SSD back onto the mirrored volume
Last edited: