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)