Re: shutting down/removing a software RAID array?



Dances With Crows wrote:
Gary Dale staggered into the Black Sun and said:
I've been looking for [how to *stop*] a [softRAID] in Linux.

"mdadm misc /dev/mdN --stop" . This won't work if /dev/mdN is mounted.

I can't get the RAID to cease to exist. My current state after redoing
the dd is shown by this:
#cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hdc[1]
60696128 blocks [2/1] [_U]

Somewhere along the line I must have inadvertently added /dev/hdc to
the md1 array instead of /dev/hdc3.

If you're sure that you don't want to have any softRAID at all, change
the partition type of all former softRAID partitions to something other
than 0xfd. And rm -rf /etc/mdadm* while you're at it. (You can
regenerate that dir structure when you rebuild your softRAID setup
properly.) And check /proc/cmdline to make sure that you're not passing
"root=/dev/md1" or something to the kernel on boot. Also remember that
the md superblock info is stored at the *end* of the partition, so
efficiently erasing that info with dd will require a seek= .

And after trying everything else I can think of to remove the software
traces of the RAID array, a reboot still gives me md1 containing hdc.

Expand on "everything else you can think of". What, precisely, were the
commands you executed?

I've already done almost everything you suggested and more. I'd turned the partitions back to type 83 but that doesn't work on /dev/hdc - it's a device not a partition. Can you expand on the "seek=" however? Apparently the dd between devices didn't clobber whatever is making the computer think it's got RAID.

I tried zeroing the superblocks but that gave problems because mdadm won't touch a running RAID volume, which /dev/hdc is part of.

I uninstalled mdadm (with --purge) then removed everything that looked like an mdadm configuration file. There is nothing in /boot/grub/menu.lst that refers to /dev/md1. Still the RAID array show up.
.



Relevant Pages

  • Re: having trouble with RAID and FC5
    ... > Okay I am trying to setup RAID on FC5, almost all the examples that I ... > so i have been trying to use mdadm to do it, ... > partition that does hold any important data. ...
    (Fedora)
  • Re: Cannot upgrade from FC6->F7. No upgrade option given in install screen.
    ... in getting F7 to prompt for and install or upgrade options. ... software raid. ... or before the "Partition Type" screen. ...
    (Fedora)
  • Re: problem with grub
    ... sda1 relates to the biggest partion on the first array and sdb1 relates to the only partition on the second raid array. ... Because we needed more space for backuppc, the initial plan was to create an lvm on the second raid array, boot to it and see if it worked, if so extend it by incorporating the first raid array. ... that GRUB cannot deal with LVM directly. ...
    (Debian-User)
  • slackware 9.1 software raid problem
    ... Setting up a RAID system with Slackware 8 is not extremely difficult once ... mirroring the root partition and booting from that mirror was not possible. ... Each disk is attached to a different IDE chain on the motherboard. ... The ability to boot from the Slackware 8 install CD. ...
    (alt.os.linux)
  • Re: Un-RAID on ICH8R?
    ... These are the supported migrations in Intel Matrix RAID. ... Would adding an extra disk and making it a recovery partition help? ...
    (alt.comp.hardware.pc-homebuilt)