From owner-freebsd-fs@FreeBSD.ORG Wed Sep 7 07:35:40 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 E165F1065672; Wed, 7 Sep 2011 07:35:40 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 8F9B48FC15; Wed, 7 Sep 2011 07:35:40 +0000 (UTC) Received: by gwb1 with SMTP id 1so4559969gwb.36 for ; Wed, 07 Sep 2011 00:35:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2vKupEoQi9rAfLQyXyVm+FKarRDsHw4JnNBqLhuKlLo=; b=FYqD55k2Mj7QGhGJD7wI8tntbrtEyVHU8dqiy9UfepCadHAVETMPALsdCDfTjHuzaK jWelKA/y9W3s5etAsluy6H6shij2fVhowQoLORlyH89TiIeBJXuP1hhfDRkqPQOedyPJ 9Rduz+ingqLTAjCoSYPecTX7CueUZ8vIQ7NHs= MIME-Version: 1.0 Received: by 10.236.200.195 with SMTP id z43mr29563297yhn.127.1315380939911; Wed, 07 Sep 2011 00:35:39 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.236.102.147 with HTTP; Wed, 7 Sep 2011 00:35:39 -0700 (PDT) In-Reply-To: <20110907044800.GA96277@server.vk2pj.dyndns.org> References: <20110907044800.GA96277@server.vk2pj.dyndns.org> Date: Wed, 7 Sep 2011 00:35:39 -0700 X-Google-Sender-Auth: 5cGIi123lDfucSJBGECtKd1FWsw Message-ID: From: Artem Belevich To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, avg@freebsd.org Subject: Re: "can't load 'kernel'" on ZFS root 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: Wed, 07 Sep 2011 07:35:41 -0000 On Tue, Sep 6, 2011 at 9:48 PM, Peter Jeremy wrote: > Secondly, I found that ZFS booting is extremely fragile - if your > default kernel & modules won't load automatically, there's no way to > boot the backup kernel because (as far as I can find) there's no way > to manually load /boot/zfs/zpool.cache - without which the kernel > can't mount the root FS. =A0In both above cases, recovering the system > required booting from recovery media. =A0There needs to be a documented > method for booting from a snapshot or clone. The magic command is: load -t /boot/zfs/zpool.cache /boot/zfs/zpool.cache It makes me wonder, though -- if we're probing devices anyways, why is zpool.cache existence mandatory? According to the name it's a *cache*, presumably to speed up zpool detection on a normal boot. Perhaps we can fall back to probing all drives if zpool.cache is missing. Slower boot definitely beats no booting at all. --Artem