From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 02:19:04 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5857D9F3 for ; Fri, 22 Feb 2013 02:19:04 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by mx1.freebsd.org (Postfix) with ESMTP id EDDAEDB5 for ; Fri, 22 Feb 2013 02:19:03 +0000 (UTC) Received: by mail-qc0-f177.google.com with SMTP id u28so87070qcs.22 for ; Thu, 21 Feb 2013 18:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=544ktjQjdsB8RAl6Lq0LoGMenQuGLSE7fbqylYbebFQ=; b=Qp9fhx4+2hbO0WUlCOlEQS6CpK6mq99ZBPebuHUlfSRpg1hBJqrwDbwi7Y7Hwjofpi zwTZQh+4M4dtoImzgXjJnkoMFn26IBGmUdWwleU6gFaKAYcuPDSfI1yAK4ZPDCOLqgJ4 3KGx/FIK9VO433LYrD3EG0E6QxD7dbyaMPls21MAIao1/zL1pxXogk+wF/HA6jNQIxCU l64U1VPdrLKdGuwcztmA9hRPlTimG/TPaHiCppXwCFH2yje/s3xgo8jJGfBKeYUjp9X3 JzLp3yD7/3hjPnTskPvaTlqz82ejmG5MTi1lC1+JVr1KOx14t2KppwFkItpZicaBgU32 jLLg== MIME-Version: 1.0 X-Received: by 10.229.172.162 with SMTP id l34mr23905qcz.81.1361499543219; Thu, 21 Feb 2013 18:19:03 -0800 (PST) Received: by 10.49.106.233 with HTTP; Thu, 21 Feb 2013 18:19:03 -0800 (PST) Received: by 10.49.106.233 with HTTP; Thu, 21 Feb 2013 18:19:03 -0800 (PST) In-Reply-To: <20130222003827.GA15631@server.rulingia.com> References: <5124E646.3060304@zedat.fu-berlin.de> <20130222003827.GA15631@server.rulingia.com> Date: Thu, 21 Feb 2013 18:19:03 -0800 Message-ID: Subject: Re: No ZFS when loading modules from loeader prompt From: Freddie Cash To: Peter Jeremy Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD-Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2013 02:19:04 -0000 I haven't used BEs yet, as I have no ZFS-on-root systems. I just know that's how they're supposed to work, and that's the desired use case for them. Vermaden from FreeBSD Forums would be a better one to ask, as he uses them a lot and was one of the people behind BE support in FreeBSD. On 2013-02-21 4:38 PM, "Peter Jeremy" wrote: > On Wed, Feb 20, 2013 at 7:05 AM, O. Hartmann > wrote: > > At the loader prompt, I need to unload the buggy kernel and load the old > > working one via > > > > load /boot/kernel.old/kernel > > > > Then I load also the ZFS related modules > > > > load /boot/kernel.old/opensolaris.ko > > load /boot/kernel.old/zfs.ko > > > > Issuing boot at the end of that stage boots the kernel - the old one > > -successfully - but there is no working ZFS and no ZFS volume gets > > mounted although the rc.conf is executed correctly. > > > > What am I doing wrong at that point? Why isn't ZFS run and mount > properly? > > Last time I ran into this problem, the issue was that "unload" also > unloaded the zpool.cache file and the ZFS code relied on that to find > the kernel. I don't recall what the workaround was. > > On 2013-Feb-20 08:17:46 -0800, Freddie Cash wrote: > >Sounds like a perfect use case for Boot Environments. Create a new BE, > >install the new kernel into it, set it as the default, reboot. If it > >fails, you manually set the previous BE as the default, and reboot. That > >way, your "known-good", working environment is never affected. > > How do you change your BE in the loader? Or how do you change your > BE when you can't boot? > > -- > Peter Jeremy >