From owner-freebsd-questions@freebsd.org Sun Aug 21 19:10:13 2016 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 29533BC0484 for ; Sun, 21 Aug 2016 19:10:13 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) (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 F32FF135F for ; Sun, 21 Aug 2016 19:10:12 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-it0-f47.google.com with SMTP id x131so71573593ite.0 for ; Sun, 21 Aug 2016 12:10:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=GBDSUZGG6/oLpYTdQPu77FzohskX8sWQXLfVEPvL2/M=; b=D/OXKACkscPSOBBAWjwQz7jBtFzC8rckqoBU8IQPqRKF3lFAM7bWdN6kjmhBMu620k J5fdZmDJnj2TL3UVCscT4pcdcUa7nIg7BUKVIYjoFF98Kiidxm/wUDI1l2Btr3Yw7qPH BgnRB7XPcXSHor/BRoLO4xBBUMeVhB+eRq1XmQRe545NaP9IFQD0CQ52tPJZeOz4986R v2T7Z2/7IE7RMy416LR2EqZTHKwI5TQ4PrW0Cawpg5oLYcHT4DVR7YvNs6VLa59h9TMq coxOT0/9vH6zadOyu32ZxV1ohSu0/U2oyyVx5790KXfHBKyvORLEvWDcX/wpsZyUQ++q r9rA== X-Gm-Message-State: AEkoouuKxe6nlbmio38u9sR/jyieTl5Lphv9oUgiAZFKLCWCxB/mB1ZyvRhLGapA9KFAiw== X-Received: by 10.36.139.2 with SMTP id g2mr16386917ite.75.1471806267014; Sun, 21 Aug 2016 12:04:27 -0700 (PDT) Received: from WorkBox.Home.gmail.com (63-231-167-45.mpls.qwest.net. [63.231.167.45]) by smtp.gmail.com with ESMTPSA id h199sm6373742itb.14.2016.08.21.12.04.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Aug 2016 12:04:26 -0700 (PDT) References: <20160815145419.GA3619@admin.sibptus.transneft.ru> <20160815231414.GA84125@neutralgood.org> <20160820105438.GA59960@admin.sibptus.transneft.ru> <86lgzq1510.fsf@WorkBox.Home> <20160821174246.GA73293@admin.sibptus.transneft.ru> User-agent: mu4e 0.9.16; emacs 24.5.1 From: Brandon J. Wandersee To: Victor Sudakov Cc: "Brandon J. Wandersee" , "Kevin P. Neal" , freebsd-questions@freebsd.org Subject: Re: Root on ZFS, LiveCD and BE In-reply-to: <20160821174246.GA73293@admin.sibptus.transneft.ru> Date: Sun, 21 Aug 2016 14:04:27 -0500 Message-ID: <86h9aelz9g.fsf@WorkBox.Home> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2016 19:10:13 -0000 Victor Sudakov writes: > Brandon J. Wandersee wrote: > >> Now, when you try to import a pool that was previously part of another >> running system, `zpool` will tell you that "forcing" the import is the >> only way to get the result you want. Doing so is safe; ZFS is just >> concerned because its record shows that the pool was last seen attached >> to a running system and it wasn't properly exported, and so wants to >> make certain you aren't trying to use a pool on two different systems >> simultaneously. So to sum up the past two paragraphs, importing the pool >> should never have any effect at all beyond mounting the datasets, and >> those datasets should always be in a clean state. > > This sounds reassuring. To make it more clear, do I need to export the > production pool after the maintenance is finished? Yes, you should. I want to say that the LiveCD exports any attached pools before rebooting or shutting down, because on the couple occasions I've forgotten to export a root-on-ZFS pool the system still booted up fine. But I export the pool anyway just to keep everything clean. > I'll check with the stable version of beadm in bhyve tomorrow, but > please note that BE selection made by beadm-devel itself (from a > working system) works perfectly. It's only the loader BE selection > menu that has this problem. I just set up boot environments for the first time with sysutils/beadm last week myself, so this seemed like as good a time as any to create one and try it out. I get the same behavior: activating a boot environment from a running system and rebooting works fine, but selecting a boot environment from the boot menu fails. So it's probably a problem with the loader. I'll comment on the bug report myself shortly. -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ----------------------------------