From owner-freebsd-questions@freebsd.org Sun Jun 4 21:44:27 2017 Return-Path: Delivered-To: freebsd-questions@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 72C49BF0552 for ; Sun, 4 Jun 2017 21:44:27 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 46BB6249D for ; Sun, 4 Jun 2017 21:44:26 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1677B20847; Sun, 4 Jun 2017 17:44:10 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute7.internal (MEProxy); Sun, 04 Jun 2017 17:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=mBxASoVQKGX1NRQrINDFPBXWmI P+ku8VruuNodUMor0=; b=b63vQk6Cuo0cfd1A6IE8ps3mG/ArH3tMrsd+UXSkyD yLe6QnkUNg00IAWUEvhXzX0wIFZMJG3eoroCppZ7cZDxAGMOa6h0lM4weBaU0Hm3 fDBcHRZfhS9u4rGhBZJINu5s0QbMY3yaQRGipf/KWX36i6Ms0jcVZC04yEwM9jWB o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mBxASo VQKGX1NRQrINDFPBXWmIP+ku8VruuNodUMor0=; b=eYaVcpCOJkTmA/CdZDNrjF 5nwtC/T/qA9gaeaW1Jc449AocLorevfBavRL9VJHG4vvon38o5kQXA5PuU2kYfTV uTMW4c/03Da1sHY7Uj6VGITZtstm9MfCyuyzTmZxiuGrnHq9viRYHjsjUC8FTXFg Y2HL5nU2um7pvltJXCbIcWZaByn1qf721NRlvHFEfESHycNW61JwyaLXNDWbcKVi JyQtEBKtRN03Ol/3zQHcRuXcEp14BUp8JlhDGKEx0lb+0bNq1f+KTIfSArZjUF+7 BluzcjuTXFd/KmRiwnnX/odm7KavURv/cZt6HgOoKz1eS6W1Mk3lyxquYtms3CnA == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id EBB7748002; Sun, 4 Jun 2017 17:44:09 -0400 (EDT) Message-Id: <1496612649.2819909.998455064.1B11CEAB@webmail.messagingengine.com> From: Dave Cottlehuber To: FreeBSD Questions , tyler@tysdomain.com MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-48639608 Date: Sun, 04 Jun 2017 23:44:09 +0200 In-Reply-To: <20170604233314.508eff47.freebsd@edvax.de> Subject: Re: various questions about booting and recovery References: <20170604233314.508eff47.freebsd@edvax.de> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2017 21:44:27 -0000 On Sun, 4 Jun 2017, at 23:33, Polytropon wrote: > On Sun, 4 Jun 2017 13:02:59 -0400, Littlefield, Tyler wrote: > > My biggest problem is that I always end up somehow breaking things and > > then need to get eyeballs (I'm totally blind) to help me > > recover/reinstall. Both systems are using zfs. I've tried to figure out > > the multiboot environment, but not having much luck. I can force my > > systme to reboot, but I'm curious if there's an easy way to set up > > multiboot environments so I can boot configurations to test. If so, are > > there some clear instructions somewhere on how to do so? > > Given that you're already using ZFS, Boot Environments (BEs) > seems to be what you are looking for. There is a tool to > easily do the "housekeeping", like creating snapshots, editing > the boot attribues, and switching what to boot: beadm. > > Here are a few resources that will help you discover BEs: > > Manual page for beadm: > > https://www.freebsd.org/cgi/man.cgi?beadm > > HOWTO for beadm: > > https://github.com/vermaden/beadm/blob/master/HOWTO.htm > > How To Use beadm to Upgrade FreeBSD installed in a ZFS Boot Environment, > with minimal downtime: > > https://www.dweimer.net/?Content=03~help_files&Page=02~beadm_and_FreeBSD_on_ZFS > > > > > Finally, can I have it boot to an environment once and if it reboots > > swap back to the old one? > > Yes, that's the exact purpose of ZFS+BEs in a nutshell. ;-) > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... Also, http://www.callfortesting.org/bhyve-boot-environments/ so you can test your new BE in a VM before actually rebooting. and https://svnweb.freebsd.org/base/head/tools/build/beinstall.sh for your future install-from-source needds. A+ Dave