From owner-freebsd-fs@FreeBSD.ORG Sat Mar 12 17:30:14 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BC03106566B for ; Sat, 12 Mar 2011 17:30:14 +0000 (UTC) (envelope-from sirsquat@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 935DA8FC19 for ; Sat, 12 Mar 2011 17:30:12 +0000 (UTC) Received: by bwz12 with SMTP id 12so3894862bwz.13 for ; Sat, 12 Mar 2011 09:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=RhvE6nMLz+tLZTrLt+GXlpwOOlC8GSNAT8PoxavTMr0=; b=q+PQiofAZtKgjNQKmvve+eKWS7mo8SBWdLZXh8s/HhDQxxF28Glwfhx+9GeJl5Yvdp ZU9KfTgpI7sjhGtGyYX2JXExF286+ypX5uf52psCXevdnXH1N1Sc/X1rHmbT4lIaeG/z xaJ+p0xVHZZPvV4BI7yEMWgIEGcPM5z9tVE38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G3+I9OQVyKDHlU4Vp0qg3VHsYnlmxD8hQ5ehG3UzYiNB0Y9k2R1Tx8QD14KybwO9pE LEwARtOwdSccvaMpaCWsKfvxiV3dHLIbf6EXSqjt4mnW4H0/ZxJlEeqrWryTfR2i+J4x s1vR3BwMS0lysVilh+8cGAjbhsFRPREv//jzU= MIME-Version: 1.0 Received: by 10.204.19.14 with SMTP id y14mr2425332bka.187.1299949289018; Sat, 12 Mar 2011 09:01:29 -0800 (PST) Received: by 10.204.9.215 with HTTP; Sat, 12 Mar 2011 09:01:28 -0800 (PST) Date: Sat, 12 Mar 2011 18:01:28 +0100 Message-ID: From: Squat To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ZFS: Booting problem with zfsboot and MBR X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2011 17:30:14 -0000 After upgrading my ZFS rootpool from v14 to v15 (and ZFS from v1 to v4) I've been unable to boot my system. At first the booting process of cause complained that the pool was v15 while it expected v14. (Plan was to look into the gpart equivalent for MBR/slices later, sometime). So I booted up from a USB memory stick, imported the pool and dd-ed over /boot/zfsboot from my rootpool as described in: http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition (my system was installed pretty much as described in this guide, as 8.0-RC1, but with ad0 and ad4 in a mirror). (dd if=/mnt/boot/zfsboot of=/dev/ad0s1 count=1 dd if=/mnt/boot/zfsboot of=/dev/ad0s1a skip=1 seek=1024) exported my rootpool and rebooted. No my system doesn't get to complain about zpool version, the booting process just hang on "-" (hyphen). Tried again with the /mnt2/boot/zfsboot from the 8.2-RELEASE memory stick with the same result. Kind of look like the problem described in: http://www.freebsd.org/cgi/query-pr.cgi?pr=153552 even though my zfsboot was from 8.2-RELEASE. So I've tried with zfsboot from 9.0-CURRENT from mid january and 2011-03-10, but the result is the same (expect that I now can reboot from "-" with Ctrl+Alt+Delete). Then I went over to that maybe the problem is that I was stupid enough to import my rootpool and use /boot/zfsboot from there (as is the same on the .img I booted from), but as I understand: http://lists.freebsd.org/pipermail/freebsd-fs/2011-February/010813.html the /boot/zfsboot from 9.0-CURRENT 2011-03-10 should be able to boot an exported zpool? I've also tried to replace the boot0 with: gpart bootcode -b /mnt/boot/boot0 ad0 from 8.2-RELEASE. (Still just "-" after I push F1). How can I get up my system again? Or where should I focus my troubleshooting when the booting process just gets to "-" and halts with that? (I'm sorry if I posted this message on the wrong list/channel or anything like that, it's my first.) And thanks to everyone who've contributed to FreeBSD, especially those who've worked with ZFS. -- Tor Halvard Furulund