* Deleting an raid device
@ 2004-05-25 12:54 me
2004-05-25 13:10 ` Brad Campbell
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: me @ 2004-05-25 12:54 UTC (permalink / raw)
To: linux-raid
Hi,
What are the proper steps for deleting all remnants of a previous raid
install?
I've done:
mdadm --stop /dev/md0
mdadm --zero-superblock /dev/md0
But I still see it getting stopped on shutdown.
Thanks
Jay
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 12:54 Deleting an raid device me
@ 2004-05-25 13:10 ` Brad Campbell
2004-05-25 13:27 ` me
2004-05-25 21:17 ` Holger Kiehl
2004-05-25 23:42 ` Neil Brown
2 siblings, 1 reply; 7+ messages in thread
From: Brad Campbell @ 2004-05-25 13:10 UTC (permalink / raw)
To: me; +Cc: linux-raid
me@heyjay.com wrote:
> Hi,
>
> What are the proper steps for deleting all remnants of a previous raid
> install?
<I inserted some lame joke here using /dev/zero and dd but I re-thought it after picturing someone
blindly doing a cut and paste, then cursing me for zeroing their boot disk by mistake.>
> I've done:
> mdadm --stop /dev/md0
> mdadm --zero-superblock /dev/md0
>
> But I still see it getting stopped on shutdown.
Have you blitzed the /etc/raidtab file? (If you had one that is)
You may be seeing your distribution trying to shutdown the array on shutdown rather than something
actually being stopped.
Regards,
Brad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 13:10 ` Brad Campbell
@ 2004-05-25 13:27 ` me
2004-05-25 13:47 ` Brad Campbell
0 siblings, 1 reply; 7+ messages in thread
From: me @ 2004-05-25 13:27 UTC (permalink / raw)
To: Brad Campbell; +Cc: linux-raid
I'm using Debian, and mdadm.
I thought mdadm didn't us the /etc/raidtab file anymore
Jay
----- Original Message -----
From: "Brad Campbell" <brad@wasp.net.au>
To: <me@heyjay.com>
Cc: <linux-raid@vger.kernel.org>
Sent: Tuesday, May 25, 2004 8:10 AM
Subject: Re: Deleting an raid device
> me@heyjay.com wrote:
> > Hi,
> >
> > What are the proper steps for deleting all remnants of a previous raid
> > install?
>
> <I inserted some lame joke here using /dev/zero and dd but I re-thought it
after picturing someone
> blindly doing a cut and paste, then cursing me for zeroing their boot disk
by mistake.>
>
> > I've done:
> > mdadm --stop /dev/md0
> > mdadm --zero-superblock /dev/md0
> >
> > But I still see it getting stopped on shutdown.
>
> Have you blitzed the /etc/raidtab file? (If you had one that is)
> You may be seeing your distribution trying to shutdown the array on
shutdown rather than something
> actually being stopped.
>
> Regards,
> Brad
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 13:27 ` me
@ 2004-05-25 13:47 ` Brad Campbell
0 siblings, 0 replies; 7+ messages in thread
From: Brad Campbell @ 2004-05-25 13:47 UTC (permalink / raw)
To: me; +Cc: linux-raid
me@heyjay.com wrote:
> I'm using Debian, and mdadm.
>
> I thought mdadm didn't us the /etc/raidtab file anymore
>
You are correct. You just did not tell us what package and distribution you were using so I took a
blind stab in the dark.
I use Debian and RaidTools here.
Regards,
Brad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 12:54 Deleting an raid device me
2004-05-25 13:10 ` Brad Campbell
@ 2004-05-25 21:17 ` Holger Kiehl
2004-05-26 1:21 ` me
2004-05-25 23:42 ` Neil Brown
2 siblings, 1 reply; 7+ messages in thread
From: Holger Kiehl @ 2004-05-25 21:17 UTC (permalink / raw)
To: me; +Cc: linux-raid
On Tue, 25 May 2004 me@heyjay.com wrote:
> Hi,
>
> What are the proper steps for deleting all remnants of a previous raid
> install?
>
> I've done:
> mdadm --stop /dev/md0
> mdadm --zero-superblock /dev/md0
>
> But I still see it getting stopped on shutdown.
>
Are the partitions system id still fd (raid autodetect)?
Holger
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 12:54 Deleting an raid device me
2004-05-25 13:10 ` Brad Campbell
2004-05-25 21:17 ` Holger Kiehl
@ 2004-05-25 23:42 ` Neil Brown
2 siblings, 0 replies; 7+ messages in thread
From: Neil Brown @ 2004-05-25 23:42 UTC (permalink / raw)
To: me; +Cc: linux-raid
On Tuesday May 25, me@heyjay.com wrote:
> Hi,
>
> What are the proper steps for deleting all remnants of a previous raid
> install?
>
> I've done:
> mdadm --stop /dev/md0
> mdadm --zero-superblock /dev/md0
I doubt that. After stopping /dev/md0, trying to zero a superblock in
/dev/md0 would fail.
Superblocks don't live in the array, they live in the individual
component drives:
mdadm --zero-superblock /dev/sd?c
or something.
But there is no harm having stray superblocks lying around.
Make sure the partitions are not raid-auto-detect (as someone else
has mentioned I think) and make sure mdadm.conf doesn't mention the
arrays.
NeilBrown
>
> But I still see it getting stopped on shutdown.
>
> Thanks
> Jay
>
> -
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleting an raid device
2004-05-25 21:17 ` Holger Kiehl
@ 2004-05-26 1:21 ` me
0 siblings, 0 replies; 7+ messages in thread
From: me @ 2004-05-26 1:21 UTC (permalink / raw)
To: Holger Kiehl; +Cc: linux-raid
Yes they are
Jay
----- Original Message -----
From: "Holger Kiehl" <Holger.Kiehl@dwd.de>
To: <me@heyjay.com>
Cc: <linux-raid@vger.kernel.org>
Sent: Tuesday, May 25, 2004 4:17 PM
Subject: Re: Deleting an raid device
> On Tue, 25 May 2004 me@heyjay.com wrote:
>
> > Hi,
> >
> > What are the proper steps for deleting all remnants of a previous raid
> > install?
> >
> > I've done:
> > mdadm --stop /dev/md0
> > mdadm --zero-superblock /dev/md0
> >
> > But I still see it getting stopped on shutdown.
> >
> Are the partitions system id still fd (raid autodetect)?
>
> Holger
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-05-26 1:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25 12:54 Deleting an raid device me
2004-05-25 13:10 ` Brad Campbell
2004-05-25 13:27 ` me
2004-05-25 13:47 ` Brad Campbell
2004-05-25 21:17 ` Holger Kiehl
2004-05-26 1:21 ` me
2004-05-25 23:42 ` Neil Brown
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).