From owner-freebsd-stable@freebsd.org Sat Jan 12 08:47:05 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67761148B6E7 for ; Sat, 12 Jan 2019 08:47:05 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3E4766FB for ; Sat, 12 Jan 2019 08:47:04 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 93FF818D43C; Sat, 12 Jan 2019 08:47:01 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: Boot from one drive and load FreeBSD from another From: Stefan Bethke In-Reply-To: Date: Sat, 12 Jan 2019 09:47:00 +0100 Cc: freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Walter Parker X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 5F3E4766FB X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 2a00:14b0:4200:32e0::1ea as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [1.93 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[lassitu.de]; NEURAL_SPAM_MEDIUM(0.46)[0.465,0]; NEURAL_SPAM_SHORT(0.83)[0.827,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gilb.zs64.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.33)[0.330,0]; IP_SCORE(0.12)[ipnet: 2a00:14b0::/32(0.34), asn: 13135(0.27), country: DE(-0.01)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13135, ipnet:2a00:14b0::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2019 08:47:05 -0000 Am 11.01.2019 um 23:08 schrieb Walter Parker : > If I create a FreeBSD-boot partition on the SAS drive and a = FreeBSD-zfs > partition on the ZFS mirror, will the boot partition loader = automatically > find the ZFS pool? If not, is there anything special I can do to force = a > boot? Set up a UFS filesystem on one of the disks that the BIOS can access and = put everything under /boot into it. Install boot or gptboot (not zfsboot = or gptzfsboot) with gpart, since loader will only work on that UFS = filesystem. Since loader can=E2=80=99t find your root file system (as the BIOS has = no access to those disks), you need to set the path to the root = filesystem in loader.conf (see loader.conf(3), vfs.root.mountfrom). For = ZFS, that something like zfs:poolname/path/to/rootfs. This will instruct = the kernel to mount root from that spec. Normally, loader figures this = out automatically, by probing the disks for metadata (ZFS) or by = analyzing fstab (UFS), but in your case, it can=E2=80=99t. You=E2=80=99ll probably want to add an entry for /boot to your fstab, so = updates will update the boot partition instead of the /boot directory on = your ZFS root. HTH, Stefan --=20 Stefan Bethke Fon +49 151 14070811