CraftyClown
Patron
- Joined
- Apr 5, 2014
- Messages
- 214
Hi all,
I have some sector errors popping up on one of my drives and I thought this might be a good time to upgrade my pools.
My existing setup is three separate pools over 6 disks, all mirrored.
What I'm planning to change up to is one Raidz2, made up of 4 x 4tb WD reds
To do this, I will need to wipe clean one of my existing mirrors, but that mirror also contains my jails. I'm wondering how easy it will be to move my Jails temporarily ? I had considered moving them to a windows share whilst I swap the drives out, but I have a bad feeling that will totally mess up the permissions.
Any advice greatly appreciated :)
EDIT:
I found the following instructions on how best to move the jails:
Assumptions:
As I need to use the drives from the original pool as part of the new pool, should I do the above process twice? Once to move the jails to a temp location and then again once the raidz2 pool has been built?
I have some sector errors popping up on one of my drives and I thought this might be a good time to upgrade my pools.
My existing setup is three separate pools over 6 disks, all mirrored.
What I'm planning to change up to is one Raidz2, made up of 4 x 4tb WD reds
To do this, I will need to wipe clean one of my existing mirrors, but that mirror also contains my jails. I'm wondering how easy it will be to move my Jails temporarily ? I had considered moving them to a windows share whilst I swap the drives out, but I have a bad feeling that will totally mess up the permissions.
Any advice greatly appreciated :)
EDIT:
I found the following instructions on how best to move the jails:
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
- 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)
As I need to use the drives from the original pool as part of the new pool, should I do the above process twice? Once to move the jails to a temp location and then again once the raidz2 pool has been built?
Last edited: