LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   raid 10 not auto detected (http://www.linuxquestions.org/questions/slackware-14/raid-10-not-auto-detected-4175462506/)

the_zone 05-18-2013 03:24 PM

raid 10 not auto detected
 
I have installed slackware 14.0 on a USB-stick, grub 1.5 as boatloader.

please see

http://www.linuxquestions.org/questi...h-qemu-889168/

Next I have put four similar disks in the system and created a RAID 10 array.
My mdadm.conf looks OK.

However it is not detected on boot.
Assembling and mounting it by hand works correctly.

How can I make sure it is detected at boot and mounted in fstab?


best regards


Simon

Erik_FL 05-18-2013 05:41 PM

I'm not very familiar with RAID but I'll try to provide some suggestions.

Make sure that you included RAID support and UDEV in your initrd.

Copy "/etc/mkinitrd.conf.sample" to "/etc/mkinitrd.conf" and modify the lines for these options.

Code:

MODULE_LIST="ext4"
RAID="1"
UDEV="1"

Include all the required modules for "MODULE_LIST". Re-create your initrd using the "mkinitrd" command.

If you still have problems please post your "mdadm.conf", the "mkinitrd" command that you used and the contents of "mkinitrd.conf". It will also be helpful if you post the message log.

To copy the message log to a file you can use this command.

Code:

dmesg > message.log
Replace "message.log" with a path and name of the file that you want to contain the message log.

Please post a little bit more about what you are trying to do.
  • What commands did you use to create the RAID arrays?
  • Are you booting from the RAID arrays?
  • What boot menu entry files and kernel options did you use?
  • Are you getting any errors related to detecting RAID or are the arrays just not detected during boot?

Richard Cranium 05-18-2013 05:59 PM

What command line did you pass to mkinitrd?

the_zone 05-20-2013 07:22 AM

@ERIKE_FL

Quote:

What commands did you use to create the RAID arrays?
> mdadm --create --level=10 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

Quote:

Are you booting from the RAID arrays?
nope

Quote:

What boot menu entry files and kernel options did you use?
nothing.

Quote:

Are you getting any errors related to detecting RAID or are the arrays just not detected during boot?
Nope, it just not detected.
When I assemble it by hand

> mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

all seems fine.

@Richard Cranium
I guess not enough.

I have tried another thing by installing slackware directly on a stick and I see a line passing by mentioning it is trying to detect a raid array, not there yet.

I had to remove the disks from the system cause I have another problem while booting with grub.

Maybe it is off topic but here it goes;

My slackware install on the USB disk, /dev/sda, went fine.
Installed grub and it boots correctly.

When adding the disks for the raid array my system is not able to boot anymore

/dev/sda is the 1st disk in the array and /dev/sdd the last.
/dev/sde is now the USB stick with the slack-install.

How can I resolve this boot issue ?

I have tried to modify the boot commands without success.

the_zone 05-20-2013 09:22 AM

The booting is solved. phew.

I added 2 more devices to the devices.map of grub, changed my fstab so that sde2 is mounted to /.

grtz

With this full install (no X however), my raid is auto detected. Which make me conclude that indeed the initrd was not OK


Simon

Mark Pettit 05-20-2013 09:52 AM

Also - did you make then disk type as "FD" when you fdisk'ed them ?

the_zone 05-20-2013 03:36 PM

@Mark Pettit

Yes i did.


All times are GMT -5. The time now is 11:53 PM.