From nobody Mon Aug 21 11:46:18 2023 X-Original-To: freebsd-questions@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 4RTrKc1p1qz4qfhk for ; Mon, 21 Aug 2023 11:46:28 +0000 (UTC) (envelope-from kayasaman@optiplex-networks.com) Received: from mail.optiplex-networks.com (mail.optiplex-networks.com [45.149.190.182]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTrKZ54l5z4XV5 for ; Mon, 21 Aug 2023 11:46:26 +0000 (UTC) (envelope-from kayasaman@optiplex-networks.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=optiplex-networks.com header.s=AE93A2AC-7F67-11EA-90AE-8A1FE64F6997 header.b=xhqC0Mkp; spf=pass (mx1.freebsd.org: domain of kayasaman@optiplex-networks.com designates 45.149.190.182 as permitted sender) smtp.mailfrom=kayasaman@optiplex-networks.com; dmarc=pass (policy=quarantine) header.from=optiplex-networks.com Received: from localhost (localhost [127.0.0.1]) by mail.optiplex-networks.com (Postfix) with ESMTP id 7C40815C2C73 for ; Mon, 21 Aug 2023 12:46:19 +0100 (BST) Received: from mail.optiplex-networks.com ([127.0.0.1]) by localhost (mail.optiplex-networks.com [127.0.0.1]) (amavis, port 10032) with ESMTP id NNMoZAt6yGi4 for ; Mon, 21 Aug 2023 12:46:19 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by mail.optiplex-networks.com (Postfix) with ESMTP id 0FF8915C2E18 for ; Mon, 21 Aug 2023 12:46:19 +0100 (BST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.optiplex-networks.com 0FF8915C2E18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optiplex-networks.com; s=AE93A2AC-7F67-11EA-90AE-8A1FE64F6997; t=1692618379; bh=BQl7d8SRMqXwg0Xmf10LOFTBbX2p+NDno7Qr/c+41FI=; h=Message-ID:Date:MIME-Version:To:From; b=xhqC0Mkp0O5gdrV9gFomFk0rTo2W0JMk9GRq8l0INJxqpR0idX6zkys4HFj6oLH3j w5/wq+ULbxQmUyjwiAUYrC6Oo4AAiwt/J2fiO9wo61LSq8WXjdr/+V0/f7SCF9UXLY 4U6GhjHTdEyKY5HeEMdSlOpUTpnNZncJmFpLpii+CWgtsOl9Wavvd6czCh1Ls1PH+n ERO5zNdvTlIWXR7jgFnUkzPBvGPmzMJzO4munGonH2KlGkZCnvX+Iidi6s/Qvj6xB9 nt3/Khze4DTrGb7rmyldL32jhYs1l9o+b7tpGs3iypuGKoPGQ09eNRzBePUb9wMJXE cCWy7UBufpYbA== X-Virus-Scanned: amavis at mail.optiplex-networks.com Received: from mail.optiplex-networks.com ([127.0.0.1]) by localhost (mail.optiplex-networks.com [127.0.0.1]) (amavis, port 10026) with ESMTP id AfqI-j8Lx4H9 for ; Mon, 21 Aug 2023 12:46:18 +0100 (BST) Received: from [192.168.20.23] (unknown [192.168.20.23]) by mail.optiplex-networks.com (Postfix) with ESMTPSA id EEC2315C2C73 for ; Mon, 21 Aug 2023 12:46:18 +0100 (BST) Message-ID: <8f3b445d-3f55-f359-ce5e-0d86c57755fe@optiplex-networks.com> Date: Mon, 21 Aug 2023 12:46:18 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: freebsd-questions@freebsd.org From: Kaya Saman Subject: ZFS Root size keeps going down after upgrade to 13.2-release Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[optiplex-networks.com,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[optiplex-networks.com:s=AE93A2AC-7F67-11EA-90AE-8A1FE64F6997]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[optiplex-networks.com:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; ASN(0.00)[asn:202596, ipnet:45.149.188.0/22, country:GB]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RTrKZ54l5z4XV5 Hi all, I have just upgraded my system from 13.1 -> 13.2 and now the maximum=20 file system size keeps going down and 'df' is showing as hardly any=20 space left on the drive? # df -h Filesystem=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Size=C2=A0=C2=A0=C2=A0 Used=C2=A0=C2= =A0 Avail Capacity=C2=A0=20 Mounted on zroot/ROOT/default=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 37G=C2=A0=C2=A0=C2=A0=C2=A0 36G=C2=A0=C2=A0=C2=A0 720M 98%=C2=A0=C2=A0=C2= =A0 / Yesterday when performing the upgrade I did notice this which happened=20 after deleting over 20GB of 'preview' files for one of my webapps in=20 /usr/local/www/ which is hosted by the apache2 port. The file system was=20 at around 97% yet after the 'rm -rf *' command the file system went to 10= 0%? Just as an FYI, it's the standard upgrade from the FAQ page: freebsd-update -r 13.2-RELEASE upgrade The root system is mirrored between two disks: =C2=A0=C2=A0=C2=A0 NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 STATE=C2= =A0=C2=A0=C2=A0=C2=A0 READ WRITE CKSUM =C2=A0=C2=A0 =C2=A0zroot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ONLINE=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2= =A0=C2=A0 0 =C2=A0=C2=A0 =C2=A0=C2=A0 mirror-0=C2=A0 ONLINE=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 ada0p3=C2=A0 ONLINE=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0= 0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 ada1p3=C2=A0 ONLINE=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0= 0 Reading up a little I found a posting where someone had been trying to=20 delete snapshots which where taking up huge areas of space. Not the same=20 problem I think since the snapshots of upgrades do not take up that much=20 and I have already removed the larger obsolete snapshots containing=20 FreeBSD 12.x. Here is the output from 'zfs list -o space': zroot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 720M=C2=A0=C2=A0 107G 0B=C2=A0=C2=A0=20 2.20G=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 105G zroot/ROOT=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 720M=C2=A0 88.5G 0B=C2=A0=C2=A0=C2=A0=C2=A0=20 88K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 88.5G zroot/ROOT/13.1-RELEASE-p5_2023-08-20_220010=C2=A0=C2=A0 720M=C2=A0=C2=A0= =C2=A0=C2=A0 8K 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 8K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0B zroot/ROOT/13.2-RELEASE-p2_2023-08-20_224534=C2=A0=C2=A0 720M=C2=A0=C2=A0= =C2=A0=C2=A0 8K 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 8K=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 0B=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0B The actual link I found that I mentioned above was this one:=20 https://forums.freebsd.org/threads/zfs-how-to-properly-remove-unnecessary= -snapshots-and-not-damage-data.85436/ in which here is the output of 'bectl list': # bectl list BE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint Space Created 13.1-RELEASE-p5_2023-08-20_220010 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 34.5M 2023-08-20 22:00 13.2-RELEASE-p2_2023-08-20_224534 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9.56M 2023-08-20 22:45 default=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 NR=C2=A0=C2=A0=C2=A0=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 88.5G 2018-08-07 02:53 What I really do not understand is why is the space getting smaller for=20 the file system 'size' and how do I regain it? I probably have deleted=20 around 40GB (of user based files) already yet nothing is showing up and=20 no space is clearing. I wonder if the recent update has done something=20 to the root pool? Would anyone be able to help on this one? Basically I just want to=20 create space again on the drive as currently I am unable to even fetch=20 the @ports collection with only 720M of disk space being shown as=20 left.... cleaning @ports should have given me quite a few GB spare but=20 nothing happening at all?? Many thanks. Kaya