Deleting an raid device
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
Quoted 4 lines · [email protected] 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.>
Quoted 5 lines
I've done:
mdadm --stop/dev/md0
mdadm --zero-superblock/dev/md0But 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
I'm using Debian, and mdadm.
I thought mdadm didn't us the /etc/raidtab file anymore
Jay
----- Original Message -----
From: "Brad Campbell" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, May 25, 2004 8:10 AM
Subject: Re: Deleting an raid device
Quoted 7 lines
Quoted 4 lines · [email protected] wrote:
Hi,
What are the proper steps for deleting all remnants of a previous raid install?
<I inserted some lame joke here using
/dev/zeroand dd but I re-thought it
after picturing someone
Quoted 1 line
blindly doing a cut and paste, then cursing me for zeroing their boot disk
by mistake.>
Quoted 9 lines
Quoted 6 lines
I've done:
mdadm --stop/dev/md0
mdadm --zero-superblock/dev/md0But I still see it getting stopped on shutdown.
Have you blitzed the
/etc/raidtabfile? (If you had one that is) You may be seeing your distribution trying to shutdown the array on
shutdown rather than something
Quoted 7 lines
actually being stopped.
Regards,
Brad
Quoted 4 lines · [email protected] wrote:
I'm using Debian, and mdadm.
I thought mdadm didn't us the
/etc/raidtabfile 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
Quoted 11 lines · On Tue, 25 May 2004 [email protected] 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/md0But I still see it getting stopped on shutdown.
Are the partitions system id still fd (raid autodetect)?
Holger
Yes they are
Jay
----- Original Message -----
From: "Holger Kiehl" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, May 25, 2004 4:17 PM
Subject: Re: Deleting an raid device
Quoted 18 lines · On Tue, 25 May 2004 [email protected] wrote:
Quoted 12 lines
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/md0But I still see it getting stopped on shutdown.
Are the partitions system id still fd (raid autodetect)?
Holger
Quoted 8 lines · On Tuesday May 25, [email protected] 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
Quoted 10 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html