From: David Chow <davidchow@shaolinmicro.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID-1 does not rebuild after hot-add
Date: Tue, 05 Aug 2003 14:32:31 +0800 [thread overview]
Message-ID: <3F2F4F7F.6010801@shaolinmicro.com> (raw)
In-Reply-To: 16175.4992.765886.291774@gargle.gargle.HOWL
>
>
>Rather than a hex dump, just use
>
> mdadm --examine /dev/XXX
>
>That is the easiest way to view the superblock on the device.
>
>NeilBrown
>
Neil,
OK, I find out there is a problem in the superblock which is descrbed as
follows. The "Total Devices" is wrong. It should be 2 instead of 3. This
is probably a bug of the mkraid (from raidtools) which when I created
the array with a "failed-disk" in degraded mode. mkraid incorrectly made
a wrong superblock even I put "nr-raid-disk 2" and "nr-spare-disks 0" in
the raidtab. Ok, the superblock is incorrect, but how can I change the
total devices and spare device pramaters without re-initialize the array?
David Chow
[root@www2 /]# mdadm --examine /dev/sda3
/dev/sda3:
Magic : a92b4efc
Version : 00.90.00
UUID : 39042a54:7c2ca55a:939c1846:94f73fb8
Creation Time : Sat Aug 2 21:00:17 2003
Raid Level : raid1
Device Size : 3076352 (2.93 GiB 3.15 GB)
Raid Devices : 2
Total Devices : 3
Preferred Minor : 2
Update Time : Mon Aug 4 06:25:32 2003
State : dirty, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 1
Spare Devices : 1
Checksum : 578aa21 - correct
Events : 0.15
Number Major Minor RaidDevice State
this 2 8 3 2 /dev/sda3
0 0 0 0 -1 faulty
1 1 8 19 1 active sync /dev/sdb3
2 2 8 3 2 /dev/sda3
[root@www2 /]# mdadm --examine /dev/sdb3
/dev/sdb3:
Magic : a92b4efc
Version : 00.90.00
UUID : 39042a54:7c2ca55a:939c1846:94f73fb8
Creation Time : Sat Aug 2 21:00:17 2003
Raid Level : raid1
Device Size : 3076352 (2.93 GiB 3.15 GB)
Raid Devices : 2
Total Devices : 3
Preferred Minor : 2
Update Time : Mon Aug 4 06:25:32 2003
State : dirty, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 1
Spare Devices : 1
Checksum : 578aa35 - correct
Events : 0.15
Number Major Minor RaidDevice State
this 1 8 19 1 active sync /dev/sdb3
0 0 0 0 -1 faulty
1 1 8 19 1 active sync /dev/sdb3
2 2 8 3 2 /dev/sda3
next prev parent reply other threads:[~2003-08-05 6:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-03 14:43 RAID-1 does not rebuild after hot-add David Chow
2003-08-03 16:55 ` Stephen Lee
2003-08-04 16:34 ` David Chow
2003-08-04 17:06 ` Ross Vandegrift
2003-08-04 17:46 ` Paul Clements
2003-08-04 0:38 ` Neil Brown
2003-08-04 16:41 ` David Chow
2003-08-05 2:16 ` Neil Brown
2003-08-05 6:32 ` David Chow [this message]
2003-08-05 6:53 ` Neil Brown
2003-08-05 11:58 ` David Chow
2003-08-06 1:01 ` Neil Brown
2003-08-04 12:41 ` Andrew Rechenberg
2003-08-04 16:32 ` David Chow
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=3F2F4F7F.6010801@shaolinmicro.com \
--to=davidchow@shaolinmicro.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.