From nobody@FreeBSD.org  Thu Dec 30 15:13:34 2010
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 80D35106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2010 15:13:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 70B5C8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2010 15:13:34 +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 oBUFDXa6033573
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 30 Dec 2010 15:13:33 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oBUFDX8t033572;
	Thu, 30 Dec 2010 15:13:33 GMT
	(envelope-from nobody)
Message-Id: <201012301513.oBUFDX8t033572@red.freebsd.org>
Date: Thu, 30 Dec 2010 15:13:33 GMT
From: Henri Hennebert <hlh@restart.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'zfsboot from 8.2-RC1 freeze at boot time
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153552
>Category:       kern
>Synopsis:       [zfs] zfsboot from 8.2-RC1 freeze at boot time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ae
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 15:20:09 UTC 2010
>Closed-Date:    Wed Mar 23 06:21:21 UTC 2011
>Last-Modified:  Wed Mar 23 06:21:21 UTC 2011
>Originator:     Henri Hennebert
>Release:        8.2-RC1 FreeBSD 8.2-RC1
>Organization:
>Environment:
FreeBSD arapahoe.virtualbox.bel 8.2-RC1 FreeBSD 8.2-RC1 #0: Wed Dec 22 17:34:20 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When trying to boot from second slice with zfsboot from 8.2-RC1, the boot
freeze with "-" in the upper left corner of the screen.

Disk configuration:

arapahoe# gpart show
=>      63  25165728  ad0  MBR  (12G)
        63  12582801    1  freebsd  (6.0G)
  12582864  12582927    2  freebsd  [active]  (6.0G)

=>       0  12582801  ad0s1  BSD  (6.0G)
         0  10485760      1  freebsd-ufs  (5.0G)
  10485760   2097041      2  freebsd-swap  (1.0G)

=>       0  12582927  ad0s2  BSD  (6.0G)
         0  12582927      1  freebsd-zfs  (6.0G)


I put zfsboot with the `classical method' booting with FreeBSD-8.2-RC1-amd64-livefs.iso:

dd if=/boot/zfsboot of=/dev/ad0s2a count=1
dd if=/boot/zfsboot of=/dev/ad0s2a skip=1 seek=1024

I grab an old zfsboot (v15 aware) from a 8.1-STABLE r213582 (thank you
snapshot) and this one work perfectly.

All this have been tested under virtualbox-ose-3.2.10_2 *and* a 'real server'.
>How-To-Repeat:

>Fix:
zfsboot from 8.1-STABLE r213582 work fine.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Dec 30 22:18:50 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Martin Matuska <mm@FreeBSD.org>
To: bug-followup@FreeBSD.org, hlh@restart.be
Cc:  
Subject: Re: kern/153552: [zfs] zfsboot from 8.2-RC1 freeze at boot time
Date: Fri, 31 Dec 2010 11:05:04 +0100

 Just a question - is there any particular reason why you are not using
 GPT partitioning?

From: Henri Hennebert <hlh@restart.be>
To: bug-followup@FreeBSD.org, hlh@restart.be
Cc:  
Subject: Re: kern/153552: [zfs] zfsboot from 8.2-RC1 freeze at boot time
Date: Fri, 31 Dec 2010 16:07:45 +0100

 I'm using gpt on all my computers except the one which is hosted at OVH 
 (http://www.ovh.com/).
 
 The standard procedure offered by OVH use MBR and install a slice of 6GB 
 with FreeBSD 8.0. In case of problem I may ask (with the web interface) 
 a net boot giving me a mfsBSD under FreeBSD 8.0.
 
 As I want to follow each release and use the latest ZFS, I keep the 
 first slice under UFS and upgrade it to 8.x. The rest of the disk is a 
 slice with ZFS. In normal use, this slice is used.
 
 In case of problem, I can switch to the first slice and make any repair 
 on the second one because it contain a kernel able to import the ZPOOL. 
 If the kernel is bad, I can netboot under 8.0, push any correction on 
 the UFS slice, reboot from it and put the correction on the ZFS slice.
 
 I can repartition the disk with gpt but I would lost my data under ZFS. 
 (Yes I have a backup but I prefer to keep all this running).
 
 On my netbook, I have a first slice with Windows7 preinstalled and the 
 second one with ZFS. I have no CD allowing me to reinstall windows7.
 
 BTW thank you for your great work on ZFS.
 
 Henri
 

From: "Alexander V. Ribchansky" <triosoft@triosoft.com.ua>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153552: [zfs] zfsboot from 8.2-RC1 freeze at boot time
Date: Sun, 02 Jan 2011 15:22:03 +0200

 Just another "Me too"
 
 If I use /boot/zfsboot form recent STABLE (from snapshot CD
 or built myself) to boot up this
 
 monstro# gpart show ad6
 =>        63  625142385  ad6  MBR  (298G)
            63  104872257    1  ntfs  [active]  (50G)
     104872320  520270128    2  freebsd  (248G)
 
 monstro# gpart show ad6s2
 =>         0  520270128  ad6s2  BSD  (248G)
             0  516075824      1  freebsd-zfs  (246G)
     516075824    4194304      2  freebsd-swap  (2.0G)
 
 I install /boot/zfsboot as
 
 dd if=/boot/zfsboot of=/dev/ad6s2 count=1
 dd if=/boot/zfsboot of=/dev/ad6s2a skip=1 seek=1024
 
 when I reboot, system stuck in "-" or "\" or "/" or finaly "|" prompt.
 
 when I install /boot/zfsboot from recent 9-CURRENT snapshot CD all
 boots-up perfectly.
 More over, fresh built /boot/zfsboot from v28 pachset either from 8-S or
 9-C patches stuck as I describe above.
 
 I do not use GPT because of windows on the same machine.
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153552: commit references a PR
Date: Wed, 16 Mar 2011 20:05:19 +0000 (UTC)

 Author: ae
 Date: Wed Mar 16 20:04:56 2011
 New Revision: 219702
 URL: http://svn.freebsd.org/changeset/base/219702
 
 Log:
   Set control flags in putc(). This should fix zfsboot hangs in drvread().
   
   PR:		kern/153552
   Reviewed by:	jhb
   MFC after:	1 week
 
 Modified:
   head/sys/boot/i386/common/cons.c
 
 Modified: head/sys/boot/i386/common/cons.c
 ==============================================================================
 --- head/sys/boot/i386/common/cons.c	Wed Mar 16 17:09:51 2011	(r219701)
 +++ head/sys/boot/i386/common/cons.c	Wed Mar 16 20:04:56 2011	(r219702)
 @@ -37,6 +37,7 @@ void
  putc(int c)
  {
  
 +	v86.ctl = V86_FLAGS;
  	v86.addr = 0x10;
  	v86.eax = 0xe00 | (c & 0xff);
  	v86.ebx = 0x7;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: eadler 
State-Changed-When: Wed Mar 16 16:06:45 EST 2011 
State-Changed-Why:  
committed in r219702 


Responsible-Changed-From-To: freebsd-fs->ae 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Wed Mar 16 16:06:45 EST 2011 
Responsible-Changed-Why:  
committed in r219702 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153552: commit references a PR
Date: Wed, 23 Mar 2011 06:19:36 +0000 (UTC)

 Author: ae
 Date: Wed Mar 23 06:19:17 2011
 New Revision: 219896
 URL: http://svn.freebsd.org/changeset/base/219896
 
 Log:
   MFC r219702:
     Set control flags in putc(). This should fix zfsboot hangs in drvread().
   
     PR:		kern/153552
     Reviewed by:	jhb
 
 Modified:
   stable/8/sys/boot/i386/common/cons.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/boot/i386/common/cons.c
 ==============================================================================
 --- stable/8/sys/boot/i386/common/cons.c	Wed Mar 23 05:13:54 2011	(r219895)
 +++ stable/8/sys/boot/i386/common/cons.c	Wed Mar 23 06:19:17 2011	(r219896)
 @@ -37,6 +37,7 @@ void
  putc(int c)
  {
  
 +	v86.ctl = V86_FLAGS;
  	v86.addr = 0x10;
  	v86.eax = 0xe00 | (c & 0xff);
  	v86.ebx = 0x7;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ae 
State-Changed-When: Wed Mar 23 06:20:50 UTC 2011 
State-Changed-Why:  
Merged to stable/8. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153552 
>Unformatted:
