I'm a bit stuck here. I'm trying to clone a computer to a VM. So, I booted from a LiveFS CD, partitioned/sliced the disk, copied the files using zfs send/recv and scp (for the UFS /boot). The kernel boots just fine, but it won't mount my ZFS root.
I get:
So, I tried
and it turns out it's looking for the guid 203643... and/or ad0s1e (which is the case on the "real", cloned computer, I guess (and know for the slice)!), but finds da0s1d and 522839... which is the case on THIS one.
I then noticed/realized that I need to update /boot/zfs/zpool.cache. So I booted up the livefs, imported the pool (zpool import -R /alt tank) and exported it. No zpool.cache anywhere.
It seems that you MUST import it WITHOUT altroot (-R), but if I do that, the entire environment goes FUBAR when the CD / is shadowed by my ZFS root, and nothing works!
So, my question is: how am I supposed to create the file if I can't import the pool, and importing the pool is the only way?
I get:
Code:
Trying to mount root from zfs:tank/root
Manual root filesystem specification:
<fstype>:<device> blah blah...
So, I tried
Code:
vfs.zfs.debug=1
I then noticed/realized that I need to update /boot/zfs/zpool.cache. So I booted up the livefs, imported the pool (zpool import -R /alt tank) and exported it. No zpool.cache anywhere.
It seems that you MUST import it WITHOUT altroot (-R), but if I do that, the entire environment goes FUBAR when the CD / is shadowed by my ZFS root, and nothing works!
So, my question is: how am I supposed to create the file if I can't import the pool, and importing the pool is the only way?