> After setting up raid, the box is unable to autodetect the raid 1 array.
> doing a cat /proc/mdstat shows that the array is not running however
> when I type raidstart /dev/md0, then do a cat /proc/mdstat, everything is
> fine
> I'm running a stock rh 6.0 install.  Where can i look to autodetect and
> start my
> raid arrays?

Firstly, I take it this explains your previous problem with fsck failing on
/dev/md0? fsck won't be able to do much if the array hasn't been initialized.

This sounds like the classic RedHat 6.* auto-recognition problem. If you check
dmesg ("dmesg | less"), is there a line that reads something like:

kmod: failed to exec /sbin/modprobe -s -k md-personality-4, errno = 2

If so, this means that neither your initrd nor your kernel include RAID support.
By default, RedHat 6.* comes with modular RAID support, which means that RAID
arrays cannot be started until the filesystem which contains the modules (in
/lib/modules) has been mounted. This occurs after the kernel tries to
auto-recognize the arrays, so auto-recognition fails for lack of RAID support at
that time. This explains why you can start it later with raidstart -
/lib/modules is now available.

To solve the problem, you can either rebuild the kernel to include RAID support
built-in (as opposed to as a module), or you can add raid support to your
initrd. To do this, run "mkinitrd --with=raid1 /boot/initrd 2.2.5-22",
substituting your desired initrd name for /boot/initrd and the correct kernel
version for 2.2.5-22. Make sure /etc/lilo.conf points to the initrd you just
created in the "initrd=" line(s). Run lilo. RAID support should now be available
during auto-recognition.

The other thing to check is that you have marked the partitions which make up
this array as type "fd" using fdisk. This tells the kernel that the partitions
are part of an array. Without it, the partitions will be ignored during the
auto-recognition phase. Make sure that your RAID is umounted and raidstopped
before you run fdisk on the partitions.

Cheers,


Bruno Prior         [EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Wong
> Sent: 26 October 1999 22:05
> To: [EMAIL PROTECTED]
> Subject: raid not auto detecting
>
>
> After setting up raid, the box is unable to autodetect the raid 1 array.
> doing a cat /proc/mdstat shows that the array is not running however
> when I type raidstart /dev/md0, then do a cat /proc/mdstat, everything is
> fine
> I'm running a stock rh 6.0 install.  Where can i look to autodetect and
> start my
> raid arrays?  TIA for any help.
>
>
>
>
>

Reply via email to