From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Crash during mount -o degraded, kernel BUG at fs/btrfs/extent_io.c:2044
Date: Sun, 1 Nov 2015 03:22:40 +0000 (UTC) [thread overview]
Message-ID: <pan$a7ff8$b9ccf1a9$e2bf7f07$68b37eec@cox.net> (raw)
In-Reply-To: 5635508A.4080401@googlemail.com
Philip Seeger posted on Sun, 01 Nov 2015 00:36:42 +0100 as excerpted:
> On 10/31/2015 08:18 PM, Philip Seeger wrote:
>> But it looks like there are still some "invisible" errors on this (now
>> empty) filesystem; after rebooting and mounting it, this one error is
>> logged:
>> BTRFS: bdev /dev/sdc errs: wr 0, rd 0, flush 0, corrupt 199313, gen 0
>
> However, this "invisible" error shows up even with this kernel version.
>
> So I'm still wondering why this error is happening even after a
> successful scrub.
That's NOTABUG and not an error, functioning as designed.
Btrfs device error counts are retained until manually reset, and do not
restart at zero at reboot or with a umount/mount or btrfs module remove/
insert cycle. This highlights problem devices over time as their error
counts increase.
So what btrfs is logging to dmesg on mount here, are the historical error
counts, in this case expected as they were deliberate during your test,
nearly 200K of them, not one or more new errors.
To have btrfs report these at the CLI, use btrfs device stats. To zero
them out, use its -z option. Then mounting should again report 0 corrupt
in dmesg once again... until some other error happens, of course. =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2015-11-01 3:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 23:13 Crash during mount -o degraded, kernel BUG at fs/btrfs/extent_io.c:2044 Erik Berg
2015-10-31 19:18 ` Philip Seeger
2015-10-31 23:36 ` Philip Seeger
2015-11-01 3:22 ` Duncan [this message]
2015-11-01 13:58 ` Philip Seeger
2015-11-01 13:44 ` Anand Jain
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='pan$a7ff8$b9ccf1a9$e2bf7f07$68b37eec@cox.net' \
--to=1i5t5.duncan@cox.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;
as well as URLs for NNTP newsgroup(s).