From: Marc MERLIN <marc_news@merlins.org>
To: linux-raid@vger.kernel.org
Cc: richard@sauce.co.nz
Subject: Re: mdadm create corrupted md data?
Date: Tue, 6 May 2008 16:08:00 -0700 [thread overview]
Message-ID: <20080506230800.GL31536@merlins.org> (raw)
In-Reply-To: <20080506054819.GA6413@merlins.org>
[please Cc me on replies, I see them faster that way]
On Mon, May 05, 2008 at 10:48:19PM -0700, Marc MERLIN wrote:
> I thought I could recreate a n-1 array like so:
> gargamel:~# mdadm --create /dev/md5 --level=5 --chunk=64 --layout=left-symmetric --raid-devices=5 /dev/sd{c,d,f,g}1
> mdadm: You haven't given enough devices (real or missing) to create this array
>
> In the olden days (pre-mdadm), I could bring up the array by giving 5 drives
> and marking /dev/sde1 as failed-disk instead of read-disk (or somesuch).
Indeed "missing" as a device name did it, thanks Richard (I guess I can't
read when it's late).
Sad part is that recreating the device worked, but my VG on top disappeared.
I may have found a bug or misfeature.
During my first post, and up to this mornhing, I had:
Layout : left-symmetric
Chunk Size : 64K
md5 : active raid5 sdf1[0] sdc1[3] sdg1[2] sde1[1]
1953535744 blocks level 5, 64k chunk, algorithm 2 [5/4] [UUUU_]
pvdisplay /dev/md5 or vgscan would find the pv and vg.
Then, I just typed this:
mdadm --create /dev/md5 --level=5 --raid-devices=5 /dev/sd{c,d,f,g}1 missing
it made a new md5 that vgscan doesn't find anything on.
but I'm very confused as to why
mdadm --create /dev/md5 --level=5 --raid-devices=5 /dev/sd{c,e,f,g}1 missing
also gives me an md5 that vgscan won't find its pv on anymore
gargamel:~# cat /proc/mdstat | grep -1 md5 | tail -n+2
md5 : active raid5 sdg1[3] sdf1[2] sde1[1] sdc1[0]
1953535744 blocks level 5, 64k chunk, algorithm 2 [5/4] [UUUU_]
gargamel:~# pvdisplay /dev/md5
No physical volume label read from /dev/md5
Failed to read physical volume "/dev/md5"
Any idea what got corrupted in my mdadm runs that caused my data to apparently be
gone now?
(good news is that I do have an up to date backup, but I should have to use
it, and I'd like to recover from this the way it should work, so that I can
learn from it)
It's maybe a good time to give:
2.6.24.5-slub-dualcore2smp-volpreempt-noticks
and
mdadm - v2.6.4 - 19th October 2007
Even if I've lost my data, I'd still like to try to find out what went wrong and help debug
if that helps.
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
next prev parent reply other threads:[~2008-05-06 23:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 5:48 how to recreate a raid5 array with n-1 drives? Marc MERLIN
2008-05-06 7:17 ` Richard Scobie
2008-05-06 23:08 ` Marc MERLIN [this message]
2008-05-07 5:38 ` mdadm create corrupted md data? Dan Williams
2008-05-07 6:56 ` Marc MERLIN
2008-05-07 9:29 ` David Greaves
2008-05-07 15:08 ` Marc MERLIN
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=20080506230800.GL31536@merlins.org \
--to=marc_news@merlins.org \
--cc=linux-raid@vger.kernel.org \
--cc=richard@sauce.co.nz \
/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).