Cleaning up disk space

Having issues with disk space, at the moment.
df shows:

Filesystem      1K-blocks      Used  Available Use% Mounted on
devtmpfs             4096         0       4096   0% /dev
tmpfs             8136680    153772    7982908   2% /dev/shm
tmpfs             3254672      1848    3252824   1% /run
/dev/sda3        74692608  72111840     248768 100% /
/dev/sda3        74692608  72111840     248768 100% /.snapshots
/dev/sda3        74692608  72111840     248768 100% /boot/grub2/i386-pc
/dev/sda3        74692608  72111840     248768 100% /boot/grub2/x86_64-efi
/dev/sda3        74692608  72111840     248768 100% /opt
/dev/sda3        74692608  72111840     248768 100% /root
/dev/sda3        74692608  72111840     248768 100% /srv
/dev/sda3        74692608  72111840     248768 100% /usr/local
/dev/sda3        74692608  72111840     248768 100% /var
tmpfs             8136680     25792    8110888   1% /tmp

Have cleared out all snapper images (except 0 + 1), even though I really don’t know how snapper works - used: snapper rm x-xx, but still showing 100% usage on /.
Drive is approx 72GB, /usr shows as about 16.6GB, /home is on a separate partition.
Thought it could be exploding log files, but nothing obvious…
First noticed when doing zypper dup, and it failed towards the end.

john@boss:~> sudo btrfs fi du -s /.snapshots
[sudo] password for root: 
     Total   Exclusive  Set shared  Filename
  29.43GiB   944.00KiB    14.72GiB  /.snapshots

If I run filelight, I ‘think’ it’s telling me I have a 16.8GB disk, and /usr is consuming 16.6GB of that??
Thanks.

Lots of prose, difficult to grasp for me. You may try this instead:

erlangen:~ # df -h /dev/nvme0n1p2
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  1.8T  513G  1.3T  29% /
erlangen:~ # 
erlangen:~ # btrfs filesystem usage -T /
Overall:
    Device size:                   1.77TiB
    Device allocated:            545.07GiB
    Device unallocated:            1.24TiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                        511.90GiB
    Free (estimated):              1.27TiB      (min: 664.40GiB)
    Free (statfs, df):             1.27TiB
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)
    Multiple profiles:                  no

                  Data      Metadata System                            
Id Path           single    DUP      DUP      Unallocated Total   Slack
-- -------------- --------- -------- -------- ----------- ------- -----
 1 /dev/nvme0n1p2 537.01GiB  8.00GiB 64.00MiB     1.24TiB 1.77TiB     -
-- -------------- --------- -------- -------- ----------- ------- -----
   Total          537.01GiB  4.00GiB 32.00MiB     1.24TiB 1.77TiB 0.00B
   Used           506.92GiB  2.49GiB 80.00KiB                          
erlangen:~ # 
erlangen:~ # btrfs quota enable /
erlangen:~ # snapper list
    # | Type   | Pre # | Date                     | User | Used Space | Cleanup | Description            | Userdata     
------+--------+-------+--------------------------+------+------------+---------+------------------------+--------------
   0  | single |       |                          | root |            |         | current                |              
1453* | single |       | Wed Oct  5 01:09:34 2022 | root | 110.73 MiB |         | writable copy of #1435 |              
2082  | pre    |       | Mon Apr 24 19:08:58 2023 | root | 437.68 MiB | number  | zypp(zypper)           | important=yes
2083  | post   |  2082 | Mon Apr 24 19:09:03 2023 | root | 142.66 MiB | number  |                        | important=yes
2096  | pre    |       | Wed Apr 26 22:25:32 2023 | root | 550.86 MiB | number  | zypp(zypper)           | important=yes
2097  | post   |  2096 | Wed Apr 26 22:27:42 2023 | root | 478.80 MiB | number  |                        | important=yes
2112  | pre    |       | Sat Apr 29 19:18:47 2023 | root | 412.79 MiB | number  | zypp(zypper)           | important=yes
2113  | post   |  2112 | Sat Apr 29 19:22:25 2023 | root |   3.20 MiB | number  |                        | important=yes
2114  | pre    |       | Sun Apr 30 04:19:02 2023 | root |   1.14 MiB | number  | zypp(zypper)           | important=no 
2115  | post   |  2114 | Sun Apr 30 04:19:42 2023 | root |   4.78 MiB | number  |                        | important=no 
2116  | pre    |       | Mon May  1 03:28:36 2023 | root |  86.98 MiB | number  | zypp(zypper)           | important=yes
2117  | post   |  2116 | Mon May  1 03:32:14 2023 | root |   8.20 MiB | number  |                        | important=yes
2118  | pre    |       | Mon May  1 14:06:30 2023 | root | 192.00 KiB | number  | zypp(zypper)           | important=no 
2119  | post   |  2118 | Mon May  1 14:06:31 2023 | root | 128.00 KiB | number  |                        | important=no 
2120  | pre    |       | Mon May  1 14:21:07 2023 | root | 560.00 KiB | number  | zypp(zypper)           | important=no 
2121  | post   |  2120 | Mon May  1 14:21:49 2023 | root | 976.00 KiB | number  |                        | important=no 
2122  | pre    |       | Mon May  1 14:59:50 2023 | root |   1.17 MiB | number  | zypp(zypper)           | important=yes
2123  | post   |  2122 | Mon May  1 14:59:53 2023 | root |   1.69 MiB | number  |                        | important=yes
2124  | pre    |       | Tue May  2 03:54:32 2023 | root |   2.14 MiB | number  | zypp(zypper)           | important=no 
2125  | post   |  2124 | Tue May  2 03:54:53 2023 | root |   3.59 MiB | number  |                        | important=no 
2126  | pre    |       | Tue May  2 15:08:43 2023 | root |   5.48 MiB | number  | zypp(zypper)           | important=no 
2127  | post   |  2126 | Tue May  2 15:09:18 2023 | root |   2.22 MiB | number  |                        | important=no 
2128  | pre    |       | Wed May  3 05:39:36 2023 | root |   1.17 MiB | number  | zypp(zypper)           | important=no 
2129  | post   |  2128 | Wed May  3 05:40:16 2023 | root |   2.00 MiB | number  |                        | important=no 
2130  | pre    |       | Wed May  3 14:47:57 2023 | root |   2.38 MiB | number  | zypp(zypper)           | important=no 
2131  | post   |  2130 | Wed May  3 14:48:07 2023 | root |   1.34 MiB | number  |                        | important=no 
2132  | pre    |       | Wed May  3 21:55:08 2023 | root |   1.81 MiB | number  | zypp(zypper)           | important=no 
2133  | post   |  2132 | Wed May  3 21:55:10 2023 | root |   1.72 MiB | number  |                        | important=no 
2134  | pre    |       | Thu May  4 03:02:29 2023 | root | 832.00 KiB | number  | zypp(zypper)           | important=no 
2135  | post   |  2134 | Thu May  4 03:02:40 2023 | root |   2.20 MiB | number  |                        | important=no 
erlangen:~ # 
john@BossUbunt:/$ df -h /dev/sda3
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        72G   70G  6.9M 100% /MyMnt
john@BossUbunt:/$ sudo btrfs filesystem usage -T /MyMnt
Overall:
    Device size:		  71.23GiB
    Device allocated:		  71.23GiB
    Device unallocated:		   1.00MiB
    Device missing:		     0.00B
    Used:			  68.92GiB
    Free (estimated):		   6.81MiB	(min: 6.81MiB)
    Free (statfs, df):		   6.81MiB
    Data ratio:			      1.00
    Metadata ratio:		      2.00
    Global reserve:		 191.92MiB	(used: 0.00B)
    Multiple profiles:		        no

             Data     Metadata System              
Id Path      single   DUP      DUP      Unallocated
-- --------- -------- -------- -------- -----------
 1 /dev/sda3 61.17GiB 10.00GiB 64.00MiB     1.00MiB
-- --------- -------- -------- -------- -----------
   Total     61.17GiB  5.00GiB 32.00MiB     1.00MiB
   Used      61.16GiB  3.88GiB 16.00KiB

Currently running Ubuntu from dual-boot…
Tumbleweed / mounted at MyMnt.

btrfs check ends:

[3/7] checking free space tree
[4/7] checking fs roots
checksum verify failed on 897187840 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 897187840 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 897187840 wanted 0x00000000 found 0xb6bde3e4
bad tree block 897187840, bytenr mismatch, want=897187840, have=0
The following tree block(s) is corrupted in tree 457:
	tree block bytenr: 898760704, level: 2, node key: (35310, 12, 35305)
ERROR: errors found in fs roots
found 69838114816 bytes used, error(s) found
total csum bytes: 61136716
total tree bytes: 4164894720
total fs tree bytes: 3963502592
total extent tree bytes: 125698048
btree space waste bytes: 905531387
file data blocks allocated: 608793452544
 referenced 322315554816

'Bout to try a repair - which apparently you shouldn’t do :frowning:

Thanks.

Did you try any of these: How to recover from BTRFS errors | Support | SUSE

Yes, has a bit of a play…
It’s only an OS partition, anyways, have been thinking about reinstalling recently, anyway (probably because it has been slowing down because of corruption!), so will try the repair option, if not reinstall…
Just hope it doesn’t indicate my SSD is on the way out - that could be a bit more distressing!
Thanks.

You may want to make sure your drive is working properly. Check for errors in the output of smartctl -x and search the full journal for errors using journal -g sda3 -p4.

You do not run btrfs check on mounted filesystem, not to mention attempting repair.

Post

btrfs subvolume list /MyMnt
btrfs qgroup show /MyMnt

Yep, realize that. That was after I had run the previous stuff and umount-ed.

seems fine - no errors

Isn’t this only finding errors with sda3, anyway… , but using the same search with ‘sda’ only brings up errors only from sda3…

Ubuntu + Win10 are running off the same drive, with no issues - touch wood.

Thanks.
('bout to re-install).