From: NeilBrown <neilb@suse.de>
To: "Jonathan Harker (Jesusaurus)" <jesusaurus@gentlydownthe.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: Help recovering an interrupted raid0 reshape
Date: Wed, 8 Apr 2015 12:09:55 +1000 [thread overview]
Message-ID: <20150408120955.692b2564@notabene.brown> (raw)
In-Reply-To: <CAC_83AF0EHVVDF7Gwdfw9WB34v+nHCFmpjLR7AQ5qOz5QATgdQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]
On Tue, 7 Apr 2015 16:24:35 -0700 "Jonathan Harker (Jesusaurus)"
<jesusaurus@gentlydownthe.net> wrote:
> On Tue, Apr 7, 2015 at 3:56 PM, NeilBrown <neilb@suse.de> wrote:
> >
> >
> > Hmm... I think I see the bug. It should be easy enough to fix, but I'd like
> > to be able to test it.
> > Could you please:
> >
> > mkdir /tmp/md.metadata
> > mdadm --dump /tmp/md.metadata /dev/md/alpha /dev/md/beta /dev/md/gamma
> > tar czSf /tmp/md.tgz /tmp/md.metadata
> >
> > and then send me /tmp/md.tgz, which should be tiny and contain just the
> > metadata from the array.
>
> I'll send that to you once tar finishes.
Thanks. And just as well I tested as there was another problem.
I think it is all fixed now.
If you:
cd /tmp
git clone git://neil.brown.name/mdadm
cd mdadm
make
./mdadm -A /dev/md124 --force -vvvv /dev/md/{alpha,beta,gamma}
it should assemble the array and continue the reshape.
When it finishes it will leave the array as degraded RAID4.
Simply:
mdadm /dev/md125 --grow --level=0
and it will instantly become RAID0.
NeilBrown
>
> >
> > [[the patch which introduced the problem has a description which starts
> > "This is a bit of a hack and ..."
> > Never accept hacks!
> > ]]
>
> I've reviewed and accepted a few hacks in my day as well. Hopefully
> the cleanup isn't too ugly.
> Thanks again for looking into this.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2015-04-08 2:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-04 2:22 Help recovering an interrupted raid0 reshape Jonathan Harker (Jesusaurus)
2015-04-06 23:46 ` NeilBrown
2015-04-07 1:50 ` NeilBrown
2015-04-07 5:14 ` Jonathan Harker (Jesusaurus)
2015-04-07 6:30 ` NeilBrown
2015-04-07 17:02 ` Jonathan Harker (Jesusaurus)
2015-04-07 21:13 ` NeilBrown
2015-04-07 22:31 ` Jonathan Harker (Jesusaurus)
2015-04-07 22:56 ` NeilBrown
2015-04-07 23:24 ` Jonathan Harker (Jesusaurus)
2015-04-08 2:09 ` NeilBrown [this message]
2015-04-08 17:00 ` Jonathan Harker (Jesusaurus)
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=20150408120955.692b2564@notabene.brown \
--to=neilb@suse.de \
--cc=jesusaurus@gentlydownthe.net \
--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