From: Michael Frotscher <infomails@tronserver.dyndns.org>
To: linux-raid@vger.kernel.org
Subject: Re: RAID5 not being reassembled correctly after device swap
Date: Mon, 2 Jul 2007 08:35:18 +0200 [thread overview]
Message-ID: <200707020835.18420.infomails@tronserver.dyndns.org> (raw)
In-Reply-To: <18056.9918.537787.152462@notabene.brown>
On Monday 02 July 2007 00:12:14 Neil Brown wrote:
> Kernel logs from the boot would help here.
> Logs would help.
Sure. The interesting part from dmesg is this:
hdg: max request size: 512KiB
hdg: 398297088 sectors (203928 MB) w/8192KiB Cache, CHS=24792/255/63,
UDMA(100)
hdg: cache flushes supported
hdg: hdg1 hdg2 hdg3 hdg4
hda: max request size: 512KiB
hda: 390721968 sectors (200049 MB) w/8192KiB Cache, CHS=24321/255/63,
UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4
hdb: max request size: 512KiB
hdb: 490234752 sectors (251000 MB) w/7936KiB Cache, CHS=30515/255/63,
UDMA(100)
hdb: cache flushes supported
hdb: hdb1 hdb2 hdb3 hdb4
md: md3 stopped.
md: bind<hdb3>
md: bind<hda3>
raid5: device hda3 operational as raid disk 0
raid5: device hdb3 operational as raid disk 1
raid5: allocated 3163kB for md3
raid5: raid level 5 set md3 active with 2 out of 3 devices, algorithm 2
RAID5 conf printout:
--- rd:3 wd:2 fd:1
disk 0, o:1, dev:hda3
disk 1, o:1, dev:hdb3
What I really don't understand is the output of /proc/mdstat after a reboot:
Personalities : [raid6] [raid5] [raid4]
md4 : active raid5 hdg4[1] hda4[2]
368643328 blocks level 5, 4k chunk, algorithm 2 [3/2] [_UU]
md2 : active raid5 hda2[0] hdg2[2]
1027968 blocks level 5, 4k chunk, algorithm 2 [3/2] [U_U]
md3 : active raid5 hda3[0] hdb3[1]
20980736 blocks level 5, 4k chunk, algorithm 2 [3/2] [UU_]
All arrays are degraded, but different disks are missing. md3 (the root
partition) is missing its hdg, as the logfile tells. md2 and md4 are now
missing its hdb:
md: md2 stopped.
md: bind<hdg2>
md: bind<hda2>
raid5: device hda2 operational as raid disk 0
raid5: device hdg2 operational as raid disk 2
raid5: allocated 3163kB for md2
raid5: raid level 5 set md2 active with 2 out of 3 devices, algorithm 2
Btw., is that significant that the order is different? In md4, the hdg-disk is
raid-disk 1, whereas it is raid-disk 2 in md2.
> Maybe /etc/mdadm/mdadm.conf lists "device=...." where it shouldn't.
Should be irrelevant, as the root-fs, where mdadm.conf resides, is on a raid
itself.
> Maybe the other IDE controller uses a module that it loaded late.
Hmm, I'd need to check that after I rebuild the arrays. Maybe the other
IDE-controller is not in the initrd. That wouldn't explain the missing hdb,
though.
--
YT,
Michael
next prev parent reply other threads:[~2007-07-02 6:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-01 21:21 RAID5 not being reassembled correctly after device swap Michael Frotscher
2007-07-01 22:12 ` Neil Brown
2007-07-02 6:35 ` Michael Frotscher [this message]
2007-07-02 6:50 ` Michael Frotscher
2007-07-03 17:16 ` Michael Frotscher
2007-07-03 17:22 ` Patrik Jonsson
2007-07-03 18:43 ` David Greaves
2007-07-03 19:20 ` Michael Frotscher
2007-07-03 19:29 ` Michael Frotscher
2007-07-04 8:45 ` David Greaves
2007-07-04 16:31 ` Michael Frotscher
2007-07-04 13:35 ` Bill Davidsen
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=200707020835.18420.infomails@tronserver.dyndns.org \
--to=infomails@tronserver.dyndns.org \
--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;
as well as URLs for NNTP newsgroup(s).