From nobody@FreeBSD.org  Sun Sep 18 13:01:11 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E92531065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Sep 2011 13:01:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D88F98FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Sep 2011 13:01:11 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8ID1Bd2023886
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Sep 2011 13:01:11 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8ID1BdX023885;
	Sun, 18 Sep 2011 13:01:11 GMT
	(envelope-from nobody)
Message-Id: <201109181301.p8ID1BdX023885@red.freebsd.org>
Date: Sun, 18 Sep 2011 13:01:11 GMT
From: Camillo Srs <ged@iki.fi>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfsboot on 8.2-RELEASE fails to boot from root-on-zfs in MBR slice
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160801
>Category:       kern
>Synopsis:       [zfs] zfsboot on 8.2-RELEASE fails to boot from root-on-zfs in MBR slice [regression]
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 18 13:10:07 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Sep 19 14:30:06 UTC 2011
>Originator:     Camillo Srs
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD free 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
/boot/zfsboot when installed fails to boot from root-on-zfs in MBR slice,
set up according to this:

<http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition>

I upgraded from 8.1 to 8.2-RELEASE, and consequently upgraded my zfs
root pool to version 15.  Upgraded the bootloader in Fixit prompt to
allow booting from v15 pool.  After this, the system fails to boot,
and freezes after the "Boot:  F1" prompt with "-" on the screen.  See
this thread for example screenshot:

<http://forums.freebsd.org/showthread.php?t=22105>

MBR is used because of BIOS incompatibility with GPT as installed by
FreeBSD.
>How-To-Repeat:
Set up root-on-ZFS in MBR slice on 8.2-RELEASE according to:

<http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition>

Reboot - system halts on "-".
>Fix:
Install zfsboot from 9.0-BETA2, where the problem is fixed.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Sep 18 14:33:27 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160801 

From: John Baldwin <jhb@freebsd.org>
To: freebsd-amd64@freebsd.org
Cc: Camillo SXrs <ged@iki.fi>,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/160801: zfsboot on 8.2-RELEASE fails to boot from root-on-zfs in MBR slice
Date: Mon, 19 Sep 2011 08:02:59 -0400

 On Sunday, September 18, 2011 9:01:11 am Camillo SXrs wrote:
 >=20
 > >Number:         160801
 > >Category:       amd64
 > >Synopsis:       zfsboot on 8.2-RELEASE fails to boot from root-on-zfs in=
 =20
 MBR slice
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    freebsd-amd64
 > >State:          open
 > >Quarter:       =20
 > >Keywords:      =20
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sun Sep 18 13:10:07 UTC 2011
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Camillo S=E4rs
 > >Release:        8.2-RELEASE
 > >Organization:
 > >Environment:
 > FreeBSD free 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC=
 =20
 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 >=20
 > >Description:
 > /boot/zfsboot when installed fails to boot from root-on-zfs in MBR slice,=
 =20
 set up according to this:
 >=20
 > <http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition>
 >=20
 > I upgraded from 8.1 to 8.2-RELEASE, and consequently upgraded my zfs root=
 =20
 pool to version 15.  Upgraded the bootloader in Fixit prompt to allow booti=
 ng=20
 from v15 pool.  After this, the system fails to boot, and freezes after the=
 =20
 "Boot:  F1" prompt with "-" on the screen.  See this thread for example=20
 screenshot:
 >=20
 > <http://forums.freebsd.org/showthread.php?t=3D22105>
 >=20
 > MBR is used because of BIOS incompatibility with GPT as installed by=20
 =46reeBSD.
 > >How-To-Repeat:
 > Set up root-on-ZFS in MBR slice on 8.2-RELEASE according to:
 >=20
 > <http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition>
 >=20
 > Reboot - system halts on "-".
 > >Fix:
 > Install zfsboot from 9.0-BETA2, where the problem is fixed.
 
 Can you test 8.2-stable?  The various fixes made to zfsboot in 9 were merge=
 d=20
 to 8 after 8.2-release.
 
 =2D-=20
 John Baldwin

From: =?ISO-8859-15?Q?Camillo_S=E4rs?= <ged@iki.fi>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/160801: zfsboot on 8.2-RELEASE fails to boot from root-on-zfs
 in MBR slice
Date: Mon, 19 Sep 2011 17:07:26 +0300

 Hi,
 
 On 2011-09-19 15:02, John Baldwin wrote:
 >> Install zfsboot from 9.0-BETA2, where the problem is fixed.
 > 
 > Can you test 8.2-stable?  The various fixes made to zfsboot in 9 were merged 
 > to 8 after 8.2-release.
 
 Unfortunately fixing this issue by installing zfsboot from 9.0-BETA2 was
 a surprising amount of work, because of an incompatibility between the
 9.0 USB installer GPT and the BIOS on this system.  It took quite a
 while to recognize the root cause for that one.  I simply cannot boot
 the system in question with the GPT pmbr used on the memstick of 9.0.
 The BIOS locks completely.
 
 I am very reluctant to risk breaking my currently running system, the
 previous boot failure caused almost two weeks of downtime.
 
 Does the 8.2-stable memstick image still use MBR?  If so, I could
 conceivably try to copy the 9.0 zfsboot version to the 8.2-stable
 memstick and test both.
 
 Regards,
 Camillo
>Unformatted:
