public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Joshua" <joshua@mailmag.net>
To: "Btrfs BTRFS" <linux-btrfs@vger.kernel.org>
Subject: Large BTRFS array suddenly says 53TiB Free, usage inconsistent
Date: Sun, 14 Nov 2021 05:48:00 +0000	[thread overview]
Message-ID: <2f87defb6b4c199de7ce0ba85ec6b690@mailmag.net> (raw)

I have a large multi-device BTRFS array. (13 devices / 96TiB total usable space)

As of yesterday, it had a little over 5 TiB reported as estimated free by 'btrfs fi usage'

At exactly 7am this morning, my reporting tool reports that the "Free (estimated)" line of 'btrfs
fi usage' jumped to 53TiB.

Now I do use snapshots, managed by btrbk. I currently have 80 snapshots, and it is possible old
snapshots were deleted at midnight, freeing up data.  Perhaps the deletions didn't finish committing until 7am?

However, the current state of the array is concerning to me:

#> btrfs fi usage /mnt
Overall:
Device size: 96.42TiB
Device allocated: 43.16TiB
Device unallocated: 53.26TiB
Device missing: 0.00B
Used: 43.15TiB
Free (estimated): 53.27TiB (min: 53.27TiB)
Free (statfs, df): 4.71TiB
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 512.00MiB (used: 0.00B)
Multiple profiles: no

Data,RAID1: Size:43.10TiB, Used:43.09TiB (99.98%)
{snip}
Metadata,RAID1C3: Size:66.00GiB, Used:62.51GiB (94.71%)
{snip}
System,RAID1C3: Size:32.00MiB, Used:7.12MiB (22.27%)
{snip}
Unallocated:
{snip}

As you can see, it's showing all my data is Raid1 as it should be, and all my metadata is raid1c3
as it should be.
BUT it's showing data ratio: 1 and metadata ratio: 1
Also, the allocated space is showing 43 TiB, which I know to be around the actual amount of used
data by files. Since Raid1 is in use, Allocated data should be around 86....

Any ideas as to what happened, why it's showing this erroneous data, or if I should be worried
about my data in any way?
As of right now, everything appears intact....

--Joshua Villwock

             reply	other threads:[~2021-11-14  5:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14  5:48 Joshua [this message]
2021-11-14 18:45 ` Large BTRFS array suddenly says 53TiB Free, usage inconsistent Max Spliethöver
2021-11-14 19:06   ` Holger Hoffstätte
2021-11-14 19:19     ` Max Spliethöver
2021-11-14 19:34     ` Joshua Villwock

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=2f87defb6b4c199de7ce0ba85ec6b690@mailmag.net \
    --to=joshua@mailmag.net \
    --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