[Bug 1222313] New: btrfs storage discrepancy between used and free space of about 1/3 of the total disk capacity
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Bug ID: 1222313 Summary: btrfs storage discrepancy between used and free space of about 1/3 of the total disk capacity Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel:Filesystems Assignee: kernel-fs@suse.de Reporter: felix.niederwanger@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- I have a btrfs filesystem of about 1 TiB on my Laptop where I'm missing about 1/3 of the capacity of the disk. According to the output of `du`, my disk should occupy about 540 GiB of storage space. This includes snapper snapshots, ignoring the possible space savings by shared space, so this is a generous upper limit. However, df reports that 778GiB of storage are being used at the moment, leaving a discrepancy of about 240 GiB or almost 1/4 of the total SSD capacity that I am unable to account for. If I take the used space reported by snapper instead of the du output of /.snapshots the discrepancy increases to 314 GiB or about 1/3 of the total SSD capacity that are missing. I wrote to the research@suse.de mailing list on Tuesday (https://mailman.suse.de/mlarch/SuSE/research/2024/research.2024.04/msg00000....) and we were unable to find where the missing storage went. Two other users confirmed my issue by reporting they hit a similar issues - one on-list one in a private conversation. In both cases they report increased disk usage with no obvious consumer present. To exclude the known btrfs metadata 6.7 kernel bug, I run a full balance this week, and also checked the output of fi df, which shows that metadata are occupying only 4GiB. The balance didn't change the overall picture. I will attach all collected logs and information as requested in the mail thread below. ## System description Running Tumbleweed 20240402 with Kernel 6.8.1-1-default. I'm using the full disk encryption layout as suggested by the installer in November 2023. This means a single btrfs volume atop a LUKS encrypted lvm volume. I run scrubs manually, and otherwise left the default btrfs maintenance script in their default configuration (balance/trim enabled). -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c1 --- Comment #1 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874057 --> https://bugzilla.suse.com/attachment.cgi?id=874057&action=edit btrfs fi df -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c2 --- Comment #2 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874058 --> https://bugzilla.suse.com/attachment.cgi?id=874058&action=edit btrfs fi du -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c3 --- Comment #3 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874059 --> https://bugzilla.suse.com/attachment.cgi?id=874059&action=edit btrfs subvolume list -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c4 --- Comment #4 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874060 --> https://bugzilla.suse.com/attachment.cgi?id=874060&action=edit btrfs fi usage -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c5 --- Comment #5 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874061 --> https://bugzilla.suse.com/attachment.cgi?id=874061&action=edit df -h -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c6 --- Comment #6 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874062 --> https://bugzilla.suse.com/attachment.cgi?id=874062&action=edit du -hs -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c7 --- Comment #7 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874063 --> https://bugzilla.suse.com/attachment.cgi?id=874063&action=edit ls -al -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c8 --- Comment #8 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874064 --> https://bugzilla.suse.com/attachment.cgi?id=874064&action=edit lsblk -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c9 --- Comment #9 from Felix Niederwanger <felix.niederwanger@suse.com> --- Created attachment 874065 --> https://bugzilla.suse.com/attachment.cgi?id=874065&action=edit snapper ls -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Martin Jedamzik <martin.jedamzik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.jedamzik@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 https://bugzilla.suse.com/show_bug.cgi?id=1222313#c10 --- Comment #10 from Felix Niederwanger <felix.niederwanger@suse.com> --- du: 459GiB + 80GiB (snapshots)
80G /.snapshots 0 /dev 142G /home 224K /opt 0 /proc 23M /root 2.6M /run 304G /srv 0 /sys 4.0K /tmp 13G /var
df: 778G
/dev/mapper/system-root 932G 778G 148G 85% /.snapshots /dev/mapper/system-root 932G 778G 148G 85% /boot/grub2/i386-pc /dev/mapper/system-root 932G 778G 148G 85% /boot/grub2/x86_64-efi /dev/mapper/system-root 932G 778G 148G 85% /home /dev/mapper/system-root 932G 778G 148G 85% /opt /dev/mapper/system-root 932G 778G 148G 85% /usr/local /dev/mapper/system-root 932G 778G 148G 85% /srv /dev/mapper/system-root 932G 778G 148G 85% /root /dev/mapper/system-root 932G 778G 148G 85% /var
btrfs fi df: 769GiB
Data, single: total=794.00GiB, used=769.06GiB System, DUP: total=32.00MiB, used=128.00KiB Metadata, DUP: total=7.00GiB, used=4.03GiB GlobalReserve, single: total=512.00MiB, used=0.00B
snapper:
# | Type | Pre # | Date | User | Used Space | Cleanup | Description | Userdata -----+--------+-------+--------------------------+------+------------+---------+----------------------------------+------------- 0 | single | | | root | | | current | 1* | single | | Tue Nov 7 14:02:39 2023 | root | 1.22 MiB | | first root filesystem | 3 | single | | Tue Nov 7 14:23:38 2023 | root | 5.38 GiB | | Fresh | 298 | single | | Tue Apr 2 08:52:47 2024 | root | 286.58 MiB | | TW 20240329 - after libzma vuln | 301 | pre | | Thu Apr 4 08:03:38 2024 | root | 85.66 MiB | number | zypp(zypper) | important=no 302 | post | 301 | Thu Apr 4 08:04:52 2024 | root | 19.06 MiB | number | | important=no 303 | single | | Thu Apr 4 13:37:29 2024 | root | 944.00 KiB | | TW 20240402 - after liblzma vuln |
However I count, there's always a considerable portion of the disk storage capacity being eaten away by something. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Sören Schmidt <soeren.schmidt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |soeren.schmidt@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Pavel Dostál <pdostal@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pdostal@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Lars Marowsky-Bree <lmb@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lmb@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222313 Ricardo Branco <rbranco@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rbranco@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com