From owner-freebsd-stable@freebsd.org Thu Jan 12 21:12:24 2017 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 24CD8CAC29D for ; Thu, 12 Jan 2017 21:12:24 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: from mail-vk0-x241.google.com (mail-vk0-x241.google.com [IPv6:2607:f8b0:400c:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D33A811C3 for ; Thu, 12 Jan 2017 21:12:23 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: by mail-vk0-x241.google.com with SMTP id j12so2371307vkd.0 for ; Thu, 12 Jan 2017 13:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7ziZ2qFe+49HBr3D/Ku7vD3HPQ+BW4VXIUwgL5Hf73w=; b=hn9BdM4Qz3nlCRdnEEbHnX2r80zw8ESZ6IXJqMqVPg51c2jQy80my7vG9n6tBgieO3 lWdDXFgugK1a4hp0KTCknPBPIOB/c53CfPElb/Sa/b1XGy8CaJa/CSv8WstLAb1wP4bq 8Sgx96S3RZTvp1bizMoeTQT9C6JzYektAznx0resqrLTTMIJbqeBQ7cQWbKAW18/qhtB 1HtuXFHrqeZcVFYjilbrWYcsHyl6RabqJYeHcTCLYCMOKsmdHmVtByQBNu7OomVTT7O7 EEx36nqYbQs0k8UTNQ8eKabTqazPz8NVKVdqNMd0EMR1zVzL/LDIAgHZJumwChQTh7t8 7xGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7ziZ2qFe+49HBr3D/Ku7vD3HPQ+BW4VXIUwgL5Hf73w=; b=QKhUNX0lpeGZLKMf/9mzJfyv2pTbzscPlVEM5Q/pPvEeydKeutlmkOYk1p3uOA+ZyY UOr9iUjWdSV2Hd4hkl6kTC8eSG0ugVX9RKB/SPCedoWPL+uc0KSCHB9ulovezs0GwCYg Gl1E2UwnV/rGDA7O0QMbIAPwhpJT17dbo+pOw7Pb1gRqXojZEvW0pAtbyqLiTqtytr9V HHkT8j3A1zXKnDrRV2HQoDENWBLNhHsQv9wcbu/C2fuLTrhrDgd5QMIHAi5a+yjOOxD1 ofIg8+yF7IBF9wXpIYlRB/+nEFrMSyhsSNeB9wjLWU7fTYKc85w4rWBrXqgZivogaU9e 6btg== X-Gm-Message-State: AIkVDXJMbfpJwsTmJxt4ZD/i2S3mfrV1pPjvSysUXxO13oXJvgYAS9kN7rJbq1eJ5JzHBGjclWRDDiHJeQp4/w== X-Received: by 10.31.166.7 with SMTP id p7mr7491862vke.136.1484255542825; Thu, 12 Jan 2017 13:12:22 -0800 (PST) MIME-Version: 1.0 Sender: jlehen@gmail.com Received: by 10.103.33.4 with HTTP; Thu, 12 Jan 2017 13:12:22 -0800 (PST) In-Reply-To: References: From: Jeremie Le Hen Date: Thu, 12 Jan 2017 22:12:22 +0100 X-Google-Sender-Auth: 7wBj1CrzVh20N9dPeUynEVcpAwI Message-ID: Subject: Re: Can't boot on ZFS -- /boot/zfsloader not found To: Steven Hartland Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 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, 12 Jan 2017 21:12:24 -0000 Hey Steven, (Please cc: me on reply) On Thu, Jan 12, 2017 at 1:32 AM, Steven Hartlan > The reason I'd recommend 512k for boot is to provide room for expansion > moving forward, as repartitioning to upgrade is a scary / hard thing to do. > Remember it wasn't long ago when it was well under 64k and that's what was > recommend, its not like with disk sizes these days you'll miss the extra > 384k ;-) Yeah, that's wise you're right. > Boot to a live cd, I'd recommend mfsbsd, and make sure the boot loader was > written to ALL boot disks correctly e.g. > if you have a mirrored pool with ada0 and ada1: > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > If this doesn't help the output from gpart show, uname -a and zpool status > would also be helpful. > > This is all assuming standard BIOS mode and not UEFI which is done > differently. I just use the installation media on an USB key and then drop to the shell. This is a full FreeBSD running, so that's fine. % # gpart show ada0 % => 40 312581728 ada0 GPT (149G) % 40 1024 1 freebsd-boot (512K) % 1064 8387840 2 freebsd-swap (4.0G) % 8388904 304192864 3 freebsd-zfs (145G) % % # uname -a % FreeBSD 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 % % root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 % % # zpool status % pool: zroot % state: ONLINE % scan: none requested % config: % % NAME STATE READ WRITE CKSUM % zroot ONLINE 0 0 0 % gptid/1c387d3b-d892-11e6-944b-f44d30620eeb ONLINE 0 0 0 % % errors: No known data errors Here are the steps to write the bootloader: % # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 % partcode written to ada0p1 % bootcode written to ada0 % # zpool get bootfs zroot % NAME PROPERTY VALUE SOURCE % zroot bootfs zroot local -- Jeremie Le Hen jlh@FreeBSD.org