From: Stefan Behrens <sbehrens@giantdisaster.de>
To: Todor Ivanov <t.i.ivanov@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS corruptions counter
Date: Mon, 12 Aug 2013 19:42:09 +0200 [thread overview]
Message-ID: <52091E71.10405@giantdisaster.de> (raw)
In-Reply-To: <CAOv4OrWkKGL37r+gnMtB8KbQip61NjhPpX1YA-rLCZQu4vDzHA@mail.gmail.com>
On 08/12/2013 18:57, Todor Ivanov wrote:
> Hi,
>
> We decided to give BTRFS a try. We find it very flexible and generally
> fast. However last week we had a problem with a Marvell controller in
> AHCI and one BTRFS formatted hard drive. We isolated the problem by
> relocating the disk to an Intel contoller (SATA controller: Marvell
> Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) had a
> lot of problems and I managed to overcome them by passing
> libata.force=noncq for a couple of weeks, until it failed generally).
> Now that the disk is on the intel contoller it works fine and data is
> intact, but whenever I do mount or unmount I see:
>
> Aug 10 18:34:47 MyServerHere kernel: btrfs: bdev /dev/sde1 errs: wr 0,
> rd 0, flush 0, corrupt 166, gen 0
>
> The problem is "corrupt 166"
> Sofar I did:
>
> 1. btrfsck and it reported everything is OK
> 2. btrfs scrub start /dev/sde1 and it again reported all is OK
>
> Am I missing something in my filesystem checks or there is another way
> to zero the corrupt counter?
These counters are not reset automatically. To do this manually, run
this command:
btrfs device stats [-z] <path>|<device>
Show current device IO stats. -z to reset stats afterwards.
If you don't have this command, you can find instructions how to compile
updated btrgs-progs tools here:
https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#btrfs-progs_git_repository
Additionally, read the section "build dependencies" which contains a
list of packages that are required to build the tools.
prev parent reply other threads:[~2013-08-12 17:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 16:57 BTRFS corruptions counter Todor Ivanov
2013-08-12 17:42 ` Stefan Behrens [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=52091E71.10405@giantdisaster.de \
--to=sbehrens@giantdisaster.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=t.i.ivanov@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.