LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel Panic when setting up RAID 5 (https://www.linuxquestions.org/questions/slackware-14/kernel-panic-when-setting-up-raid-5-a-4175498654/)

thach.trung.ngoc 03-18-2014 06:17 PM

Kernel Panic when setting up RAID 5
 
Hi,

I am setting RAID 5 on slackware-current using instruction on ftp://ftp.slackware.com/pub/slackwar...EADME_RAID.TXT

When I am up to reboot part, kernel panic happens. Error said: Kernel panic - not syncing - VFS: unable to mount root fs on the unknown block(0,0) (I am using huge kernel)

I am having 4 hard drives, setup for RAID 5 is as follows

/dev/sda1: 100Mb /boot (parition type: FD) (/dev/md0)
/dev/sda2: 512Mb swap (parition type: FD) (/dev/md1)
/dev/sda3: balance / (parition type: FD) (/dev/md2)

The same setup for /dev/sdb, /dev/sdc, /dev/sdd

/etc/lilo.conf is followed instruction
append parameter
root=/dev/md2
boot=/dev/md0
raid-extra-boot=mbr-only

Not sure what I have missed

If anyone is able to help... Thanks

jlinkels 03-18-2014 06:45 PM

The boot partition cannot be on a RAID5.
Quote:

- /boot: RAID 0 and RAID 5 users will require a separate boot partition, as
the computer's BIOS will not understand striped devices. For
simplicity's sake, we will make /boot a small RAID 1 (mirror) array.
This means that in the case of RAID 0, it will not matter which drive
your BIOS attempts to boot, and in the case of RAID 5, losing one drive
will not result in losing your /boot partition
Maybe you overlooked that. The boot partition can be at RAID1. What they try to say here that you should put boot on RAID1, the other partitions on RAID5.

jlinkels

thach.trung.ngoc 03-18-2014 07:01 PM

Thanks for your quick response, I think I made /dev/md0 (which is boot parition) raid 1 anyways

mdadm --create /dev/md0 --level 1 --raid-devices 4 /dev/sd[abcd]1

(--level 1: is RAID 1, isnt it)

But kernel panic still happens, I actually have no clue how to solve it

tux_dude 03-18-2014 07:09 PM

What is the content of your mdadm.conf? Not sure if you applies to the huge kernel, but with generic, you have to rebuild initrd to get RAID support.

thach.trung.ngoc 03-18-2014 07:26 PM

This is my /etc/mdadm.conf (http://postimg.org/image/s8m0i0iqb/).

Richard Cranium 03-18-2014 08:21 PM

Actually, what mkinitrd command did you run to create the initrd?

What are the contents of /boot/initrd-tree/etc/mdadm.conf?

thach.trung.ngoc 03-19-2014 07:58 AM

Thanks Richard for the clue, I have successfully installed RAID 5 but using generic kernel. Just follow instruction on ftp://ftp.slackware.com/pub/slackwar...EADME_RAID.TXT

Extra step that I've done

Generate /boot/initrd.gz
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -c > /etc/mkinitrd.conf
# mdadm -Es > /boot/initrd-tree/etc/mdadm.conf
# mkinitrd -F
# lilo

Reboot

Thanks everyone


All times are GMT -5. The time now is 05:55 PM.