[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mdadm: raid not working after stop/reboot



Quoting Kristian Rink <krink@pm-planc.de>:

Hi all;

while migrating our mail machine, I am currently learning how to work
with the new raidtools package based upon mdadm instead of mkraid, and
currently I'm feeling a little helpless about this. Situations:

* I created a RAID-5 array using mdadm --create, which, so far, worked well.
* I'm able to create a filesystem on the newly-built RAID array - fine,
as well.

Anyhow, the very moment I am about to reboot or even just to stop the
array using mdadm -S, I'm not at all able to get it running again. I
spent most of this early morning playing around with various versions of
/etc/mdadm/mdadm.conf, deleted and recreated the RAID several times, but
am not really moving ahead. Can anyone enlighten me what might be wrong?

Configuration:
* aic7xxx - compliant SCSI controller
* 4x SCSI hard drive
* RAID array just for /home not /
* /etc/init.d/mdadm-raid is started and running

I found it easier not use the mdadm.conf file at all. I simply deleted it.
However, without it, your partitions and/or disks that are going to be used in your raid array must be fdisk'd to type "fd" or Linux Raid autodetect.

Then create your array, format it, mount it, set it in /etc/fstab and reboot.
It should work. Perhaps give us some details of your /proc/mdstat or try hunting through dmesg to see if there any errors when the array is trying to be built upon a boot up.

Cheers,
Mike

--- Sent via IMP



Reply to: