From: nterry <nigel@nigelterry.net>
To: Neil Brown <neilb@suse.de>, linux-raid@vger.kernel.org
Cc: Michal Soltys <soltys@ziu.info>
Subject: Re: Raid 5 Problem
Date: Tue, 16 Dec 2008 15:39:48 -0500 [thread overview]
Message-ID: <49481214.2070700@nigelterry.net> (raw)
In-Reply-To: <4946E31A.7040803@nigelterry.net>
nterry wrote:
> Neil Brown wrote:
>>
>> An alternate fix in this case would be
>>
>> mdadm --zero-superblock /dev/sdb
>>
>> to remove the old superblock that is confusing things.
>>
>> NeilBrown
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
> That fails as:
>
> [root@homepc ~]# mdadm --zero-superblock /dev/sdb
> mdadm: Couldn't open /dev/sdb for write - not zeroing
> [root@homepc ~]#
>
> I also discovered that /dev/sdc appears to have a superblock which
> maybe explains why # mdadm --examine --scan throws up three arrays.
> Trying to zero the superblock on /dev/sdc gives the same error.
OK, I solved it, but not in a clean manner. I had to remove /dev/sdb1
from the array before I could zero the superblock on /dev/sdb as below:
[root@homepc ~]# mdadm /dev/md0 --fail /dev/sdb1
mdadm: set /dev/sdb1 faulty in /dev/md0
[root@homepc ~]# mdadm /dev/md0 --remove /dev/sdb1
mdadm: hot removed /dev/sdb1
[root@homepc ~]# mdadm --zero-superblock --verbose /dev/sdb
[root@homepc ~]# mdadm /dev/md0 --re-add /dev/sdb1
mdadm: re-added /dev/sdb1
[root@homepc ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[4] sdd1[0] sdc1[3] sde1[1]
735334656 blocks level 5, 128k chunk, algorithm 2 [4/3] [UU_U]
[>....................] recovery = 0.0% (204800/245111552)
finish=79.6min speed=51200K/sec
unused devices: <none>
I did this on both sdb and sdc and now I only have the one array when I
mdadm --examine --scan --verbose. However is there a better way to do
this that doesn't involve a full recovery? I thought --re-add would
handle that?
prev parent reply other threads:[~2008-12-16 20:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-14 13:41 Raid 5 Problem nterry
2008-12-14 15:34 ` Michal Soltys
2008-12-14 20:41 ` nterry
2008-12-14 20:53 ` Justin Piszcz
2008-12-14 20:58 ` nterry
2008-12-14 21:03 ` Justin Piszcz
2008-12-14 21:08 ` Nigel J. Terry
2008-12-14 22:55 ` Michal Soltys
2008-12-14 21:14 ` Michal Soltys
2008-12-14 21:34 ` nterry
2008-12-14 22:02 ` Michal Soltys
2008-12-15 21:50 ` Neil Brown
2008-12-15 23:07 ` nterry
2008-12-16 20:39 ` nterry [this message]
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=49481214.2070700@nigelterry.net \
--to=nigel@nigelterry.net \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=soltys@ziu.info \
/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).