From owner-freebsd-stable@freebsd.org Thu Apr 28 11:36:50 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 79E72B1FF1F for ; Thu, 28 Apr 2016 11:36:50 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AE8B1940 for ; Thu, 28 Apr 2016 11:36:49 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (123-48-23-227.dz.commufa.jp [123.48.23.227]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id u3SBafIX085284 for ; Thu, 28 Apr 2016 20:36:42 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Thu, 28 Apr 2016 20:36:41 +0900 From: Tomoaki AOKI To: freebsd-stable@freebsd.org Subject: Re: booting from separate zfs pool Message-Id: <20160428203641.8f54fd3121a244d2fbe79c64@dec.sakura.ne.jp> In-Reply-To: References: <5721BF5C.1070201@norma.perm.ru> Organization: Junchoon corps X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 11:36:50 -0000 On Thu, 28 Apr 2016 11:52:27 +0100 krad wrote: > I would not use the root dataset. Create a ROOT/ one so it looks for > the kernel in "zboot:/ROOT/fist/boot/kernel/kernel" or similar. This way > you are compatible with beadm. And of course, dataset zboot:/ROOT/fist in above example should set as bootfs by #zpool set bootfs=zboot/ROOT/fist zboot and mountpoints of zboot and zboot/ROOT should be set to NONE by #zfs set mountpoint=none zboot #zfs set mountpoint=none zboot/ROOT respectively. Otherwise, boot would fail. When I forgot to set bootfs, got boot failure, even I've set vfs.root.mountfrom in /boot/loader.conf properly. Are these OK? # This is easily forgotten on manual installation. :-< > > > > On 28 April 2016 at 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 ? > > > > Thanks. > > Eugene. > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Tomoaki AOKI junchoon@dec.sakura.ne.jp