From nobody Sat Jun 15 10:20:30 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W1XHD4cVvz5NXNT for ; Sat, 15 Jun 2024 10:21:12 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1XHC6QrRz4vpw; Sat, 15 Jun 2024 10:21:11 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1718446855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VHpV2XGwbxc0IeywWO5S+JTOMepxH8+QK7B93EWBd24=; b=dOcokcv0y29VFMlW6WWgQteVGujWq9lqStwZirEIq1RfBamjoLzxV4fj/R2MjBeOJMuR+f r5X5hZl8cNSPw9KUSAUJOXo6wRc9Yv9KPGFGK2nXkkyqFXdPt3oQh+oyILm6NjWPFmO6iZ vKVPXV7qM7RvBp3hCtedrtRDE1axfmGQKtiwovex1wQ7CqyY91rETzaDxEdKD9YTJxeMrg z9C3iqYBGU3HQzGwQTqRXf1SgaoLJwf83m22cMFfssT64Z/pdCJkFL99D5u1Rvzsb/rOIu HF7vDWeAI4QM6EZfg9WEPy+I13CxB//2R/2WpAXdZrofROFUC5KzY1//iaV/3w== Date: Sat, 15 Jun 2024 12:20:30 +0200 From: Alexander Leidinger To: Gordon Bergling Cc: Craig Leres , freebsd-stable@freebsd.org Subject: Re: ZFS space allocation In-Reply-To: References: <23cac5c2-13b7-4f3b-a06f-050fed91e36b@freebsd.org> Message-ID: <40a1d371ded88375d43163b8b0dd146b@Leidinger.net> Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_3ed7183aa2610f6648331360d17dae04"; micalg=pgp-sha256 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE] X-Rspamd-Queue-Id: 4W1XHC6QrRz4vpw This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_3ed7183aa2610f6648331360d17dae04 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2024-06-15 07:48, schrieb Gordon Bergling: > Hi Craig, > > On Fri, Jun 14, 2024 at 10:26:57PM -0700, Craig Leres wrote: >> On 6/14/24 22:18, Gordon Bergling wrote: >> >> > I just upgraded a 13.3-RELEASE system to 14.1-RELEASE, which has >> > two ZFS pools, z for ZFS-on-root and storage for asorted stuff. While >> > a 'pkg upgrade' fails, I discovered something strange with the free >> > disk space. >> >> [...] >> >> > In general I don't have any clue where the 16.5G are allocated. >> > >> > Any hints how to get the space back? I have deleted all snapshots, but the available space >> > is still 0B. >> >> I ran into this after upgrading a small vultr vm; I couldn't install >> one >> last large package because there wasn't enough free space. In my case >> it was >> due to a bunch of old boot environment snapshots. I don't know what >> happens >> if you delete the related snapshots without using "bectl" but it still >> might >> be worth looking at BECTL(8) > > Thanks for the hint on bectl(8). After using 'bectl destroy' for > deleting the > remaining snapshots / boot environments I got 9GB free space. I don't > know why > there aren't listed with 'zfs list -t snapshot', but the space is back > and I > can finish the update to 14.1-RELEASE. Check "zfs list -t all", this gives a better overview. # bectl list BE Active Mountpoint Space Created 2024-05-13-095022 - - 1.80G 2024-05-14 12:44 2024-05-17-070639 - - 967M 2024-05-18 12:32 2024-05-27-130054 - - 153M 2024-05-29 12:33 2024-06-06-091808 NR / 10.2G 2024-06-06 09:32 # zfs list -t all -r mpool | grep ROOT mpool/ROOT 10.2G 758G 96K none mpool/ROOT/2024-05-13-095022 2.86M 758G 2.82G / mpool/ROOT/2024-05-17-070639 2.88M 758G 3.07G / mpool/ROOT/2024-05-27-130054 2.36M 758G 3.22G / mpool/ROOT/2024-06-06-091808 10.2G 758G 3.23G / mpool/ROOT/2024-06-06-091808@2023-07-26-21:26:20 3.95G - 4.19G - mpool/ROOT/2024-06-06-091808@2024-05-18-10:32:27 1.80G - 2.82G - mpool/ROOT/2024-06-06-091808@2024-05-29-12:33:26 964M - 3.09G - mpool/ROOT/2024-06-06-091808@2024-06-06-09:32:11-0 150M - 3.22G - When I delete the 2024-05-13 BE (including the origin via "bectl destroy -o xxx"), it will free up the 2.8M from the pool, and the 1.8G from the snapshot. And it seems I forgot the origin-snapshot for my 2023-26-21 BE, which has 3.9G... # zfs destroy mpool/ROOT/2024-06-06-091808@2023-07-26-21:26:20 # zfs list -t all -r mpool | grep ROOT mpool/ROOT 6.25G 762G 96K none mpool/ROOT/2024-05-13-095022 2.86M 762G 2.82G / mpool/ROOT/2024-05-17-070639 2.88M 762G 3.07G / mpool/ROOT/2024-05-27-130054 2.36M 762G 3.22G / mpool/ROOT/2024-06-06-091808 6.24G 762G 3.23G / mpool/ROOT/2024-06-06-091808@2024-05-18-10:32:27 1.80G - 2.82G - mpool/ROOT/2024-06-06-091808@2024-05-29-12:33:26 964M - 3.09G - mpool/ROOT/2024-06-06-091808@2024-06-06-09:32:11-0 150M - 3.22G - # bectl destroy -o mpool/ROOT/2024-05-13-095022 # zfs list -t all -r mpool | grep ROOT mpool/ROOT 4.44G 764G 96K none mpool/ROOT/2024-05-17-070639 2.88M 764G 3.07G / mpool/ROOT/2024-05-27-130054 2.36M 764G 3.22G / mpool/ROOT/2024-06-06-091808 4.44G 764G 3.23G / mpool/ROOT/2024-06-06-091808@2024-05-29-12:33:26 989M - 3.09G - mpool/ROOT/2024-06-06-091808@2024-06-06-09:32:11-0 150M - 3.22G - Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_3ed7183aa2610f6648331360d17dae04 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmZtav4ACgkQEg2wmwP4 2IaH2w/+PD2PR6xmcNGx2Sr/+/sw2cS82icQCoCmFB3ZtY9ZvWad/xzxAJrHGEhY 3pOxAgLMyhh3dyoc5RdXYL3YWU0IVzakO0O8D1L3ZnITR3I6KRF83IeW2GcIqxtd pqNefKNV0yedsxGgSm5F9YQEYSNGwhb9snYY7hSidyGOGGp11OksupxkO69wvAl0 O9qbeY68r0GFFign/CgwStH560VrBGlEp89Jl/pjiOeqnLdUkY22163TdLUCViyQ 3fcL+SmYNfWgxqEHvUfL6mrtaW5TbR+yAjIzNV17b9F/9ZPIDFbeQz7txyoEt66/ iuiKnP28oSmfqVYI4ii/aANrl3isEd1It9QLigjJqu29JjvUkxP2l33GLCVM4pJJ +Om94gOgyqO59IVzR/QVnfvh1EEWF0p3iKjrPH9Daf7C+1GoJG7cLu3df+78tzvE 3kWVRU6w3QqfIbhuCdaP92dgmSRJty2GCz7+7+lzAOWQS+J+/SilK9HOYvvgCRxY KfEU6ljXTUCCCVBtuc4zH/NQXDYc4Lw2wvsctAwZsSGBlcUFmMTCw10aagKCFbMk fOI7Hza9N2/mP503hntihBca1yQ32u0GE0U1+PnBi4MJ8JHJJNsbZFh7YH+lYcgr M3uc8jxYlPQnAfgNNZ/4BX5fJIvrslobWkr4eaIC7bsVecPDqyQ= =HBEQ -----END PGP SIGNATURE----- --=_3ed7183aa2610f6648331360d17dae04--