From: Robert Munteanu <robert.munteanu@gmail.com>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>
Cc: Chris Murphy <lists@colorremedies.com>,
Vytautas D <vytdau@gmail.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs partition converted from ext4 becomes read-only minutes after booting: WARNING: CPU: 2 PID: 2777 at ../fs/btrfs/super.c:260 __btrfs_abort_transaction+0x4b/0x120
Date: Mon, 27 Jul 2015 00:47:46 +0300 [thread overview]
Message-ID: <CAC8ULPaOWS=WS-_oSkihrzi7bnWXuevyqL3R7FPFFQQCdjqdvA@mail.gmail.com> (raw)
In-Reply-To: <559F131B.30206@cn.fujitsu.com>
On Fri, Jul 10, 2015 at 3:34 AM, Qu Wenruo <quwenruo@cn.fujitsu.com> wrote:
> One of my patch addressed a problem that a converted btrfs can't pass
> btrfsck.
>
> Not sure if that is the cause, but if you can try btrfs-progs v3.19.1, the
> one without my btrfs-progs patches and some other newer convert related
> patches, and see the result?
>
> I think this would at least provide the base for bisect the btrfs-progs if
> the bug is in btrfs-progs.
Unfortunately, even though I had the original image saved, I was
unable to restore it ; I went on with btrfs fi defrag and btrfs
balance before realising that there was an issue.
And that issue hid itself for quite some time ( I thought I had
avoided it by using a different /home partition ) and appeared at the
worst possible time - when doing a system update ( zypper dup ). The
system became read-only and I rebooted to
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Trying to boot an older snapshot ( I use snapper ) shows a more explicit error
BTRFS: error (device sda1) in btrfs_replay_log:2334: errno=-95
unknown (Failed to recover log tree)
BTRFS: open_ctree failed
Running
$ btrfs check /dev/sda1
yields the following output ( note that I'm typing this as I see it on
the screen, some typos might occur ):
Checking filesystem on /dev/sda1
UUID: ....
checking extents
checking free space cache
checking fs roots
root 5 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 497 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 689 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 732 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 733 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 734 inode 14214570 errors 100, file extent discount
Found file extent holes:
root 762 inode 14214570 errors 100, file extent discount
Found file extent holes:
....
root 1184 inode 14214570 errors 100, file extent discount
Found file extent holes:
found 110778231275 bytes used err is 1
total csum bytes: 104238064
total tree byes: 4047454208
total fs tree bytes: 3849125888
total extend tree bytes: 76496896
btree space waste bytes: 907307515
file data blocks allocated: 642367569920
referenced 211828183040
btrfs-progs v4.1+20150622
Also, $(uname -r) is 4.1.1-1-desktop
The disk image (still) contains sensitive data so I can't share it
unfortunately. What I can do is keep it untouched until Friday evening
EEST and run any debugging commands that you might think of to trace
down the source of the errors. Alternatively, if there's an easy and
safe fix and debugging is not worth it, I'm happy to apply that fix as
well.
At any rate, looking forward to your replies.
Thanks,
Robert
next prev parent reply other threads:[~2015-07-26 21:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 12:19 btrfs partition converted from ext4 becomes read-only minutes after booting: WARNING: CPU: 2 PID: 2777 at ../fs/btrfs/super.c:260 __btrfs_abort_transaction+0x4b/0x120 Robert Munteanu
2015-06-17 17:46 ` Marc MERLIN
2015-06-17 19:41 ` Marc Joliet
2015-06-18 11:05 ` Robert Munteanu
2015-06-25 4:16 ` Marc MERLIN
2015-06-25 12:08 ` Vytautas D
[not found] ` <CABE5tBasBsycy_+q=RZj1dpqsLTREJTA72F-ZwNLt=kLX6wXhg@mail.gmail.com>
2015-06-25 21:09 ` Marc MERLIN
2015-06-17 18:48 ` Jeff Mahoney
2015-06-18 11:08 ` Robert Munteanu
2015-06-26 1:54 ` Qu Wenruo
2015-06-26 2:08 ` Qu Wenruo
2015-07-09 3:09 ` Chris Murphy
2015-07-09 10:52 ` Vytautas D
[not found] ` <CAO5K3OcA1_Z4-jvv_2C0StBkOr++_vUX4kOspY8cuhnX2t3z_A@mail.gmail.com>
2015-07-09 21:38 ` Chris Murphy
2015-07-10 0:34 ` Qu Wenruo
2015-07-10 0:45 ` Chris Murphy
2015-07-10 4:45 ` Qu Wenruo
2015-07-14 23:29 ` Chris Murphy
2015-07-26 21:47 ` Robert Munteanu [this message]
2015-07-30 13:16 ` Robert Munteanu
2015-07-31 2:08 ` Qu Wenruo
2015-07-31 13:38 ` Robert Munteanu
2015-08-03 0:54 ` Qu Wenruo
2015-08-03 1:22 ` Qu Wenruo
2015-08-03 7:45 ` Robert Munteanu
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='CAC8ULPaOWS=WS-_oSkihrzi7bnWXuevyqL3R7FPFFQQCdjqdvA@mail.gmail.com' \
--to=robert.munteanu@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=quwenruo@cn.fujitsu.com \
--cc=vytdau@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 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).