I've got a remote machine with remote console and want the quickest way to reinstall overtop of the old disks (losing all data, I've moved all containers elsewhere).
Problem is if I dont wipe the disks, the installer barfs on rpool already existing. I am pretty sure I cant zpool export rpool when / is on rpool.
If i install overtop of something renamed 'oldrpool' it works, but of course at firstboot there's now the old rpool and the new rpool both named rpool.
My method was to split the pools, remember the id of the rpool still named that, remember the disk dev name of the one renamed, and install on it (hoping the installer kernel numbers the disks /dev/sd[a-z] the same of course).
As expected it barfed and dropped to singleusermode shell because of two rpools. This is where I zpool import -f $id rpool oldrpool to the offending old rpool, leaving the new rpool as the only one. Reexport it (to ensure it's mountpoints are not holding onto /) then just type exit - it'll boot into your new install where you can use sgdisk to copy the partitions from the new install to the oldrpool disk and reattach the right partition.
Any easier method?
Problem is if I dont wipe the disks, the installer barfs on rpool already existing. I am pretty sure I cant zpool export rpool when / is on rpool.
If i install overtop of something renamed 'oldrpool' it works, but of course at firstboot there's now the old rpool and the new rpool both named rpool.
My method was to split the pools, remember the id of the rpool still named that, remember the disk dev name of the one renamed, and install on it (hoping the installer kernel numbers the disks /dev/sd[a-z] the same of course).
As expected it barfed and dropped to singleusermode shell because of two rpools. This is where I zpool import -f $id rpool oldrpool to the offending old rpool, leaving the new rpool as the only one. Reexport it (to ensure it's mountpoints are not holding onto /) then just type exit - it'll boot into your new install where you can use sgdisk to copy the partitions from the new install to the oldrpool disk and reattach the right partition.
Any easier method?
Last edited: