LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-18-2014, 06:17 PM   #1
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Rep: Reputation: 0
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
 
Old 03-18-2014, 06:45 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,067

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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

Last edited by jlinkels; 03-18-2014 at 06:46 PM.
 
Old 03-18-2014, 07:01 PM   #3
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Original Poster
Rep: Reputation: 0
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
 
Old 03-18-2014, 07:09 PM   #4
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 226

Rep: Reputation: 33
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.
 
Old 03-18-2014, 07:26 PM   #5
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Original Poster
Rep: Reputation: 0
This is my /etc/mdadm.conf (http://postimg.org/image/s8m0i0iqb/).
 
Old 03-18-2014, 08:21 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,485

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
Actually, what mkinitrd command did you run to create the initrd?

What are the contents of /boot/initrd-tree/etc/mdadm.conf?
 
Old 03-19-2014, 07:58 AM   #7
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64 14.1 : kernel panic using RAID kikinovak Slackware 15 02-07-2014 11:26 PM
raid+kernel_update=KERNEL PANIC! Need help, guys! Dinobot Slackware 8 12-07-2009 06:41 AM
Kernel Panic: Booting into RAID 1 elliotfuller Linux - Hardware 0 09-07-2005 02:01 AM
Kernel panic - HPT366 RAID breenbaron Linux - Hardware 14 10-07-2004 03:20 PM
Kernel 2.6, RAID-1 & reiserfs kernel panic Raptor Ramjet Slackware 2 01-04-2004 07:25 AM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration