teawrecks
Cadet
- Joined
- May 7, 2018
- Messages
- 5
Hi, I recently set up a new pool using new drives on a separate machine, and used 'zfs send' over ssh to migrate the 3 datasets (iocage, jails, share) that were contained in my old pool to the new one.
The new system recognizes all my jails, but for all plugin jails the mount points were all messed up and wouldn't boot.
Example:
This wasn't seen on my one manually created jail. Those mount points looked fine and it boots fine.
I figured it would be as simple as removing these extra entries so that only the mount points I want (the last 2 in the picture) were present (though the 2nd to last one is still wrong; has that [14, ' prefix). After removing bogus entries, the jails still wouldn't boot. After looking around the forums, it sounds like these entries represented attempts at secret mount points to the 11.2-RELEASE image that are necessary for the plugins to function.
As an example, my plex jail wasn't booting, so I installed a new plex jail. This one booted fine, but didn't have all my data obviously. Looking at the dataset hierarchy I noticed that the two jails both had roots like:
/Nydus/iocage/jails/plex/root - 4GB
/Nydus/iocage/jails/plex_2/root - 500MB
So I thought, "if I just clone the root from my old plex jail to the new plex jail, everything would boot fine". So I created a snapshot of the old root, then ran:
zfs destroy /Nydus/iocage/jails/plex_2/root
zfs clone /Nydus/iocage/jails/plex@snapshot /Nydus/iocage/jails/plex_2/root
plex_2 now boots fine and all my data was back!
Here's where I messed up: I figured "Great, now that it's cloned, I can delete old jail and rename the new one and I'm back in business". Apparently that's not how it works. In the Jails menu I deleted "plex" which apparently also deleted the snapshots of plex's root, which apparently also caused plex_2 to be deleted since it was a clone of the snapshot. So now my data for that jail is gone.
1) It's not the end of the world, and yeah, I do have my original drives still and could get it back, but if anyone knows a quick way to undelete that jail/snapshot that'd be great.
2) Any suggestions on how I can get these jails up and running again? I was almost there with the clone of root, but I don't want to have a bunch of dud-jails sitting around just to keep their snapshots around.
Thanks
The new system recognizes all my jails, but for all plugin jails the mount points were all messed up and wouldn't boot.
Example:

This wasn't seen on my one manually created jail. Those mount points looked fine and it boots fine.
I figured it would be as simple as removing these extra entries so that only the mount points I want (the last 2 in the picture) were present (though the 2nd to last one is still wrong; has that [14, ' prefix). After removing bogus entries, the jails still wouldn't boot. After looking around the forums, it sounds like these entries represented attempts at secret mount points to the 11.2-RELEASE image that are necessary for the plugins to function.
As an example, my plex jail wasn't booting, so I installed a new plex jail. This one booted fine, but didn't have all my data obviously. Looking at the dataset hierarchy I noticed that the two jails both had roots like:
/Nydus/iocage/jails/plex/root - 4GB
/Nydus/iocage/jails/plex_2/root - 500MB
So I thought, "if I just clone the root from my old plex jail to the new plex jail, everything would boot fine". So I created a snapshot of the old root, then ran:
zfs destroy /Nydus/iocage/jails/plex_2/root
zfs clone /Nydus/iocage/jails/plex@snapshot /Nydus/iocage/jails/plex_2/root
plex_2 now boots fine and all my data was back!
Here's where I messed up: I figured "Great, now that it's cloned, I can delete old jail and rename the new one and I'm back in business". Apparently that's not how it works. In the Jails menu I deleted "plex" which apparently also deleted the snapshots of plex's root, which apparently also caused plex_2 to be deleted since it was a clone of the snapshot. So now my data for that jail is gone.
1) It's not the end of the world, and yeah, I do have my original drives still and could get it back, but if anyone knows a quick way to undelete that jail/snapshot that'd be great.
2) Any suggestions on how I can get these jails up and running again? I was almost there with the clone of root, but I don't want to have a bunch of dud-jails sitting around just to keep their snapshots around.
Thanks