From owner-freebsd-fs@FreeBSD.ORG Mon Oct 12 17:36:50 2009 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 D448E106568B for ; Mon, 12 Oct 2009 17:36:50 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 5DB968FC18 for ; Mon, 12 Oct 2009 17:36:50 +0000 (UTC) Received: by ewy18 with SMTP id 18so3008451ewy.43 for ; Mon, 12 Oct 2009 10:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=43/D0hXcMuoGrKXXiNkcWmcWSxNRrHXGcDT0t5gB040=; b=GG+qXFkU6jhGgcuFRsvjmMo2J1EukVatJrSyew/WOuN4q9zbT9GfdeeEq0A3cc0dsr geFa+WTCy0eLBi7Yi3I5zanvhgjI3XiAjrHRiABQ2fnD2Cuwd5D+Tg4UK2C7eKjtGuyh MrVuf24jtKqvRte/YligHXzIrXZlHf/jdVv4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=UMcyZKQr6BT+BZfCQcW0gMEK69n4KIw4Pfa6xlmmEw4ydk+f9tfZYRB3N+pxdP6zq2 Lw2zlKNCJ1W1m7dKiQLCqzbjOqxeGIk03l37zaevy6c7oPHZeNPnikQ1W7PEkcURqosI 8M9oGrugy8H1RsFr8nYPHrWLyCsZub+nKqwWw= Received: by 10.211.130.13 with SMTP id h13mr4439144ebn.13.1255369009372; Mon, 12 Oct 2009 10:36:49 -0700 (PDT) Received: from localhost (95-24-212-202.broadband.corbina.ru [95.24.212.202]) by mx.google.com with ESMTPS id 5sm806931eyh.4.2009.10.12.10.36.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 10:36:48 -0700 (PDT) From: Anonymous To: Andriy Gapon References: <4AD3220B.5030502@icyb.net.ua> Date: Mon, 12 Oct 2009 21:36:03 +0400 In-Reply-To: <4AD3220B.5030502@icyb.net.ua> (Andriy Gapon's message of "Mon, 12 Oct 2009 15:33:15 +0300") Message-ID: <86ws30ikfw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@FreeBSD.ORG Subject: Re: zfs boot vs loader 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: Mon, 12 Oct 2009 17:36:50 -0000 Andriy Gapon writes: > I am using ZFS for boot-and-root filesystem. gptzfsboot is used for bootstrapping, > if that matters. > Maybe the following is some kind of a pilot error, but I think that I see a > problem with selecting a different kernel using loader prompt. > That is, I escape to a loader prompt from boot menu. There I do 'unload'. Then I > 'load' a different kernel, opensolaris.ko and zfs.ko. Then I 'boot'. Then root > mounting inevitably fails because ZFS root filesystem can not be found. > You can just type OK boot kernel.old here to switch to kernel.old (or any other one). No need to manually load modules if you specified them in loader.conf. > This is an unexpected result for me. > I wonder if something important for ZFS get unloaded when I unload preloaded > kernel and modules. Perhaps I have to manually re-load zpool.cache? Does following help? OK load -t blah /boot/zfs/zpool.cache > > This happens with recent CURRENT, amd64. > What's strange is that I think that I can switch kernels from loader prompt > without any problems when using RELENG_7 and UFS-boot-plus-ZFS-root approach.