From owner-freebsd-stable@freebsd.org Thu Apr 28 17:02:42 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E08E8B1F496 for ; Thu, 28 Apr 2016 17:02:42 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A393B1C8D for ; Thu, 28 Apr 2016 17:02:42 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1avpKh-0003YR-Jx for freebsd-stable@freebsd.org; Thu, 28 Apr 2016 19:02:31 +0200 Received: from 188-39-145-210.static.enta.net ([188.39.145.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2016 19:02:31 +0200 Received: from johannes by 188-39-145-210.static.enta.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2016 19:02:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Johannes Totz Subject: Re: booting from separate zfs pool Date: Thu, 28 Apr 2016 18:02:25 +0100 Lines: 40 Message-ID: References: <5721BF5C.1070201@norma.perm.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 188-39-145-210.static.enta.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <5721BF5C.1070201@norma.perm.ru> X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 17:02:43 -0000 On 28/04/2016 08:44, Eugene M. Zheganin wrote: > Hi. > > So, I'm still struggling with my problem when I cannot boot from a big > zfs 2T pool (I have written some messages about a year ago, the whole > story is too long and irrelevant to retell it, I'll only notice that I > took the path where I'm about to boot from a separate zfs pool closer to > the beginning of the disk). > > I've created such a smaller pool, called it zboot. I've read pjd@ letter > explaining that when FreeBSD sees several bootable pools, it chooses the > first one - that's fine with me, since the new pool partition's number > is smaller than the big one. So, I created zboot, set the mountpoint to > legacy, wrote the content to it's /boot directory (and yes, I did call > the 'make installkernel DESTDIR=/zboot') and rebooted. Strage thing > happened next - I got > > > Can't find /boot/zfsloader > > FreeBSD/x86 boot > Default: zboot:/boot/kernel/kernel > boot: > | > Can't find /boot/kernel/kernel > > > I booted back from USB stick (that I'm using to boot my machine) and > rechecked these files - everything mentioned here is in it's place. > > Does someone have the idea what I'm doing wrong ? May be this has > something to do with the fact that zboot does contain only the /boot > directory, and not the full rootfs ? FWIW, I'm booting the kernel off a different pool from where the rootfs is... I've set bootfs on the boot-pool (to point to itself), and the loader.conf in that boot pool has vfs.root.mountfrom point to the root-fs on the other pool.