LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-07-2005, 04:35 AM   #1
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 150

Rep: Reputation: 26
Why slack 2.6 kernels have raid as module?


I was trying to set up a RAID 1 system using precompiled 2.6 kernels.

But I discovered an issue: raid device are not auto-recognized on boot, because raid is compiled as module and modules can't be loaded before mounting /

So I tried recompiling the kernel adding raid as built-in item instead of module, and now the arrays are autostarted on boot.

On all 2.4 precompiled kernels (from 2.24) raid was always built-in.
Why this change?

Bye all
 
Old 10-07-2005, 01:27 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
less /boot/README.initrd
 
Old 10-08-2005, 08:35 AM   #3
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 150

Original Poster
Rep: Reputation: 26
I forgot to mention it in the first post.

I tried loading via initrd the following modules: ext3, jbd, md, raid1.

After the boot (from a non-raid partition) the modules are correctly loaded, but the arrays aren't started.

launching mdadm -As I get all arrays working, WITHOUT HAVING ANY OTHER MODULE LOADED (I double checked lsmod)

Partitions are correctly marked as fd.

I found that the only way to have arrays autostarted is to compile raid built-in in the kernel.

So the question is not how to autostart arrays, but why raid is a module in the 2.6 when it was builtin in 2.4, or why loading md and raid1 via initrd arrays aren't autostarted.

Maybe I'm doing it in the wrong way.

I can suppose that neverthless modules are loaded via initrd they went loaded after recognizing fd partitions.

In facts the autostart of arrays is done very soon in the boot process.

I don't played too much with lilo, maybe there's something other to modify??

I'd like to have any feedback from anyone has a working system with raid loaded via initrd...

Last edited by Barx; 10-08-2005 at 08:37 AM.
 
  


Reply



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
2.6.8 kernels don't load ext3 module on boot! Malibyte Mandriva 2 03-16-2005 08:46 PM
Slack 10 & 2.6.9 kernels errors done Slackware 9 12-01-2004 04:41 AM
slack 9 kernels 2.6 & 2.4 Ipolit Slackware 2 04-24-2004 04:43 PM
Basic question about RH9 Up2Date, RAID and Kernels SweetPete Linux - Newbie 0 01-17-2004 11:06 AM
one module and two kernels yayameen Linux - Newbie 2 02-27-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration