From: "David M. Strang" <dstrang@shellpower.net>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: MD or MDADM bug?
Date: Fri, 2 Sep 2005 19:34:00 -0400 [thread overview]
Message-ID: <003501c5b016$cc5d68d0$c700a8c0@NCNF5131FTH> (raw)
In-Reply-To: 17176.51414.689631.346198@cse.unsw.edu.au
Neil Brown wrote:
> On Friday September 2, dstrang@shellpower.net wrote:
> > Neil Brown wrote:
> > > On Friday September 2, dstrang@shellpower.net wrote:
> > > >
> > > > Does this mean I'm going to loose all my data?
> > > >
> > >
> > > No.
> > > At least, you shouldn't, and doing the --create won't make anything
> > > worse.
> > >
> > > So do the --create with the 'missing', and don't add any spares.
> > > Do a 'fsck' or whatever to check that everything is OK.
> > >
> > > If it isn't, we'll have to look again at exactly what happened and
> > > figure out which disks we should have created into the array.
> >
> > -(root@abyss)-(~)- # mdadm -C /dev/md0 -l5 -n28 -c 128 --name=md/md0 -p
> > la
> > /dev/sd[a-l] missing /dev/sd[n-z] /dev/sda[ab]
> > mdadm: invalid number of raid devices: 28
>
> Sorry. Add
> -e 1
Well, I'm quite happy to report --- that worked!
###########
reiserfsck --check started at Fri Sep 2 12:29:18 2005
###########
Replaying journal..
Trans replayed: mountid 23, transid 172404, desc 3638, len 14, commit 3653,
next trans offset 3636
Trans replayed: mountid 23, transid 172405, desc 3654, len 1, commit 3656,
next trans offset 3639
Trans replayed: mountid 23, transid 172406, desc 3657, len 1, commit 3659,
next trans offset 3642
Trans replayed: mountid 23, transid 172407, desc 3660, len 1, commit 3662,
next trans offset 3645
Trans replayed: mountid 23, transid 172408, desc 3663, len 1, commit 3665,
next trans offset 3648
Trans replayed: mountid 23, transid 172409, desc 3666, len 1, commit 3668,
next trans offset 3651
Trans replayed: mountid 23, transid 172410, desc 3669, len 1, commit 3671,
next trans offset 3654
Reiserfs journal '/dev/md0' in blocks [18..8211]: 7 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 279225
Internal nodes 1696
Directories 1962
Other files 15922
Data block pointers 280976644 (0 of them are zero)
Safe links 0
###########
reiserfsck finished at Fri Sep 2 13:13:53 2005
###########
And, no data corruption!
So, once I get the bad drive replaced; and the array re-synced -- will I
want to stop the array, and execute:
mdadm -C /dev/md0 -e1 -l5 -n28 -c 128 --name=md/md0 -p la /dev/sd[a-z]
/dev/sda[ab]
Just so I don't have a problem with a disk 'not really' being part of the
array? IE; mdadm: /dev/sdm is identified as a member of /dev/md0, slot -1.
Also, most of the drives -- have no partitions on them (ie; cfdisk
/dev/sda) -- Can I add them and set the type to FD so it will autodetect the
raid? Or must I do that prior to raid creation?
Thanks again for all the help Neil, once again -- I'm able to recover what
seemed hopeless with zero dataloss.
-- David
next prev parent reply other threads:[~2005-09-02 23:34 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-01 21:26 MD or MDADM bug? David M. Strang
2005-09-02 6:36 ` Claas Hilbrecht
2005-09-02 6:42 ` Claas Hilbrecht
2005-09-02 8:15 ` Neil Brown
2005-09-02 8:33 ` David M. Strang
2005-09-02 8:45 ` Neil Brown
2005-09-02 8:48 ` David M. Strang
2005-09-02 9:34 ` Neil Brown
2005-09-02 9:41 ` David M. Strang
2005-09-02 10:03 ` Neil Brown
2005-09-02 10:08 ` David M. Strang
2005-09-02 11:18 ` Neil Brown
2005-09-02 21:22 ` David M. Strang
2005-09-02 21:49 ` Neil Brown
2005-09-02 23:34 ` David M. Strang [this message]
2005-09-03 3:52 ` Neil Brown
2005-09-03 8:21 ` Tyler
2005-09-04 6:18 ` Neil Brown
2005-09-05 9:20 ` danci
2005-09-05 9:35 ` Mario 'BitKoenig' Holbe
2005-09-05 16:45 ` Molle Bestefich
2005-09-05 21:13 ` Luca Berra
2005-09-06 1:38 ` Neil Brown
2005-09-06 6:38 ` bart
2005-09-06 10:17 ` Molle Bestefich
2005-09-07 2:04 ` berk walker
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='003501c5b016$cc5d68d0$c700a8c0@NCNF5131FTH' \
--to=dstrang@shellpower.net \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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