I successfully managed to do an iocage export, cp, iocage import and thereby moved a 208GB jail from a huge, multi-TB spinning rust zpool to a nice, fast 450GB SSD zpool. Today, I wanted to experiment with the same technique in the other direction... and failed at the first hurdle when the iocage export blew itself up mid-way, declaring that the SSD zvol had run out of space. Fair enough: my jail contains a lot of incompressible stuff, so the export to the uncompressed file would be 208GB and the zip file created from that would then need to be around another 200GB, meaning I basically need at least 600GB on that disk to succeed, which is not what I have!
My questions are therefore, firstly: is it possible to direct the iocage export to a specific location? If I could say something like 'iocage export JAIL -dest=/mnt/hugepool', that would be good, but the man page doesn't appear to offer that option.
Second, if I delete a bunch of data from inside the jail, would that actually make the jail small enough that an export might then work? Or do jails need to be manually 'shrunk' somehow to take note of deleted data within them before they actually shrink in size?
My other thought was to create a symbolic link in the jail so that mnt/ssd/iocage/images becomes merely a link to /mnt/hugevolume/iocage/images. But when I try to mv the existing /images folder to a new name, it tells me I can't do that, so I am unable to create a link with the 'images' name.
IN short, I appear to have successfully boxed myself into a situation where I can run my jail fine where it is, but never move it to somewhere else in the future, which is a problem! Any answers to the above or any other suggestions to sort myself out of this pickle would be appreciated! Thanks.
My questions are therefore, firstly: is it possible to direct the iocage export to a specific location? If I could say something like 'iocage export JAIL -dest=/mnt/hugepool', that would be good, but the man page doesn't appear to offer that option.
Second, if I delete a bunch of data from inside the jail, would that actually make the jail small enough that an export might then work? Or do jails need to be manually 'shrunk' somehow to take note of deleted data within them before they actually shrink in size?
My other thought was to create a symbolic link in the jail so that mnt/ssd/iocage/images becomes merely a link to /mnt/hugevolume/iocage/images. But when I try to mv the existing /images folder to a new name, it tells me I can't do that, so I am unable to create a link with the 'images' name.
IN short, I appear to have successfully boxed myself into a situation where I can run my jail fine where it is, but never move it to somewhere else in the future, which is a problem! Any answers to the above or any other suggestions to sort myself out of this pickle would be appreciated! Thanks.