#[SOLVED] Struggling with free space and BTRFS

22 messages · Page 1 of 1 (latest)

worldly spade
#

I have been trying to clear up space on my ssd. Currently I have 2 subvolumes, one for the root filesystem and one for home folders. I have a fresh install of arch and about 120GB of space used in my home folder. I just deleted 60GB worth of data from the home folder but the available storage didn't increase. It's been sitting at ~700GB. I don't have any snapshots of the home folder so I don't know why the storage space didn't increase. I have a 1TB ssd but reporting that only 700GB is free space and can't figure out what's going on.

btrfs usage is reproting the following:
``sudo btrfs filesystem usage /
Overall:
Device size: 927.01GiB
Device allocated: 232.06GiB
Device unallocated: 694.95GiB
Device missing: 0.00B
Used: 231.28GiB
Free (estimated): 695.25GiB (min: 347.78GiB)
Free (statfs, df): 695.25GiB
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 382.58MiB (used: 0.00B)
Multiple profiles: no

Data,single: Size:226.00GiB, Used:225.70GiB (99.87%)
/dev/nvme0n1p3 226.00GiB

Metadata,DUP: Size:3.00GiB, Used:2.79GiB (93.03%)
/dev/nvme0n1p3 6.00GiB

System,DUP: Size:32.00MiB, Used:48.00KiB (0.15%)
/dev/nvme0n1p3 64.00MiB

Unallocated:
/dev/nvme0n1p3 694.95GiB


I have also rebalanced the system but it never changes the total amount of storage allocated and my free space just keeps decreasing even when I delete files
floral hull
#

hold
on ill open my pc
cant read this shit on mobile

floral hull
#

also could you

sudo mount /dev/nvme0n1p3 /mnt -o subvolid=5 
sudo compsize /mnt/*```
#

then wait for compsize's output
and show me when it's done

worldly spade
#

yeah

#
ID 256 gen 325647 top level 5 path @
ID 258 gen 325604 top level 5 path @snapshots
ID 420 gen 325599 top level 258 path @snapshots/220923
ID 421 gen 325647 top level 5 path @home
ID 422 gen 323588 top level 256 path @/var/lib/portables
ID 423 gen 323588 top level 256 path @/var/lib/machines
ID 424 gen 325417 top level 256 path @/.snapshots/220925
floral hull
#

yeah
youre right you dont have snapshots of /home
tho i wanna see what compsize tells

worldly spade
#

well I think something is showing up here that I didn't realize, "ID 420 gen 325599 top level 258 path @snapshots/220923" isn't showing up in my /.snapshots folder that is the mount point for @snapshots so something isn't right there

#

that is a snapshot that contains my home folder so it is probably using that extra space

#
Processed 2889731 files, 1015321 regular extents (1393070 refs), 1675790 inline.
Type       Perc     Disk Usage   Uncompressed Referenced  
TOTAL      100%      226G         226G         299G       
none       100%      226G         226G         299G       
prealloc   100%       77M          77M         367M       
floral hull
#

ok yeah
it's probably because of that snapshot

#

can you see the snapshot from the id5 instead of /.snapshot

#

ls /mnt/@snapshot

worldly spade
#

yeah

floral hull
#

weird
aight try deleting that

worldly spade
#

I'm going to double check my fstab. The subvolume isn't mounted correctly

floral hull
#

sudo btrfs su de /mnt/@snapshot/220923

worldly spade
#

welp, I think that will fix it. I was mounting it to .snapshots and not /.snapshots

#

thanks @floral hull !

spare plinthBOT
#

i0bz received a thank you cookie!