From: Max Waterman <davidmaxwaterman@fastmail.co.uk>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: trouble adding spare
Date: Wed, 14 Jan 2009 16:32:17 +0200 [thread overview]
Message-ID: <496DF771.4010407@fastmail.co.uk> (raw)
In-Reply-To: <alpine.DEB.1.10.0901140830280.11696@p34.internal.lan>
Justin Piszcz wrote:
> Output from when I have run this in the past:
> p34:~# mdadm --zero-superblock /dev/hde1
> p34:~#
Ok, shuffling the args (why is it that the args are sometimes one way,
and sometimes another?) made it at least run, but it made no difference
to the device being added at boot-time.
>
> If that does not work, clean the drive out manually after removing it
> as a spare from the array:
> dd if=/dev/zero of=/dev/sdi bs=1M
This is taking forever. Isn't there a way to force mdadm to ignore the
contents and just add it? How about a specific 'dd' that targets
whatever is on the disk that is causing the problem (partition table?)?
> Then try to re-add it.
>
> If that still does not work you may need to modify some additional
> bits possibly with/in regards to the spare itself, I only have one
> spare in my array and I use a partition with type (fd) for the spare.
>
> The only other thing I can think of is the events for that spare were
> 0.123 (example) and then after you installed OSX onto the drive,
Well, I didn't install OSX on it...just formatted it on OSX - what's
that? HFS+ or something? Anyway, it makes several different partitions
for some reason. Do you think that's causing the problem?
> it could have deleted the superblock for mdadm from when it was
> created as a spare.
I would expect it to have deleted everything on the drive.
>
> I have not fixed this problem in any of my use-cases, but it may(?) be
> necessary to re-write that superblock onto the spare so it is
> identified as such, however, how to do this, is a good question, it
> would probably be assembly or if that does not work you would need to
> create the array, assume clean (as you originally created it before)
> so the superblock is written to the spare. This all seems too
> complicated though, there should (and probably) is a simpler way.
That's kind of that I was thinking...
Thanks for your continued help though :)
Max.
next prev parent reply other threads:[~2009-01-14 14:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 9:43 trouble adding spare Max Waterman
2009-01-14 11:56 ` Justin Piszcz
2009-01-14 13:03 ` Max Waterman
2009-01-14 13:23 ` Max Waterman
2009-01-14 13:39 ` Justin Piszcz
2009-01-14 14:32 ` Max Waterman [this message]
2009-01-14 15:08 ` Max Waterman
2009-01-14 15:14 ` Justin Piszcz
2009-01-14 17:54 ` Max Waterman
2009-01-16 17:57 ` Max Waterman
2009-01-21 17:21 ` Max Waterman
2009-01-22 3:50 ` Beolach
2009-01-22 16:43 ` Max Waterman
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=496DF771.4010407@fastmail.co.uk \
--to=davidmaxwaterman@fastmail.co.uk \
--cc=jpiszcz@lucidpixels.com \
--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).