From owner-freebsd-fs@FreeBSD.ORG Mon Sep 9 01:02:04 2013 Return-Path: Delivered-To: freebsd-fs@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 CF79A9B4; Mon, 9 Sep 2013 01:02:04 +0000 (UTC) (envelope-from jdavidlists@gmail.com) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9AA1B2A86; Mon, 9 Sep 2013 01:02:04 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id tp5so11633801ieb.0 for ; Sun, 08 Sep 2013 18:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QeEcWjU1DUYd2OwVU+RYtFoMui1dzh2RgLqjU2eQKAw=; b=Pfo5HzJOGzDw2p4L8U8ycqduj/yiguBKoM24kj7MdUL8cpxO2IcunqhQb1OTXgt35y TCd1hNnurQ7gfCywsR5HF3CRBcVXHVicMyC+F97XxG6GIyZNCetpvttgKUPMajf8zscc jJXUhyjwc2w4Z1GDuydh1RbQzpp5Ycz3+k02OESd6UuuKd93uSJp1vOfOyEcClsfIhNF 9F1FyaeZXOoE3IISXtoB5eiKM4Qu4X6Qtt5Sw05D8QtTJ1VsJ1K/S0S5/4B2FgWKYSXp 4BYh4XEyQaGJ45azdPKqQIlj79mnIh7TgvrxLEumy4hNBCtZhsEgqRfdBHKhCWeOgPb1 ckeQ== MIME-Version: 1.0 X-Received: by 10.50.72.33 with SMTP id a1mr6188153igv.58.1378688524108; Sun, 08 Sep 2013 18:02:04 -0700 (PDT) Sender: jdavidlists@gmail.com Received: by 10.43.157.8 with HTTP; Sun, 8 Sep 2013 18:02:04 -0700 (PDT) Date: Sun, 8 Sep 2013 21:02:04 -0400 X-Google-Sender-Auth: 8IW3EzEXL7LGf4QY3M3-LAIqu-k Message-ID: Subject: zfs_enable vs zfs_load in loader.conf (but neither works) From: J David To: "freebsd-fs@freebsd.org" , freebsd-stable Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 01:02:04 -0000 After setting up a new machine to boot from a ZFS root using the 9.1 install, it worked fine, but when the kernel & world was updated to releng/9.2, it stopped booting. The pool is called "data" and the root partition is "data/root." Under 9.1 it had in loader.conf: zfs_load=3D"YES" vfs.root.mountfrom=3D"zfs:data/root" Under 9.2-RC3, the same config results in a panic: Trying to mount root from zfs:data/root []=85 init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall panic: no init If this is changed (as many Google hits recommend) to: zfs_enable=3D"YES" vfs.root.mountfrom=3D"zfs:data/root" It seems like ZFS doesn't get loaded, so it fails instead with: Trying to mount root from zfs:data/root []=85 Mounting from zfs:data/root failed with error 2: unknown file system. If the "?" mountroot> option is used, 50 devices are listed, none of which are ZFS. And the "unknown file system" response comes from vfs_byname returning NULL for zfs. (If both zfs_enable and zfs_load are set to "YES" then it fails as the zfs_load case.) The system is using update-to-date zpool (v5000 / feature flags), and all the updated bootblocks from the releng/9.2 build. zpool.cache is correct, the zpool imports fine from the 9.2-RC3 live cd. The zpool's bootfs is set correctly, the zfs mountpoint of data/root is / . And, of course, init is present and health in data/root. The system booted fine until updating to 9.2. Which loader.conf entry is actually correct for ZFS roots on 9.2, and what (else) needs to happen to make this system bootable again? Thanks for any advice!