From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 10 17:30:08 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C5BB1065676 for ; Sat, 10 Apr 2010 17:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EB3A48FC12 for ; Sat, 10 Apr 2010 17:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3AHU3DF007331 for ; Sat, 10 Apr 2010 17:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3AHU3cA007328; Sat, 10 Apr 2010 17:30:03 GMT (envelope-from gnats) Resent-Date: Sat, 10 Apr 2010 17:30:03 GMT Resent-Message-Id: <201004101730.o3AHU3cA007328@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Bartels Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E48011065672 for ; Sat, 10 Apr 2010 17:29:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D33958FC15 for ; Sat, 10 Apr 2010 17:29:47 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3AHTlcF096448 for ; Sat, 10 Apr 2010 17:29:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3AHTlEd096447; Sat, 10 Apr 2010 17:29:47 GMT (envelope-from nobody) Message-Id: <201004101729.o3AHTlEd096447@www.freebsd.org> Date: Sat, 10 Apr 2010 17:29:47 GMT From: Frank Bartels To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/145613: booting from zfs root not working X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2010 17:30:08 -0000 >Number: 145613 >Category: conf >Synopsis: booting from zfs root not working >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 10 17:30:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Frank Bartels >Release: 7.3-RELEASE >Organization: >Environment: FreeBSD glas 7.3-RELEASE FreeBSD 7.3-RELEASE #2: Wed Apr 7 02:59:36 CEST 2010 knarf@glas:/usr/obj/usr/src/sys/GLAS i386 >Description: I've used http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot to install FreeBSD 8.0 on zfs root before successfully (more than once, i386 and amd64). Because I've seen FreeBSD 7.3-RELEASE now supports gptzfsboot without the need to recompile the loader (LOADER_ZFS_SUPPORT=YES is now the default), I'm trying to migrate an existing 7.3-RELEASE machine to zfs root. After spending one day on trying the second advertised feature in the 7.3 announcement ("new boot loader gptzfsboot supports GPT and ZFS") I found the little note in ERRATA that zfsloader is not zfs aware. So I've added the patch from http://svn.freebsd.org/changeset/base/205539 and tried again. But without success. I see the BTX loader, then the ZFS aware loader (which again tells me "BIOS drive C: is disk0" - this does not happen under 8.0) and then it scrolls very fast and the screen is full of forth not found builtin not found only not found Because this machine is more or less production, I've set up four different FreeBSDs in VirtualBox. 8.0-RELEASE amd64: zfs root works fine 8.0-STABLE amd64: zfs root works fine 7.3-RELEASE amd64: zfsloader fails with "FATAL: int13_harddisk: function 42. Can't use 64bits lba" 7.3-STABLE amd64: zfsloader fails with "FATAL: int13_harddisk: function 42. Can't use 64bits lba" So I'm not able to reproduce the same error with VirtualBox but a new one that also does not occur under 8. [I'd like to upgrade to 8, too, but this machine is using vlan+lagg+em which is broken in 8]. >How-To-Repeat: Install 7.3-RELEASE using http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot (7.3's gpart works a bit "different" - you'll need a calculator for the -b and -s parameters). In step 2.7. apply the patch for sys/boot/i386/loader/Makefile and follow the compile/install steps. Try to boot from the new hard disk. It will fail. >Fix: >Release-Note: >Audit-Trail: >Unformatted: