From owner-freebsd-questions@freebsd.org Wed Feb 10 21:32:51 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FEEC52B7AF for ; Wed, 10 Feb 2021 21:32:51 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DbXzk4Sqyz3MgH for ; Wed, 10 Feb 2021 21:32:50 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-io1-xd31.google.com with SMTP id e24so3550873ioc.1 for ; Wed, 10 Feb 2021 13:32:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s7QM+JQnNMs7d6NkJslmftIm4Rl+MLLhOTqPBfFruG8=; b=bYgyWQMqjYJ/5eEWHAA1ZEO7NK8SS9Q4eyB9xuJi3QfyNdGeWisAqq5fbooX7KisBB veys9VDdGwcENsZsrMJg7RawdIyEoOZ+ZE000P6jB5eykwvdZ6cXsMjUrPJSbnuf5YkH 0ULLd6U8j2EmLj9c+xozxHB5x2uN/aQJwCS500JsvvzjISGDJfkLs/C1OCf/j9XkAHIz WPrGBIALHPw2kB7HETYelouYAneVq35oaFo4JJJrylo5TfteAu0k7balSmaIEnlWgj0P m4FzqnCZajAtcS9mRQvoI4X1YP/V8vYGxixn2zBgzMM+r2M9gy0pkOYOLAS/kyPVp6RW m25A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s7QM+JQnNMs7d6NkJslmftIm4Rl+MLLhOTqPBfFruG8=; b=kf2WKYOcKnCzQf635nwhPwgoJjR5pYsdW87+cN66BUyxkItnLfQRqJ/xoHIKEZKHG8 +2x3ouzEyRPRavOmZyVYWuU9K2fkQt2i/Q6e0u8xeFXORpKDQC1WD8KLqm4MrRWebyle D9cw6aSYHEnq2a7PYgvPnfm8RVbObAxEOcHyFMCb5QFQax2fl1Uf5BGIfzu8sFhsOSRz 4uc3LHtnG5AbNcahT+BrOkowO+2/HG5qYLf06XetCJFY34J5KFd0Xrc79IzMXeBFREcQ iCOY1Yj6QZ/PI1xUnvdCoG22x6V7AlK/cksq+J+iLUh5LupNEhO2dY/Ifo9/DZ7YpV9Z IXOw== X-Gm-Message-State: AOAM532hHmYD/sHgZETaw/tPLhpAuCuC2iLnEVy1bAzOlEFcJUOXTudY lQUDSwMLHS/8tPx4FekUlNYYhoB0rAu2EZNj21BvuUUE6CBH6g== X-Google-Smtp-Source: ABdhPJzojXGk4yRO4Ouy0T6SHyMC0KtFNg1TTHKyyGfXAMdDBCTUBOQdmk4UJmrymS0q+20rYiT1DRtkrTrNZBf6MyE= X-Received: by 2002:a05:6602:26c6:: with SMTP id g6mr2400521ioo.150.1612992769491; Wed, 10 Feb 2021 13:32:49 -0800 (PST) MIME-Version: 1.0 References: <2476830.FrFBg55ix7@curlew> <2068084.5gTYqTD1LS@curlew> In-Reply-To: <2068084.5gTYqTD1LS@curlew> From: Michael Schuster Date: Wed, 10 Feb 2021 22:32:37 +0100 Message-ID: Subject: Re: Bootenv containing several filesystems To: Mike Clarke Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 4DbXzk4Sqyz3MgH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bYgyWQMq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-2.02 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d31:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.975]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d31:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d31:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 21:32:51 -0000 On Wed, Feb 10, 2021 at 5:37 PM Mike Clarke wrote: > On Tuesday, 9 February 2021 19:10:34 GMT Michael Schuster wrote: > > On Tue, Feb 9, 2021 at 5:30 PM Mike Clarke > > > wrote: > > > On Tuesday, 9 February 2021 09:53:27 GMT Matthew Seaman wrote: > > > > There's an important difference between beadm and bectl which seems > > > > relevant here. beadm defaults to accepting a tree of ZFSes as a boot > > > > environment, whereas bectl only applies to the ZFS at the top level > of > > > > the boot environment unless you use the -r flag. > > > > > > That probably accounts for a discrepancy that I always see between > beadm > > > list > > > and bectl list for my BE which has child datasets: > > > > > > curlew:/tmp% beadm list > > > BE Active Mountpoint Space Created > > > fbsd12.1y - - 1.9G 2020-12-20 20:52 > > > fbsd12.2a - - 133.0M 2020-12-24 11:20 > > > fbsd12.2b - - 18.5M 2021-01-02 09:50 > > > fbsd12.2c - - 11.7M 2021-01-12 09:55 > > > fbsd12.2d NR / 39.4G 2021-02-05 10:46 > > > curlew:/tmp% bectl list > > > BE Active Mountpoint Space Created > > > fbsd12.1y - - 61.3M 2020-12-20 20:52 > > > fbsd12.2a - - 6.97M 2020-12-24 11:20 > > > fbsd12.2b - - 2.80M 2021-01-02 09:50 > > > fbsd12.2c - - 5.91M 2021-01-12 09:55 > > > fbsd12.2d NR / 39.5G 2021-02-05 10:46 > > > > strangely, I don't see such a difference: > > > > bectl: > > BE_20210205_121021_CURRENT14 - - 81.6M 2021-02-05 12:10 > > BE_20210205_181224_CURRENT14 - - 49.9M 2021-02-05 18:12 > > BE_20210206_102540_CURRENT14 - - 153M 2021-02-06 10:25 > > BE_20210206_175312_CURRENT14 NR / 30.9G 2021-02-06 17:53 > > BE_20210208_204901_CURRENT_14 - - 31.9M 2021-02-08 20:49 > > > > beadm: > > BE_20210205_121021_CURRENT14 - - 81.6M 2021-02-05 12:10 > > BE_20210205_181224_CURRENT14 - - 49.9M 2021-02-05 18:12 > > BE_20210206_102540_CURRENT14 - - 152.3M 2021-02-06 10:25 > > BE_20210206_175312_CURRENT14 NR / 30.9G 2021-02-06 17:53 > > BE_20210208_204901_CURRENT_14 - - 31.9M 2021-02-08 20:49 > > > > as you can see, the difference is negligable ... > > > > is there some zpool or zfs property I need to set so that be(ctl|adm) > (with > > appropriate options if need be) will create a recursive boot environment? > > [...] here may be a good explanation of some of what I'm seeing. Wheres you have: Here's the filesystems for a typical BE: > > NAME USED AVAIL REFER MOUNTPOINT > ssd/ROOT/fbsd12.2d 39.5G 75.6G 1.54G / > ssd/ROOT/fbsd12.2d/usr 31.2G 75.6G 10.1G /usr > ssd/ROOT/fbsd12.2d/usr/ports 8.45G 75.6G 6.84G /usr/ports > ssd/ROOT/fbsd12.2d/usr/src 3.52G 75.6G 1.46G /usr/src > ssd/ROOT/fbsd12.2d/var 6.50G 75.6G 1.63G /var > ssd/ROOT/fbsd12.2d/var/db 3.13G 75.6G 1.93G /var/db > ssd/ROOT/fbsd12.2d/var/db/pkg 776M 75.6G 83.6M /var/db/pkg > ssd/ROOT/fbsd12.2d/var/empty 104K 75.6G 96K /var/empty > ssd/ROOT/fbsd12.2d/var/tmp 1.03G 75.6G 128K /var/tmp > I have: $ zfs list | egrep 'BE_20210206_175312_CURRENT14|src' tank/ROOT/BE_20210206_175312_CURRENT14 30.9G 340G 24.3G / tank/usr/src 2.32G 340G 2.26G /usr/src $ ... which I guess also explains why for me bectl list and beadm list produce similar output. my working zfs knowledge is a bit rusty; is there a trivial way of getting my /usr/{src|ports} under the current BE? thx Michael -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'