On Mon, 2005-02-14 at 16:47 -0500, Christopher Alexander Stein wrote:> On Mon, 14 Feb 2005, Jeffrey W. Baker wrote: > > > The best way to install the kernel on Debian is to convert it with > > alien, install it with dpkg -i, depmod -a $version, then make an ext2 > > initrd and boot it. The SuSE kernel needs an ext2 initrd, but the > > standard Debian initrd is a cramfs, so you will need to convert it. The > > manual pages for mkinitrd, depmod, dpkg, and grub may be useful. > > This is what I''ve done, with a couple of differences because I''m > starting with the source package, rather than the pre-built > binary package. > > I started with the source package, extracted the source tree with > alien, configured that kernel to include the driver for my SCSI > controller so that I wouldn''t need an initrd, then built the .deb > kernel image package with make-kpkg kernel_image. dpkg -i > installed this just fine. depmod runs just fine, but I don''t have > a *cfs.ko file anywhere in /lib/modules/`uname -r`. Where should > the module come from? Are there lustre-specific kernel config > switches for the patched kernel source?It sounds like you started from kernel-source....rpm instead of kernel-...src.rpm. The latter is the one you want, and if you can get it to build, my hat is off to you. Wouldn''t it be easier to use the binary RPM and include the needed SCSI driver in the initrd? -jwb
On Mon, 14 Feb 2005, Phil Schwan wrote:> It''s included in the RPMs, or built as part of the normal build. It > provides low-level functionality including debugging infrastructure and > platform-independence code.Ok, thanks. I took the kernel-source RPM, extracted the source, configured and installed that kernel. That kernel boots fine, but it fails when I try to run the lustre-lite utility lconf because it can''t find the libcfs.ko module. The source tree I have (from kernel-source-2.6.5-SLES9_SP1_BRANCH_2004111114454891_lustre.1.4.0.i686.rpm) doesn''t have any cfs module stuff. Which RPM are you talking about? Thanks, Lex
On 2/14/2005 15:01, Christopher Alexander Stein wrote:> > Hi, I am trying to set-up a lustre system. I''m running > 2.6.5/1.4.0 (Debian). When I run lconf, I get a module missing > error: > > fs05:/usr/local/lustre# lconf --reformat --gdb --node fs05 > config.xml > loading module: libcfs srcdir None devdir libcfs > ! modprobe (error 1): >> FATAL: Module libcfs not found. > > How do I obtain the libcfs module? What is it and why is it > needed?It''s included in the RPMs, or built as part of the normal build. It provides low-level functionality including debugging infrastructure and platform-independence code. -Phil
On Mon, 2005-02-14 at 15:01 -0500, Christopher Alexander Stein wrote:> Hi, I am trying to set-up a lustre system. I''m running > 2.6.5/1.4.0 (Debian). When I run lconf, I get a module missing > error: > > fs05:/usr/local/lustre# lconf --reformat --gdb --node fs05 > config.xml > loading module: libcfs srcdir None devdir libcfs > ! modprobe (error 1): > > FATAL: Module libcfs not found. > > How do I obtain the libcfs module? What is it and why is it > needed?Lex,>From your series of questions it really sounds like you''re shooting inthe dark. Remember, Debian is not supported, and I wouldn''t recommend trying to install it there unless you really have a good grasp of how Debian works, and how it works differently from Red Hat and SuSE. If you don''t have libcfs.ko, then you have improperly installed the kernel RPM. It should be under /lib/modules somewhere. If the file does exist, then probably the Lustre kernel is installed but you aren''t running it. Check uname The best way to install the kernel on Debian is to convert it with alien, install it with dpkg -i, depmod -a $version, then make an ext2 initrd and boot it. The SuSE kernel needs an ext2 initrd, but the standard Debian initrd is a cramfs, so you will need to convert it. The manual pages for mkinitrd, depmod, dpkg, and grub may be useful. Best of luck, jwb
On Mon, 14 Feb 2005, Jeffrey W. Baker wrote:> The best way to install the kernel on Debian is to convert it with > alien, install it with dpkg -i, depmod -a $version, then make an ext2 > initrd and boot it. The SuSE kernel needs an ext2 initrd, but the > standard Debian initrd is a cramfs, so you will need to convert it. The > manual pages for mkinitrd, depmod, dpkg, and grub may be useful.This is what I''ve done, with a couple of differences because I''m starting with the source package, rather than the pre-built binary package. I started with the source package, extracted the source tree with alien, configured that kernel to include the driver for my SCSI controller so that I wouldn''t need an initrd, then built the .deb kernel image package with make-kpkg kernel_image. dpkg -i installed this just fine. depmod runs just fine, but I don''t have a *cfs.ko file anywhere in /lib/modules/`uname -r`. Where should the module come from? Are there lustre-specific kernel config switches for the patched kernel source? The installed lustre kernel boots just fine. The problem comes when I actually try to run the lustre-lite utility lconf on the kernel. Thanks Lex
On Mon, 14 Feb 2005, Jeffrey W. Baker wrote:> It sounds like you started from kernel-source....rpm instead of > kernel-...src.rpm. The latter is the one you want, and if you can get > it to build, my hat is off to you.Why is the latter the one I want? What''s the difference between the two?> Wouldn''t it be easier to use the binary RPM and include the needed SCSI > driver in the initrd?I tried that approach, but was unable to get the size of the initrd.img file down to a size the kernel could mount. Thanks Lex
On Mon, 2005-02-14 at 17:18 -0500, Christopher Alexander Stein wrote:> On Mon, 14 Feb 2005, Jeffrey W. Baker wrote: > > > It sounds like you started from kernel-source....rpm instead of > > kernel-...src.rpm. The latter is the one you want, and if you can get > > it to build, my hat is off to you. > > Why is the latter the one I want? What''s the difference between > the two?One of them contains Lustre, and the other one doesn''t.> > Wouldn''t it be easier to use the binary RPM and include the needed SCSI > > driver in the initrd? > > I tried that approach, but was unable to get the size of the > initrd.img file down to a size the kernel could mount.Hrmm, are you sure this is the problem? I''m booting kernels here with intird larger than 30MB. You can always gzip -9 the image. Kernel panic during initrd mount is usually due to unrecognized filesystem. Initrd too large usually manifests as grub or lilo halting. I get decently-sized initrd by using MODULES=dep in mkinitrd.conf. Regards, jwb
It looks like now that you have a kernel, you need to configure and make the lustre source tree that was also inside the .src.rpm file. Also when you built that kernel did you install the lustre patches? Evan On Mon, 2005-02-14 at 16:53 -0500, Christopher Alexander Stein wrote:> On Mon, 14 Feb 2005, Phil Schwan wrote: > > > It''s included in the RPMs, or built as part of the normal build. It > > provides low-level functionality including debugging infrastructure and > > platform-independence code. > > Ok, thanks. I took the kernel-source RPM, extracted the source, > configured and installed that kernel. That kernel boots fine, but > it fails when I try to run the lustre-lite utility lconf because > it can''t find the libcfs.ko module. > > The source tree I have (from > kernel-source-2.6.5-SLES9_SP1_BRANCH_2004111114454891_lustre.1.4.0.i686.rpm) > doesn''t have any cfs module stuff. Which RPM are you talking > about? > > Thanks, > > Lex > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss@lists.clusterfs.com > https://lists.clusterfs.com/mailman/listinfo/lustre-discuss
Hi, I am trying to set-up a lustre system. I''m running 2.6.5/1.4.0 (Debian). When I run lconf, I get a module missing error: fs05:/usr/local/lustre# lconf --reformat --gdb --node fs05 config.xml loading module: libcfs srcdir None devdir libcfs ! modprobe (error 1):> FATAL: Module libcfs not found.How do I obtain the libcfs module? What is it and why is it needed? Thank you, Lex