public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
	Chris Murphy <lists@colorremedies.com>
Subject: Re: BTRFS error count 754 after reboot on Debian kernel 6.12.17
Date: Wed, 02 Apr 2025 13:32:44 +1100	[thread overview]
Message-ID: <873501505.0ifERbkFSE@cupcakke> (raw)
In-Reply-To: <7b155ed6-da59-4560-9e2f-1ffa0143d84b@app.fastmail.com>

On Wednesday, 2 April 2025 03:00:33 AEDT Chris Murphy wrote:
> On Tue, Apr 1, 2025, at 1:18 AM, Russell Coker wrote:
> > On Tuesday, 1 April 2025 15:04:20 AEDT Chris Murphy wrote:
> >> These are likely old errors. You'd need to check old logs to see when the
> >> write errors occurred. These statistics are just a counter. You can reset
> >> them with `btrfs dev stats -z` and they'll go back to zero.
> >> 
> >> It's simple counter. It could be 754 errors seen one time. Or it could be
> >> `1 error seen 754 times. Or any combination of multiple errors multiple
> >> times adding up to 754 errors.
> > 
> > Is "btrfs dev stats -z" covered by removing the device from the set and
> > adding it again?  If so I did that but it kept recurring.  The fact that
> > the error count was there in the first place wasn't the unexpected thing,
> > it was the fact that it kept coming back and had no log entries about it.
> 
> Removing it with a `btrfs` command? Or physically disconnecting and
> reconnecting?

btrfs commands.

> The statistics are per device, persistently stored in the device b-tree
> which is metadata block group. So this metadata could be on any device in a
> multiple device Btrfs, not necessarily on the device that produced the
> errors.

It should be on the device itself and once the device is subject to a btrfs 
dev rem command it should be gone for good.

> I'd like to think upon `btrfs device remove` or `btrfs replace` the device's
> stats are also removed from dev tree. But I haven' tested it, and I'm not
> sure what the code says should happen.

After doing the btrfs dev add it reports 0 errors until after reboot.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




  reply	other threads:[~2025-04-02  2:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-22 13:44 BTRFS error count 754 after reboot on Debian kernel 6.12.17 Russell Coker
2025-03-22 21:36 ` Qu Wenruo
2025-03-23  4:11   ` Russell Coker
2025-04-01  4:04 ` Chris Murphy
2025-04-01  5:18   ` Russell Coker
2025-04-01 16:00     ` Chris Murphy
2025-04-02  2:32       ` Russell Coker [this message]
2025-04-02  2:42         ` Chris Murphy
2025-04-02  5:01           ` Russell Coker

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=873501505.0ifERbkFSE@cupcakke \
    --to=russell@coker.com.au \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    /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