I have deleted all, but one snapshots. Still the disk remains rather full.
The last snapshot is about 8.4 GB big. The partition usage is 17 Gb (instead of about 8.4 Gb).
How do i free up the remaining (17-8,4 =) about 9 GB?
Help is appreciated.
I have rolled back three months ago. I am under the impression that the previous data is still present somehow, but i can not delete this.
# btrfs balance start /
Did not solve this.
The output of some relevant commands
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 25G 17G 7.4G 70% /
/dev/sda2 25G 17G 7.4G 70% /.snapshots
# du -h -s /.snapshots/*
8.4G /.snapshots/487
4.0K /.snapshots/grub-snapshot.cfg
# btrfs qgroup show -p /
Qgroupid Referenced Exclusive Parent Path
-------- ---------- --------- ------ ----
0/5 16.00KiB 16.00KiB - <toplevel>
0/256 8.86GiB 7.27GiB - @
0/257 1.27GiB 1.27GiB - @/var
0/258 8.64MiB 8.64MiB - @/usr/local
0/259 16.00KiB 16.00KiB - @/srv
0/260 35.66MiB 35.64MiB - @/root
0/261 16.00KiB 16.00KiB - @/opt
0/262 4.11MiB 4.11MiB - @/boot/grub2/x86_64-efi
0/263 16.00KiB 16.00KiB - @/boot/grub2/i386-pc
0/269 16.00KiB 16.00KiB - @/.snapshots
0/605 0.00B 0.00B - <stale>
0/606 0.00B 0.00B - <stale>
0/785 0.00B 0.00B - <stale>
0/786 0.00B 0.00B - <stale>
0/787 0.00B 0.00B - <stale>
0/788 0.00B 0.00B - <stale>
0/796 8.17GiB 6.54GiB - @/.snapshots/487/snapshot
# snapper list
# | Type | Pre # | Date | User | Used Space | Cleanup | Description | Userdata
-----+--------+-------+--------------------------+------+------------+---------+-----------------------+---------
0 | single | | | root | | | current |
487* | single | | Tue Mar 14 22:06:24 2023 | root | 6.58 GiB | | writable copy of #482 |
# btrfs filesystem usage -h /
Overall:
Device size: 24.50GiB
Device allocated: 18.25GiB
Device unallocated: 6.25GiB
Device missing: 0.00B
Device slack: 0.00B
Used: 16.79GiB
Free (estimated): 7.40GiB (min: 7.40GiB)
Free (statfs, df): 7.40GiB
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 46.38MiB (used: 0.00B)
Multiple profiles: no
Data,single: Size:17.47GiB, Used:16.32GiB (93.43%)
/dev/sda2 17.47GiB
Metadata,single: Size:768.00MiB, Used:481.95MiB (62.75%)
/dev/sda2 768.00MiB
System,single: Size:32.00MiB, Used:16.00KiB (0.05%)
/dev/sda2 32.00MiB
Unallocated:
/dev/sda2 6.25GiB
# snapper delete 487
Cannot delete snapshot 487 since it is the currently mounted snapshot.
# btrfs check --force /dev/sda2
Opening filesystem to check...
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/sda2
UUID: 7c0eef22-6f76-4c30-a517-f2bd24ae08f1
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups
found 18029256704 bytes used, no error found
total csum bytes: 16176876
total tree bytes: 505397248
total fs tree bytes: 458244096
total extent tree bytes: 27344896
btree space waste bytes: 135665009
file data blocks allocated: 30389108736
referenced 19139227648
# btrfs subvolume get-default /
ID 796 gen 164293 top level 269 path @/.snapshots/487/snapshot