From: Marc MERLIN <marc@merlins.org>
To: Josef Bacik <jbacik@fb.com>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
Chris Murphy <lists@colorremedies.com>, Chris Mason <clm@fb.com>,
"bo.li.liu@oracle.com" <bo.li.liu@oracle.com>,
"fdmanana@suse.com" <fdmanana@suse.com>,
David Sterba <dsterba@suse.cz>
Subject: Re: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012)
Date: Sun, 3 Sep 2017 13:20:36 -0700 [thread overview]
Message-ID: <20170903202036.b7j6fcknfiisrnsl@merlins.org> (raw)
In-Reply-To: <AD68E364-AF7F-49AA-8376-49E0C7C92998@fb.com>
On Sun, Sep 03, 2017 at 05:33:33PM +0000, Josef Bacik wrote:
> Alright pushed, sorry about that.
I'm reasonably sure I'm running the new code, but still got this:
[ 2104.336513] Dropping a ref for a root that doesn't have a ref on the block
[ 2104.358226] Dumping block entry [115253923840 155648], num_refs 1, metadata 0, from disk 1
[ 2104.384037] Ref root 0, parent 3414272884736, owner 262813, offset 0, num_refs 18446744073709551615
[ 2104.412766] Ref root 418, parent 0, owner 262813, offset 0, num_refs 1
[ 2104.433888] Root entry 418, num_refs 1
[ 2104.446648] Root entry 69869, num_refs 0
[ 2104.459904] Ref action 2, root 69869, ref_root 0, parent 3414272884736, owner 262813, offset 0, num_refs 18446744073709551615
[ 2104.496244] No Stacktrace
Now, in the background I had a monthly md check of the underlying device
(mdadm raid 5), and got some of those. Obviously that's not good, and
I'm assuming that md raid5 may not have a checksum on blocks, so it won't know
which drive has the corrupted data.
Does that sound right?
Now, the good news is that btrfs on top does have checksums, so running a scrub should
hopefully find those corrupted blocks if they happen to be in use by the filesystem
(maybe they are free).
But as a reminder, this whole thread started with my FS maybe not being in a good state, but both
check --repair and scrub returning clean. Maybe I'll use the opportunity to re-run a check --repair
and a scrub after that to see what state things are in.
md6: mismatch sector in range 3581539536-3581539544
md6: mismatch sector in range 3581539544-3581539552
md6: mismatch sector in range 3581539552-3581539560
md6: mismatch sector in range 3581539560-3581539568
md6: mismatch sector in range 3581543792-3581543800
md6: mismatch sector in range 3581543800-3581543808
md6: mismatch sector in range 3581543808-3581543816
md6: mismatch sector in range 3581543816-3581543824
md6: mismatch sector in range 3581544112-3581544120
md6: mismatch sector in range 3581544120-3581544128
As for your patch, no idea why it's not giving me a stacktrace, sorry :-/
Git log of my tree does show:
commit aa162d2908bd7452805ea812b7550232b0b6ed53
Author: Josef Bacik <jbacik@fb.com>
Date: Sun Sep 3 13:32:17 2017 -0400
Btrfs: use be->metadata just in case
I suspect we're not getting the owner in some cases, so we want to just
use the known value.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
next prev parent reply other threads:[~2017-09-03 20:20 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 6:21 BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists Marc MERLIN
2017-07-11 16:00 ` Chris Murphy
2017-07-11 16:48 ` Marc MERLIN
2017-07-11 22:43 ` Chris Murphy
2017-07-11 23:04 ` Marc MERLIN
2017-07-13 1:10 ` Marc MERLIN
2017-07-13 18:17 ` Chris Murphy
2017-07-15 0:48 ` Marc MERLIN
2017-07-15 1:22 ` BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2960: errno=-17 Object already exists (since 3.4 / 2012) Marc MERLIN
2017-07-15 23:12 ` Marc MERLIN
2017-07-16 14:01 ` Giuseppe Della Bianca
2017-07-16 16:06 ` Marc MERLIN
2017-07-17 11:05 ` gius db
2017-08-29 3:16 ` Marc MERLIN
2017-08-29 14:30 ` Josef Bacik
2017-08-29 14:39 ` Marc MERLIN
2017-08-29 14:43 ` Josef Bacik
2017-08-29 18:22 ` Josef Bacik
2017-08-30 3:40 ` Marc MERLIN
2017-08-31 14:52 ` Josef Bacik
2017-08-31 17:36 ` Marc MERLIN
2017-08-31 17:48 ` Josef Bacik
2017-09-01 20:43 ` Marc MERLIN
2017-09-01 23:01 ` Josef Bacik
2017-09-02 16:09 ` Marc MERLIN
2017-09-02 16:52 ` Josef Bacik
[not found] ` <CAHKv19A=OVgCpQpDL2454T+f8QgLm9iynA8xZ4w4Kg8JjYS=UA@mail.gmail.com>
2017-09-02 18:55 ` Fwd: " George Joseph
2017-09-02 23:53 ` Marc MERLIN
2017-09-03 0:30 ` Josef Bacik
2017-09-03 1:01 ` Marc MERLIN
2017-09-03 3:26 ` Josef Bacik
2017-09-03 14:31 ` Marc MERLIN
2017-09-03 14:38 ` Josef Bacik
2017-09-03 14:42 ` Marc MERLIN
2017-09-03 14:55 ` Josef Bacik
2017-09-03 17:33 ` Josef Bacik
2017-09-03 20:20 ` Marc MERLIN [this message]
2017-09-04 0:55 ` Josef Bacik
2017-09-05 18:19 ` Josef Bacik
2017-09-09 18:39 ` Marc MERLIN
2017-09-09 22:56 ` Josef Bacik
2017-09-10 2:36 ` Marc MERLIN
2017-09-10 3:12 ` Josef Bacik
2017-09-10 13:14 ` Marc MERLIN
2017-09-10 13:16 ` Josef Bacik
2017-09-11 0:22 ` Marc MERLIN
2017-09-27 18:01 ` Marc MERLIN
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=20170903202036.b7j6fcknfiisrnsl@merlins.org \
--to=marc@merlins.org \
--cc=bo.li.liu@oracle.com \
--cc=clm@fb.com \
--cc=dsterba@suse.cz \
--cc=fdmanana@suse.com \
--cc=jbacik@fb.com \
--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;
as well as URLs for NNTP newsgroup(s).