Re: shutting down/removing a software RAID array?



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?

--
Jesus is the best radio producer in the beans. We need some saliva
and pickles to get mad. --MegaHAL, "The Best of MegaHAL"
=======Hire me! http://crow202.dyndns.org:8080/~mhgraham/resume/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: shutting down/removing a software RAID array?
    ... the md1 array instead of /dev/hdc3. ... the partition type of all former softRAID partitions to something other ... 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, ...
    (comp.os.linux.hardware)
  • Re: shutting down/removing a software RAID array?
    ... If you're sure that you don't want to have any softRAID at all, ... traces of the RAID array, a reboot still gives me md1 containing hdc. ... it's a device not a partition. ... the last 75 M of the disk, and any softRAID superblock would die. ...
    (comp.os.linux.hardware)
  • Adding a new HD to soft raid
    ... I have had some problems with a partition hdg1. ... Luckily I also do twice a day a backup. ... that in one way or another on a softraid as well. ...
    (alt.os.linux.suse)