From owner-freebsd-questions@freebsd.org Tue Feb 9 19:10:46 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 AA872547DEA for ; Tue, 9 Feb 2021 19:10:46 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 4DZstF70pFz3hQG for ; Tue, 9 Feb 2021 19:10:45 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-il1-x132.google.com with SMTP id y15so17109293ilj.11 for ; Tue, 09 Feb 2021 11:10:45 -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=ZvaT3OV6/HNwcEEnktr+oQWZvD14fYbX5DkQuqsXGkA=; b=ZrVSxdwVXuYMul3LRJrgn1dLKbFPGX0XN+dLdpVWfr2IA0+fqelL/zlf9P0qOzte3E dx5WXFilaD82yGf0xiEseKCxeu6I1pZ6KJECWMx7atiYCz3ofQ0m7Zq2tTZ+I7bhOYKT tH3KDgALrsSjkaeDfyRPsvUeX7CALNDAcSz7qOA89vUDcuU+etHa4/k3AxONeyCLG4+i O3OT+G1yLZ58fE4pGBGiEvXqLigL7BWuBHwkb8fI+nijVCicrHk2icyfp96AtkS8U7ki e9tP7Wv6mKbDkGkNDfAnO/4ZngzP50aV9HkWQjArvruZm3eilK/2h8kyn90CtD4kncV3 IrUg== 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=ZvaT3OV6/HNwcEEnktr+oQWZvD14fYbX5DkQuqsXGkA=; b=h/3sNtnp1EhbLHZB9fDwQ2SoWnwhc8UJjxEkjAcE1R13rsFl5TewCJtOlYv9J3JaBY 4iz3Qt4EfWfN7LjloGDyCtFYGwlh8PIGmurPHzWmWJrTP75q7ZXhIeKM7H7cWmQsWAMX 1QVzdj1qXZ1vKkM16jmieOl0yBsp/d5hNubUQ835t1X7ETqY19ZCE/kgpVr3k6CA56Rc pYKveI+mGTwxPf28hrZ8WQS+/kIhvDe5Op2Zp7vs9cAF1IZd6BgfWvN+Od9/0mTuSePZ /GUfpvlE4ccV2DWpmb5AQrVWg+NBGrKnnt6CgPXJMZ2G683Hb/ofnb6cgH/QQp/pt/aV 2cQw== X-Gm-Message-State: AOAM533P7CifahFg0u01pFFcHMu0B3ZKM6mUB0P/IgziE91Zugkh4XLB qlD8E5D60YjcPx6aIvBRwcF6QDm69GbxBtqc2ivFjIXQALQ= X-Google-Smtp-Source: ABdhPJzrOCi/Ny7M2DVdzczEjol8qMGrGZnFFdV2oaCz3qPWZ9pR42tlAp6r4msaepTa5s2ULs2QxdF493v+LFlzzNE= X-Received: by 2002:a92:d3cd:: with SMTP id c13mr20272530ilh.49.1612897844591; Tue, 09 Feb 2021 11:10:44 -0800 (PST) MIME-Version: 1.0 References: <2476830.FrFBg55ix7@curlew> In-Reply-To: <2476830.FrFBg55ix7@curlew> From: Michael Schuster Date: Tue, 9 Feb 2021 20:10:34 +0100 Message-ID: Subject: Bootenv containing several filesystems [Re: "make" in ports tells me "requires kernel source files in SRC_BASE=/usr/src." despite an up-to-date /usr/src] To: Mike Clarke Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 4DZstF70pFz3hQG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZrVSxdwV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::132 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-3.99 / 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]; NEURAL_HAM_SHORT(-0.99)[-0.988]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::132: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_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::132:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::132: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: Tue, 09 Feb 2021 19:10:46 -0000 (changing the subject because we changed the subject :-)) 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? Thx Michael > For inactive BEs the output from beadm shows the total space for all the > child datasets and their snapshots but bectl only includes the space for > the > top level dataset and its snapshot. > > For example: > > curlew:/tmp% zfs list -H -o name,used,origin ssd/ROOT/fbsd12.1y > ssd/ROOT/fbsd12.1y 6.02M ssd/ROOT/fbsd12.2d@2020-12-24-11:20:04 > curlew:/tmp% zfs list -t snap -H -o name,used ssd/ROOT/ > fbsd12.2d@2020-12-24-11:20:04 > ssd/ROOT/fbsd12.2d@2020-12-24-11:20:04 55.3M > > This gives a total of 61.3M matching the result for bectl but does not > include the space used by all the children. > > From past experience I know that when I destroy fbsd12.1y it will free up > about 1.9G but there's no way to get this information using bectl > > Since bectl doesn't have an -r option for the list command it's not > possible > for me to make it look for child datasets. Perhaps it should be updated to > check for and include child datasets by default when calculating the size, > this shouldn't have any adverse affect the result if there is only a top > level dataset in the BE. > > -- > Mike Clarke > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion'