From: Sam Bingner <sam@bingner.com>
To: Durval Menezes <durval.menezes@gmail.com>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: reiserfsck Segfaulting om md readonly raid6 array, dmesg shows "kernel BUG at drivers/md/md.c:5790"
Date: Tue, 2 Apr 2013 05:35:52 +0000 [thread overview]
Message-ID: <690BA797-78CE-4DFE-B246-B38AD301455F@bingner.com> (raw)
In-Reply-To: <20130401172929.W24136@tmp.com.br>
On Apr 1, 2013, at 10:26 AM, Durval Menezes <durval.menezes@gmail.com> wrote:
> Hello folks,
>
> First a little background: I'm in the process of recovering a 5-disk RAID6
> array where 3 devices failed :-/ What happened is that one device died,
> then we inserted a new device and during rebuild two others were kicked
> from the array, separated by a few minutes, due to them having bad sectors
> too and taking too long to return failure to md (TLER was not set). This
> was on a EL4-based system running kernel 2.6.27.
>
> I've rebooted from a recovery CD (gentoo mini with kernel 2.6.29), then
> managed to reassemble the array with the two intact disks and one of the
> kicked-out ones. I then set it to readonly (md --readonly /dev/md0) for
> safety while checking everything out, and then checked it with vgscan,
> which found all three LVM volumes (good sign, and IMO demonstrates that my
> data could have survived). Then I set those volumes active (with vgchange
> -a y) and tried to run "reiserfsck --check" on the first of them, with the
> following result:
>
> reiserfsck --check /dev/VolGroup00/Main
> [...]
> Replaying journal..
> Trans replayed: mountid 47, transid 11403219, desc 197, len 1, commit 199, next trans offset 182
> Segmentation fault
>
> I then checked dmesg and got the "kernel BUG at drivers/md/md.c" message
> block copied below.
>
> I wonder whether this is related to the fsync bug on md0 arrays recently
> reported here on the list (it makes sense for reiserfsck to call fsync
> after each critical recovery point, even though not much sense if the
> filesystem is in read-only mode... but anyway IMHO the request should have
> been just ignored).
>
> Also, what would you suggest in order to recover from this? Should I just
> reset the array to readwrite mode and hope for the best? Hope I don't need
> a new kernel for recovery, because it will not be viable to upgrade to a
> more recent kernel, nor change from reiserfs to something else in the
> middle of this (specially in the middle recovering my data).
>
> Thanks in advance,
> --
> Durval.
I would suggest making a snapshot of your filesystem and running the fsck on that. If it screws up you can delete the snapshot and try something else without having corrupted your data.
Sam
prev parent reply other threads:[~2013-04-02 5:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-01 20:26 reiserfsck Segfaulting om md readonly raid6 array, dmesg shows "kernel BUG at drivers/md/md.c:5790" Durval Menezes
2013-04-02 5:35 ` Sam Bingner [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=690BA797-78CE-4DFE-B246-B38AD301455F@bingner.com \
--to=sam@bingner.com \
--cc=durval.menezes@gmail.com \
--cc=linux-raid@vger.kernel.org \
/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