Bug 194965

Summary: [boot] BTX Halted - ZFS errors - after upgrade
Product: Base System Reporter: Spag <rafal.rabczuk>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: amvandemore, gspeicher, imp
Priority: --- Keywords: loader
Version: 10.0-RELEASE   
Hardware: amd64   
OS: Any   
Description Flags
gptzfsboot failed none

Description Spag 2014-11-12 12:00:05 UTC
Mounting from local disk... 

No more network devices 

Booting from Hard Disk... 
ZFS: i/o error - all block copies unavailable 
ZFS: can't read MOS of pool tank 
gptzfsboot: failed to mount default pool tank 

FreeBSD/x86 boot 

int=00000000 err=00000000 ef1=00010246 eip=000085f7 
eax=00000001 ebx=00000000 ecx=00000000 edx=00000000
esi=00000000 edi=00000000 ebp=0008f248 esp=0008f1d8 
cs=002b ds=0033 es=0033 fs=0033 gs=0033 ss=0033
cs:eip=f7 35 08 99 00 00 85 ff-74 05 89 1f 89 4f 04 89 
       c2 e9 c2 00 00 00 66 c7-45 ea 00 00 89 c8 c1 e8 
cs:esp=00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00
       00 00 00 00 00-00 00 00-00 00 00 00 00 00 00 00 
BTX halted 

This happens after doing freebsd-update fetch install and restart 
last working version was FreeBSD10-RELEASE-p10 not working p12

here is a hardware spec: http://www.evernote.com/l/ASOMDRkU4WxG_5TOJGOABOyR3uDD4JHdp3Q/

Here is a forum thread: 
Comment 1 amvandemore 2015-12-01 17:23:36 UTC
Created attachment 163718 [details]
gptzfsboot failed

I recently had a similar issue on FreeBSD 10.2-STABLE #3 r290929.  I have included a pic.

The pool also has a log and cache device along with a mirror vdev.  

I worked around the issue by force importing elsewhere.  It now boots correctly in it's original configuration and a scrub revealed no issues.

No updates had been done recently prior to this issue, in fact I was testing out some values in /boot/loader.conf and had just completed a reboot like 5 minutes before the failed.  The values I added to loader.conf were bogus and are still there so I have no idea what could have caused this.
Comment 2 Geoff Speicher 2015-12-05 17:25:57 UTC
Similar issue here too. Clean load of 9.x/10.x/11-CURRENT on new ASUS MB with default factory settings boots fine on ufs, but get btx halted with root on zfs. After tweaking some BIOS settings, 10.2-RELEASE and 11-CURRENT (20151130) both successfully boot with zfs on root. After updating 10.2-RELEASE to 10.2-p7 and rebooting we are back to btx halted again and no amount of BIOS tweaking seems to help. Not sure if this is relevant but using an Avago/LSI HBA with 7x2TB drives and RAIDZ3.

amvandemore@gmail.com, can you elaborate on what you mean by "force importing elsewhere" that seems to have fixed the issue for you?