Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Bhasker C V <bhasker@unixindia.com>, linux-btrfs@vger.kernel.org
Subject: Re: several GB freespace missing
Date: Mon, 3 Jun 2024 08:27:17 +0930	[thread overview]
Message-ID: <fc0ae1a1-7459-46e7-a34d-43b27ce0c7ca@gmx.com> (raw)
In-Reply-To: <CAPLCSGAAUMp4-xhcJ3hdFU1HCR-Uf+9q_i7OMr7Zpb+ybTRg0Q@mail.gmail.com>



在 2024/6/3 03:53, Bhasker C V 写道:
> Below is the status
>
>
> $ sudo btrfs fi df .
> Data, single: total=139.01GiB, used=136.63GiB
> System, DUP: total=32.00MiB, used=48.00KiB
> Metadata, DUP: total=1.00GiB, used=191.61MiB
> GlobalReserve, single: total=169.20MiB, used=0.00B
> $ sudo df -h .
> Filesystem                Size  Used Avail Use% Mounted on
> /dev/mapper/datafs        160G  138G   22G  87% /tmp/user/1000/data
> $ sudo du -hs .
> 90G     .
> $ sudo btrfs su li .

Please try "btrfs subvolume list -a" to list all subvolumes.

> $
>
> I have tried a btrfs balance with --dusage=90
> I have scrubbed the data
> I have done a full csum
>
> I am not sure how to recover from the 48GB discrepancy
>
> Please could someone tell me what is happening and how i can get back
> my disk space ?

Another possibility is related to the btrfs extent bookend behavior, can
waste a lot of space if the workload involves a lot of random small writes.

In that case you may want to defrag the fs.

Thanks,
Qu

>

      reply	other threads:[~2024-06-02 22:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02 18:23 several GB freespace missing Bhasker C V
2024-06-02 22:57 ` Qu Wenruo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc0ae1a1-7459-46e7-a34d-43b27ce0c7ca@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=bhasker@unixindia.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox