All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: linux-btrfs@vger.kernel.org,
	Chris Murphy <lists@colorremedies.com>,
	Kai Krakow <hurikhan77@gmail.com>,
	bepi@adria.it, matt@techsquare.com, mh@zugschlus.de,
	mkaganer@gmail.com, david@codepoets.co.uk, tch@virtall.com,
	somethingsome2000@gmail.com
Cc: Chris Mason <clm@fb.com>,
	bo.li.liu@oracle.com, fdmanana@suse.com,
	Josef Bacik <jbacik@fb.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: Sat, 15 Jul 2017 16:12:45 -0700	[thread overview]
Message-ID: <20170715231245.GA28281@merlins.org> (raw)
In-Reply-To: <20170715012216.njq6az3y34qyomtb@merlins.org>

On Fri, Jul 14, 2017 at 06:22:16PM -0700, Marc MERLIN wrote:
> Dear Chris and other developers,
> 
> Can you look at this bug which has been happening since 2012 on apparently all kernels between at least
> 3.4 and 4.11.
> I didn't look in detail at each thread (took long enough to even find them all and paste here), but they seem pretty
> similar although the reasons how they got there may be different, or at least not as benign as a race condition
> between snapshot creation and deletion for those who do hourly snapshot rotations like me.

I just finished 2 check repairs, one with each mode, they both come back
clean.
Yet my FS still remounts read only with the same
BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2967: errno=-17 Object already exists
BTRFS info (device dm-2): forced readonly
BTRFS warning (device dm-2): failed setting block group ro, ret=-30 

So, given that I can reproduce this almost at will (actually I wish I could
stop it, for now I've turned off snapshots), and that the filesystem is deemed
clean, is there any patch/fix I can try?

Others on this thread with the same error: did anyone recover from this
without wiping the filesystem?

Is there a chance a balance might work around the bug so that whatever
layout I have, changes, and stops the bug from occuring?


gargamel:~# btrfs check --repair  /dev/mapper/dshelf1
enabling repair mode
Checking filesystem on /dev/mapper/dshelf1
UUID: 36f5079e-ca6c-4855-8639-ccb82695c18d
checking extents
Fixed 0 roots.
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 11454147125248 bytes used, no error found
total csum bytes: 11169793608
total tree bytes: 13468549120
total fs tree bytes: 715669504
total extent tree bytes: 478838784
btree space waste bytes: 1159606020
file data blocks allocated: 11917231079424
 referenced 11938096029696

gargamel:~# btrfs check --mode=lowmem /dev/mapper/dshelf1
Checking filesystem on /dev/mapper/dshelf1
UUID: 36f5079e-ca6c-4855-8639-ccb82695c18d
checking extents
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
found 11454147158016 bytes used, no error found
total csum bytes: 11169793608
total tree bytes: 13506461696
total fs tree bytes: 753549312
total extent tree bytes: 478871552
btree space waste bytes: 1165617982
file data blocks allocated: 13203054301184
 referenced 13229588148224

-- 
"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/  

  reply	other threads:[~2017-07-15 23:12 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 [this message]
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
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=20170715231245.GA28281@merlins.org \
    --to=marc@merlins.org \
    --cc=bepi@adria.it \
    --cc=bo.li.liu@oracle.com \
    --cc=clm@fb.com \
    --cc=david@codepoets.co.uk \
    --cc=dsterba@suse.cz \
    --cc=fdmanana@suse.com \
    --cc=hurikhan77@gmail.com \
    --cc=jbacik@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=matt@techsquare.com \
    --cc=mh@zugschlus.de \
    --cc=mkaganer@gmail.com \
    --cc=somethingsome2000@gmail.com \
    --cc=tch@virtall.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.