* high space usage after ext3 btrfs-convert
@ 2025-10-14 15:04 koraynilay
2025-10-18 17:07 ` koraynilay
0 siblings, 1 reply; 2+ messages in thread
From: koraynilay @ 2025-10-14 15:04 UTC (permalink / raw)
To: linux-btrfs
Hello, I btrfs-convert'd a 475 GiB ext3 partition which had a few GiBs
free, after the conversion I removed the /ext2_saved subvolume and
balanced the fs but the free space went to 0 B (statfs, df) and 1.61 GiB
(estimated) and the df value would randomly jump from 0 B to 1.61 GiB
for a few seconds.
Here whenever I tried to do any more balancing it would just fail with
ENOSPC.
So I made a 488 GiB partition on another HDD and added it to the fs so
that I had 488 GiB free, but when I deleted ~215 GiB, the free space
wouldn't change.
I tried to balance a few times with different percentages but the free
space would always stay at around 486-488 GiB.
So I did a defrag of the whole filesystem (using the command in the
btrfs-convert man page), which made the free space go down to ~200 GiB
and after deduplicating using bees (until it finished) (there is a lot
of duplicate stuff) the free space settled on ~370 GiB.
Now the used space (according to btrfs filesystem usage) is ~600 GiB and
btdu reports there are ~282 GiB of <UNREACHABLE> space which should've
been fixed by the defrag (according to what I found online).
A normal ncdu scan says there are 380 GiB used (402 GiB apparent).
Is there anything else I can try to fix it or should I just save the new
files, restore the ext3 backup and redo it?
Thanks in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: high space usage after ext3 btrfs-convert
2025-10-14 15:04 high space usage after ext3 btrfs-convert koraynilay
@ 2025-10-18 17:07 ` koraynilay
0 siblings, 0 replies; 2+ messages in thread
From: koraynilay @ 2025-10-18 17:07 UTC (permalink / raw)
To: koraynilay, linux-btrfs
Update on this issue:
> which should've been fixed by the defrag
After asking on #btrfs on irc I found the solution, which was actually
to use defrag, but with -t 4G and forcing compression/no compression by
using -czstd/--nocomp.
By running a defrag on the full fs and on some folders/files that still
appeared as <UNREACHABLE>, I was able to get the <UNREACHABLE> space to
~4 GiB (and hopefully it will go to 0 after defragging those remaining
folders/files).
Thanks to Forza for telling me the solution and for multicore and eyeoh
for taking some of their time to help me.
P.S.
> that I had 488 GiB free, but when I deleted ~215 GiB, the free space
This was actually ~86 GiB, but irrelevant I think.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-18 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 15:04 high space usage after ext3 btrfs-convert koraynilay
2025-10-18 17:07 ` koraynilay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox