From: Dave Chinner <david@fromorbit.com>
To: Tim Smith <tim.smith@vaultcloud.com.au>
Cc: linux-xfs@vger.kernel.org
Subject: Re: xfs filesystem reports negative usage - reoccurring problem
Date: Tue, 14 May 2019 07:19:47 +1000 [thread overview]
Message-ID: <20190513211947.GR29573@dread.disaster.area> (raw)
In-Reply-To: <CAHgs-5XkA5xFgxgSaX9m70gduuO1beq6fiY7UEGv1ad6bd19Hw@mail.gmail.com>
On Mon, May 13, 2019 at 11:45:26AM +1000, Tim Smith wrote:
> Hey guys,
>
> We've got a bunch of hosts with multiple spinning disks providing file
> server duties with xfs.
>
> Some of the filesystems will go into a state where they report
> negative used space - e.g. available is greater than total.
>
> This appears to be purely cosmetic, as we can still write data to (and
> read from) the filesystem, but it throws out our reporting data.
>
> We can (temporarily) fix the issue by unmounting and running
> `xfs_repair` on the filesystem, but it soon reoccurs.
....
> Example of a 'good' filesystem on the host:
.....
> fdblocks = 459388955
>
> Example of a 'bad' filesystem on the host:
.....
> fdblocks = 4733263928
decimal hex
459388955 1b61b7cb
4733263928 11a1fdfe8
^
Single bit is wrong in the free block count.
IOWs, I'd say there's single bit errors happening somewhere in your
system. Whether it be memory corruption, machines being rowhammered,
uncorrected storage media errors, etc I have no idea. But it seems
suspicious that the free block count is almost exactly 0x100000000
out....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2019-05-13 21:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-13 1:45 xfs filesystem reports negative usage - reoccurring problem Tim Smith
2019-05-13 14:09 ` Brian Foster
2019-05-13 15:06 ` Eric Sandeen
2019-05-20 23:39 ` Tim Smith
2019-05-21 1:43 ` Dave Chinner
2019-05-21 2:10 ` Tim Smith
2019-05-20 23:36 ` Tim Smith
2019-05-13 21:19 ` Dave Chinner [this message]
2019-05-20 23:41 ` Tim Smith
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=20190513211947.GR29573@dread.disaster.area \
--to=david@fromorbit.com \
--cc=linux-xfs@vger.kernel.org \
--cc=tim.smith@vaultcloud.com.au \
/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