From owner-freebsd-stable@FreeBSD.ORG Mon Aug 5 23:54:53 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8D44241E; Mon, 5 Aug 2013 23:54:53 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: from mail-oa0-x236.google.com (mail-oa0-x236.google.com [IPv6:2607:f8b0:4003:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D3A92E7D; Mon, 5 Aug 2013 23:54:53 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id o6so7673135oag.41 for ; Mon, 05 Aug 2013 16:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=GWruLmnZJnmdL7kC6kOWjB516G6nir/DsaLTNt9pwGA=; b=xsh/LhSdlpobXwUzCsi/VAeQm1TLfCQq/U/WUPlr7NymWiOoo9s9E6YgWemeg3X9Dd wMgOe1IhXC24jU0GiF0PhOdF/Lhhine3hqLCaCPoXPSl5JQMWFS8vM4CQBN7+syKxz2l GBfzJN83v4uyRwrB0VMtzo8GhtS3Rn1ZW9V9u3yxhAHiqrgoS89dFUXc9bN8H+puad48 sP3aD1fTypOT+hauJ6y4jvfhf2FNE5uWbMC+ey7fjF6yDAE/7iL5SXlfKk9tR8VqLQZO +ejUN77g8yOgtrzY+X/ngmutTpND0cF59FKv60rFH0/HkBRY3fuXrtKs3FosDbqFZWvw moTw== MIME-Version: 1.0 X-Received: by 10.50.12.5 with SMTP id u5mr1224igb.58.1375746892480; Mon, 05 Aug 2013 16:54:52 -0700 (PDT) Sender: jdavidlists@gmail.com Received: by 10.42.150.196 with HTTP; Mon, 5 Aug 2013 16:54:52 -0700 (PDT) In-Reply-To: <51FD5709.7050306@FreeBSD.org> References: <51FD5709.7050306@FreeBSD.org> Date: Mon, 5 Aug 2013 19:54:52 -0400 X-Google-Sender-Auth: WNKHATG8h1-waoYgi6UuxYApwCg Message-ID: Subject: Re: Problem with zfsloader on 9.2-BETA2 From: J David To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 23:54:53 -0000 On Sat, Aug 3, 2013 at 3:16 PM, Andriy Gapon wrote: > Very unusual. Would you be able to try 9.2 zfsloader again? Surely. > I would like to see values of loaddev, currdev and vfs.zfs.boot.primary_pool > loader variables (if any are set). These can be obtained using 'show' command > at loader prompt. OK show loaddev OK show currdev OK show vfs.zfs.boot.primary_pool 2022708996989799150 > Also, output of lsdev -v. OK lsdev -v cd devices: disk devices: disk0: BIOS drive C: disk0p1: FreeBSD boot 64KB disk0p2: FreeBSD swap 2048MB disk0p3: FreeBSD ZFS 28GB disk1: BIOS drive D: disk1p1: FreeBSD boot 64KB disk1p2: FreeBSD swap 2048MB disk1p3: FreeBSD ZFS 27GB disk2: BIOS drive E: disk3: BIOS drive F: disk4: BIOS drive G: disk5: BIOS drive H: disk6: BIOS drive I: disk7: BIOS drive J: pxe devices: zfs devices: OK > Also, if you are able to build custom 9.2 zfsloader, then it would be useful to > modify the printf statement (in zfs_fmtdev(), sys/boot/zfs/zfs.c) to print > dev->pool_guid. This didn't produce the expected result. Slipped it into the 9.2-RC1 build, rebuilt, installed it, but nothing changed. In order to get it to load, we removed zfsloader, storing the 8.4 version as zfsloader-8.4 and installing the 9.2-RC1 zfsloader as zfsloader-9.2. Then, when the gptzfsboot can't find /boot/zfsloader, I entered zfsloader-9.2 at the prompt. It does the same thing, with the same message: ZFS: can't find pool by guid Even though I changed the source as you suggested: Index: zfs.c =================================================================== --- zfs.c (revision 253967) +++ zfs.c (working copy) @@ -645,7 +645,7 @@ } else spa = spa_find_by_guid(dev->pool_guid); if (spa == NULL) { - printf("ZFS: can't find pool by guid\n"); + printf("ZFS: can't find pool by guid: %llX\n", dev->pool_guid); return (buf); } if (dev->root_guid == 0 && zfs_get_root(spa, &dev->root_guid)) { So I can't figure out why the message didn't change. Doing a full buildworld buildkernel right now in case the problem is just that I don't know how to selectively build this. Thanks!