Steven Saner | 10 Dec 2007 17:54

initrd for raid configuration

I have created a Slackware 12.0 system on a raid configuration. I used  
the instructions on the following page and it seems to work good.

http://www.userlocal.com/articles/raid1-slackware-12.php

What I would like to do now is switch from the huge-2.6.21.5-smp  
kernel to the generic-2.6.21.5-smp kernel. That involves creating an  
initrd. I can't seem to figure out how to do that so that the generic  
kernel can mount the root filesystem as a raid array. It looks like  
the generic kernel should have all of the support built into it that  
is needed. What am I missing?

Thanks

Steve

--
---------------------------------------------------------------
Steven Saner
ssaner <at> pantheranet.com
Iain Conochie | 10 Dec 2007 18:02

Re: initrd for raid configuration


On Mon, 2007-12-10 at 10:54 -0600, Steven Saner wrote:
> I have created a Slackware 12.0 system on a raid configuration. I used  
> the instructions on the following page and it seems to work good.
> 
> http://www.userlocal.com/articles/raid1-slackware-12.php
> 
> What I would like to do now is switch from the huge-2.6.21.5-smp  
> kernel to the generic-2.6.21.5-smp kernel.

Any particular reason as it sounds like you setup works now....

>  That involves creating an  
> initrd. I can't seem to figure out how to do that so that the generic  
> kernel can mount the root filesystem as a raid array. It looks like  
> the generic kernel should have all of the support built into it that  
> is needed. What am I missing?

You could try

mkinitrd -m raid1 -o /boot/raid-initrd 

Then do the ususal lilo config etc

Cheers

Iain

> 
> Thanks
(Continue reading)

Steven Saner | 10 Dec 2007 18:12

Re: initrd for raid configuration


On Dec 10, 2007, at 11:02 AM, Iain Conochie wrote:

>
> On Mon, 2007-12-10 at 10:54 -0600, Steven Saner wrote:
>> I have created a Slackware 12.0 system on a raid configuration. I  
>> used
>> the instructions on the following page and it seems to work good.
>>
>> http://www.userlocal.com/articles/raid1-slackware-12.php
>>
>> What I would like to do now is switch from the huge-2.6.21.5-smp
>> kernel to the generic-2.6.21.5-smp kernel.
>
> Any particular reason as it sounds like you setup works now....

Oh, not really. I usually like to switch to the generic kernel after  
installation, so that it is a little lighter weight and so that it  
doesn't try to load quite so many things on boot that I don't care  
about for a server.

If I can't figure it out, I will stick with the huge kernel, but I'm  
mostly curious now.

>
>
>> That involves creating an
>> initrd. I can't seem to figure out how to do that so that the generic
>> kernel can mount the root filesystem as a raid array. It looks like
>> the generic kernel should have all of the support built into it that
(Continue reading)

Iain Conochie | 10 Dec 2007 18:18

Re: initrd for raid configuration

<snip>
> > You could try
> >
> > mkinitrd -m raid1 -o /boot/raid-initrd
> >
> > Then do the ususal lilo config etc
> 
> Nope. I don't think it is a module. Both the huge and generic kernel  
> seem to have all that compiled into it already.

So the above command fails then?

What filesystem are you using? reiserfs>? ext3? perhaps you need a
module for your root filesystem as well

When the system boots in the generic kernel, do you see messages like

md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10

Cheers

Iain

> 
> Steve
> 
> --
> ---------------------------------------------------------------
(Continue reading)

Steven Saner | 10 Dec 2007 18:55

Re: initrd for raid configuration


On Dec 10, 2007, at 11:18 AM, Iain Conochie wrote:

> <snip>
>>> You could try
>>>
>>> mkinitrd -m raid1 -o /boot/raid-initrd
>>>
>>> Then do the ususal lilo config etc
>>
>> Nope. I don't think it is a module. Both the huge and generic kernel
>> seem to have all that compiled into it already.
>
> So the above command fails then?

Yes

> What filesystem are you using? reiserfs>? ext3? perhaps you need a
> module for your root filesystem as well

I am using ext3. Here is the command I've used to to create the initrd

mkinitrd -c -k 2.6.21.5-smp -m ext3 -f ext3 -r /dev/md/0

>
> When the system boots in the generic kernel, do you see messages like
>
> md: raid0 personality registered for level 0
> md: raid1 personality registered for level 1
> md: raid10 personality registered for level 10
(Continue reading)

Iain Conochie | 11 Dec 2007 13:33

Re: initrd for raid configuration

> <snip>

> > When the system boots in the generic kernel, do you see messages like
> >
> > md: raid0 personality registered for level 0
> > md: raid1 personality registered for level 1
> > md: raid10 personality registered for level 10
> 
> Yes, I do see those messages. Then I get to the following:
> 
> initrd.gz:  Loading kernel modules from initrd image:
> Using /lib/modules/2.6.21.5-smp/kernel/fs/mbcache.ko
> Using /lib/modules/2.6.21.5-smp/kernel/fs/jbd/jbd.ko
> Using /lib/modules/2.6.21.5-smp/kernel/fs/ext3/ext3.ko
> EXT3-fs: unable to read superblock
> mount: mounting /dev/md/0 on /mnt failed
> ERROR:  No /sbin/init found on rootdev (or not mounted). Trouble ahead.
> Kernel panic - not syncing: Attempted to kill init!
> 
> When I boot with the huge kernel, after the md: raidx personality  
> registered for levelx lines I see:
> 
> md: Autodetecting RAID arrays.
> md: autorun
> etc
> 
> I am not seeing that with the generic kernel.
> 
> Now, one problem I found is that it looks like mkinitrd is not  
> correctly creating the device files for the md devices. In the initrd- 
(Continue reading)

Steven Saner | 11 Dec 2007 16:20

Re: initrd for raid configuration


On Dec 11, 2007, at 6:33 AM, Iain Conochie wrote:

>> <snip>
>
>>> When the system boots in the generic kernel, do you see messages  
>>> like
>>>
>>> md: raid0 personality registered for level 0
>>> md: raid1 personality registered for level 1
>>> md: raid10 personality registered for level 10
>>
>> Yes, I do see those messages. Then I get to the following:
>>
>> initrd.gz:  Loading kernel modules from initrd image:
>> Using /lib/modules/2.6.21.5-smp/kernel/fs/mbcache.ko
>> Using /lib/modules/2.6.21.5-smp/kernel/fs/jbd/jbd.ko
>> Using /lib/modules/2.6.21.5-smp/kernel/fs/ext3/ext3.ko
>> EXT3-fs: unable to read superblock
>> mount: mounting /dev/md/0 on /mnt failed
>> ERROR:  No /sbin/init found on rootdev (or not mounted). Trouble  
>> ahead.
>> Kernel panic - not syncing: Attempted to kill init!
>>
>> When I boot with the huge kernel, after the md: raidx personality
>> registered for levelx lines I see:
>>
>> md: Autodetecting RAID arrays.
>> md: autorun
>> etc
(Continue reading)

Piter PUNK | 17 Dec 2007 05:29
Picon
Favicon

Slackware running on ClassmatePC

Hi people,

This mail is only to show a small video -:)

http://youtube.com/watch?v=pSUtGz_8-Yo

This slackware with compiz running on ClassmatePC (www.classmatepc.com).
The ClassmatePC have 256MB of RAM, 2GB of SSD and intel integrated
graphics. The hardware is very similar to EeePC, if you buy one EeePC,
you can install and run slackware on it without problems -;)

Ah! This is slackware-current, without any changes. Show to your
friends the power of slackware in small machines -;))

Piter PUNK
--

-- 
     |        E-Mail: piterpk <at> terra.com.br        (personal)
    .|.               roberto.batista <at> ntux.com.br (professional)
    /V\
   // \\      UIN:116043354  Homepage:http://piterpunk.info02.com.br
  /(   )\
   ^`~'^         ----> Slackware Linux - The Best One! <----
  #105432
Rick Miles | 17 Dec 2007 09:25
Picon

Re: Slackware running on ClassmatePC

I can appeciate it from an OS-hardware perspective but my daughter (13) who's 
grown up with Slack asks, "Is 256MB allot?". She is just a user who is much 
more impressed with something like this slack video.

http://www.youtube.com/watch?v=_qBGEmRn95g.

In either case why would one look any further for an OS?

On Mon, 17 Dec 2007 03:29:41 pm Piter PUNK wrote:
> Hi people,
> This mail is only to show a small video -:)
>
> http://youtube.com/watch?v=pSUtGz_8-Yo
>
> This slackware with compiz running on ClassmatePC (www.classmatepc.com).
> The ClassmatePC have 256MB of RAM, 2GB of SSD and intel integrated
> graphics. The hardware is very similar to EeePC, if you buy one EeePC,
> you can install and run slackware on it without problems -;)
>
> Ah! This is slackware-current, without any changes. Show to your
> friends the power of slackware in small machines -;))
>
> Piter PUNK

--

-- 
Cheers,

Rick Miles

Movement stopped is no movement,
(Continue reading)

Piter PUNK | 17 Dec 2007 12:47
Picon
Favicon

Re: Slackware running on ClassmatePC

Rick Miles wrote:
> I can appeciate it from an OS-hardware perspective but my daughter (13) who's 
> grown up with Slack asks, "Is 256MB allot?". She is just a user who is much 
> more impressed with something like this slack video.
> 
> http://www.youtube.com/watch?v=_qBGEmRn95g.

This kind of video can be done without problems in classmate, too.
But fire and animation plugins aren't shipped with slackware. The
Mandriva default install that cames with Classmate have problems
running even mpeg or flash videos.

In some talks i show it running OpenOffice and Firefox playing flash
ans spinning the cube at same time. People got impressed when i do
that after show the hardware specs.

The video was done exactly to show what the hardware can do with
slackware default install. The OS-hardware perspective -;)

But you can tell to your daughter that classmate can do all the
effects show in your other video -;) I will install some additional
plugins i do a new video -;)

Piter PUNK
--

-- 
     |        E-Mail: piterpk <at> terra.com.br        (personal)
    .|.               roberto.batista <at> ntux.com.br (professional)
    /V\
   // \\      UIN:116043354  Homepage:http://piterpunk.info02.com.br
  /(   )\
(Continue reading)


Gmane