Compiling 2.6.11 and LVM

Place to discuss Fedora and/or Red Hat

Compiling 2.6.11 and LVM

Postby X11 » Thu Mar 03, 2005 9:10 am

Okay,

Basically I compiled 2.6.11 and it has one problem, it does not understand the LVM stuff so it just gives an error, how do I enable this support (I noticed the Red-Hat kernel does some Red-Hat related thing), do I need to get a patch or somthing from somewhere, I dont _really_ want to have to download a redhat kernel and sources after downloading the sources off www.kernel.org already (but will if it is a must).

Cheers,
John
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Thu Mar 03, 2005 9:17 am

You probably didn't create an initrd containing the LVM modules.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Thu Mar 03, 2005 11:18 am

More information on creating a initrd?

is it just somthing like

# make initrd

?
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Thu Mar 03, 2005 11:28 am

A "make install" in the kernel root *should* have created an initrd. It does nothing more than call the /sbin/mkinitrd script. To run it manually you would "mkinitrd kernelversion" where the kernel version is the same as the name of the directory under /lib/modules where the kernel modules reside that you want to make the initrd for. There is also a /sbin/lvmcreate_initrd.lvm1 script that may also do it. I have never ran that one before as I have never personly used a custom built kernel on a machine with LVM partitions. I use regular Linux partitions and ext3 file systems on my laptops/desktops. Plus I normally build the kernel according to this:

http://voidmain.is-a-geek.net/redhat/fe ... build.html

Everything gets done magically for me when I do it this way. If you build an initrd manually don't forget to reference it in your /etc/grub.conf for the new kernel you are booting.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Thu Mar 03, 2005 11:55 am

I never use make install which might be part of the problem.

I usually just...
make
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/bzImage-2.6.11

edit grub and all that

I'll run a make install for a change
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby Void Main » Thu Mar 03, 2005 12:21 pm

Yeah, "make install" should do that for you, along with create the initrd and add the grub entry.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Thu Mar 03, 2005 8:28 pm

[x11@kintaro ~]$ uname -sr
Linux 2.6.11

I used to use 'make install' only I got into the habit of doing things manually a while back, can't remember why.
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron