I don't know what's happened, but I somehow broke my FreeBSD installation and now it doesn't boot at all.
I have 2 ZFS pools - zroot and zdata. The last one is mounted as /home
zroot is a mirror of 2 SSDs, zdata is raidZ of 3 HDDs
On the previous session I did:
1. Imported zroot from old SSD with
2. Added cache and log from free partitions I left on my 2 SSDs.
3. Exported zroot-old
The system is not booting up. I receive message on boot:
+ registry dump and BTX halted message.
That's very strange indeed - zdata was never a 'default pool' and was added to the system after initial system setup.
I thought that with zroot-old export I broke my zpool.cache. I physically removed zdata HDDs, booted installation media and recreated zpool.cache. I double checked that bootfs is pointing to zroot/ROOT/default. The problem persists.
I booted from pen drive again and recreated bootcode on both of SSDs. Nothing!
I edited loader.conf and pointed zpool.cache manually. Yes, with the same results.
Now I'm totally ran out of ideas - why and where it looking for zdata ?!
UPDATE: I put zdata HDDs back, now it says that /boot/kernel not found on default path zdata:/boot/kernel/kernel and shows boot prompt. I entered
All of this is really strange. Why it tries to boot from zdata ?
UPDATE2: I installed fresh FreeBSD on one of the SSD, breaking the mirror and with default configuration. It booted and loads zroot/ROOT/default of the mirrored pool, acting as a kernel holder. Idiotic situation, I'm starting to hate people ported ZFS to FreeBSD.
I have 2 ZFS pools - zroot and zdata. The last one is mounted as /home
zroot is a mirror of 2 SSDs, zdata is raidZ of 3 HDDs
On the previous session I did:
1. Imported zroot from old SSD with
zpool import zroot zroot-old command2. Added cache and log from free partitions I left on my 2 SSDs.
3. Exported zroot-old
The system is not booting up. I receive message on boot:
Code:
ZFS: i/o error - all block copies unavailable
ZFS: can't read MOS of pool zdata
gptzfsboot: failed to mount default pool zdata
That's very strange indeed - zdata was never a 'default pool' and was added to the system after initial system setup.
I thought that with zroot-old export I broke my zpool.cache. I physically removed zdata HDDs, booted installation media and recreated zpool.cache. I double checked that bootfs is pointing to zroot/ROOT/default. The problem persists.
I booted from pen drive again and recreated bootcode on both of SSDs. Nothing!
I edited loader.conf and pointed zpool.cache manually. Yes, with the same results.
Now I'm totally ran out of ideas - why and where it looking for zdata ?!
UPDATE: I put zdata HDDs back, now it says that /boot/kernel not found on default path zdata:/boot/kernel/kernel and shows boot prompt. I entered
zroot/ROOT/default:/boot/kernel/kernel, it showed stack and BTX halted errorAll of this is really strange. Why it tries to boot from zdata ?
UPDATE2: I installed fresh FreeBSD on one of the SSD, breaking the mirror and with default configuration. It booted and loads zroot/ROOT/default of the mirrored pool, acting as a kernel holder. Idiotic situation, I'm starting to hate people ported ZFS to FreeBSD.