Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Josef Bacik <jbacik@fusionio.com>
To: Roman Mamedov <rm@romanrm.ru>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: BTRFS error in __btrfs_inc_extent_ref:1935: Object already exists
Date: Mon, 1 Apr 2013 09:31:10 -0400	[thread overview]
Message-ID: <20130401133110.GH1876@localhost.localdomain> (raw)
In-Reply-To: <20130401141207.533886a2@natsu>

On Mon, Apr 01, 2013 at 02:12:07AM -0600, Roman Mamedov wrote:
> On Mon, 1 Apr 2013 04:36:05 +0600
> Roman Mamedov <rm@romanrm.ru> wrote:
> 
> > Hello,
> > 
> > After a reboot the filesystem now does not mount at all, with similar messages.
> 
> So thinking this was an isolated incident, I foolishly continued setting up
> scheduled balance on other systems with btrfs that I have.
> 
> And got into exactly the same situation on another machine!!
> 
> Trying to balance this with -dusage=5, on kernel 3.8.5:
> 
> Data: total=215.01GB, used=141.76GB
> System, DUP: total=32.00MB, used=32.00KB
> System: total=4.00MB, used=0.00
> Metadata, DUP: total=9.38GB, used=1.09GB
> 
> Same messages, "Object already exists".
> 
> While I currently left the previously mentioned 2TB FS in an unmounted broken
> state, still waiting for any response from you on how to properly recover from
> this problem, in this new case I needed to restore the machine as soon as
> possible.
> 
> I tried btrfsck --repair, it corrected a lot of errors, but in the end gave up
> with a message saying that it can't repair the filesystem; then I did
> btrfs-zero-log. After this the FS started mounting successfully again.
> 
> Not sure if I got any data corruption as a result, but this is the root FS
> and /home, and the machine successfully booted up with no data lost in any of
> the apps that were active just before the crash (e.g browser, IM and IRC
> clients), so probably not.
> 

Can you capture an image of these broken file systems the next time it happens?
You'll need to clone the progs here

git://github.com/josefbacik/btrfs-progs.git

and build and then run

btrfs-image -w /dev/whatever blah.img

and then upload blah.img up somewhere I can pull it down.  You can use the -t
and -c options too, but the -w is the most important since you have extent tree
corruption.  Thanks,

Josef

  reply	other threads:[~2013-04-01 13:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-31 22:15 BTRFS error in __btrfs_inc_extent_ref:1935: Object already exists Roman Mamedov
2013-03-31 22:36 ` Roman Mamedov
2013-04-01  8:12   ` Roman Mamedov
2013-04-01 13:31     ` Josef Bacik [this message]
2013-04-01 13:45       ` Chris Kastorff
2013-04-01 13:51         ` Josef Bacik
2013-04-01 15:16       ` Roman Mamedov
2013-04-01 23:00     ` anand jain
2013-04-02  0:46 ` Josef Bacik
2013-04-02  5:21   ` Roman Mamedov

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=20130401133110.GH1876@localhost.localdomain \
    --to=jbacik@fusionio.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rm@romanrm.ru \
    /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