Thread (8 messages) 8 messages, 2 authors, 2012-02-21

RE: Problem rebuild raid 1 replacement disk

flat view

From: RANSOM, Tony <hidden>
Date: 2012-02-21 10:09:00

Neil,

Worked fine. Thanks again for your assistance.

Regards,
Tony
________________________________________
From: NeilBrown [neilb@suse.de]
Sent: Monday, 20 February 2012 9:51 PM
To: RANSOM, Tony
Cc: 'linux-raid@vger.kernel.org'
Subject: Re: Problem rebuild raid 1 replacement disk

On Mon, 20 Feb 2012 19:45:24 +1030 "RANSOM, Tony"
[off-list ref] wrote:
Neil,
quoted
Yes.
Somehow both sdb and sdb3 have a superblock for the same array.  Must have
been a typo somewhere I suspect.
You should remove the one you don't want:
quoted
 mdadm --zero-superblock /dev/sdb
quoted
then it should all work nicely again.

Unfortunately, the above command gave the following error :

root@server2:~# mdadm --zero-superblock /dev/sdb
mdadm: Couldn't open /dev/sdb for write - not zeroing

Do you know how to work around?
Presumably this is because sdb3 is active in the array.  This keeps sdb busy.
If this is the current situation then adding --force to the command should
make it work.

Otherwise you might need to remove sdb from the array first.

NeilBrown
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help