[Dave Meythaler]
> I have looked through the Software RAID howto, the Bootable RAID howto, the
> docs that come with raidtools 0.90 and the man pages and I haven't been able
> to find any way to delete a raid device once it has been created.
since a raid device is just a virtual block device over other real
devices, it is a little vague what you mean by "delete". But, going by
what I think you mean, you'll want to:
- rename /etc/raidtab (in case your distro has initscripts which try
to activate raidtab entries that aren't active in /proc/mdstat)
- raidstop the array(s) (check /proc/mdstat)
- if their partition types are "fd", make them "83" or another
appropriate value so your autodetect doesn't try to find it (although
if the superblock isn't valid it won't start an array anyway)
- mke2fs (or whatever else) for giving new roles to your now-unused
partitions/drives
> I'm trying to get rid of a raid device (RAID 0 or 1) which was created using
> the "persistent-superblock" option on Red Hat 6.2 (kernel source 2.2.14-12).
The persistent superblock isn't persistent in that manner :) Once the
array is raidstop'd, you can mke2fs the partition immediately (I do
just that all the time checking performance between disks and a s/w raid
of them)
> Is there some kind of command/tool to do this that I haven't stumbled
> across? It would be nice if the howto could say something on this topic.
There could be... it'd be small since the above is about it, but
it's Jakob's call.
James