Compiling a new RHEL-4 kernel
Matt Brookover
mbrookov at mines.edu
Tue Dec 20 15:03:51 UTC 2005
After reading my response, I realized I skipped a few details.
Depending on how your system is set up, you may need to run mkinitrd and
reboot to reconfigure scsi_mod.
Do something like:
mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`
shutdown -r now
Another possibility is to unload scsi_mod and reload it:
rmmod scsi_mod
modprobe scsi_mod
The reload may fail if there are disks or other devices using scsi_mod.
Depending on your user population, a reboot may be simpler.
Matt
On Tue, 2005-12-20 at 07:39, Matt Brookover wrote:
> Under Enterprise 3, I put this line:
>
> options scsi_mod max_scsi_luns=128
>
> in /etc/modules.conf. The default is 1 lun, this configures the scsi
> module for 128 luns.
>
> I would guess that this should work for Enterprise 4.
>
> Matt
>
>
> On Mon, 2005-12-19 at 22:48, Simon wrote:
>
> > Hi all,
> >
> > Ok, I need to recompile my kernel to add in the 'scan all LUNS for
> > each SCSI device' option - by default this is off, but the tape
> > changer I've just been landed with appears to need it (at the moment
> > I can tar to /dev/st0 but can't load/unload using /dev/sg5 :-(
> >
> > So, I just wanted to ask a few questions...
> >
> > - Is there a resource where 'how to compile a kernel' is well-
> > documented? I've spent some time looking around the RH site, but
> > couldn't find anything useful
> >
> > - I've downloaded the 'kernel-2.6.9-22.0.1.EL.src.rpm' from RHN,
> > and done a 'rpm -Uvh' on it. That's created lots (and I mean *lots*)
> > of patch files as well as a linux-2.6.9.tar.bz2 file in /usr/src/
> > redhat/SOURCES. Is the linux-2.6.9.tar.bz2 pre-patched ? Or do I have
> > to apply the patches once I've untarred the file ?
> >
> > - It's been a while since I made a kernel, and it all looks
> > different. Is it just:
> >
> > make menuconfig (the machine is 5000 miles away, no X...)
> > make
> > make install
> >
> > ... or do I need to fiddle with initrd and alter /boot/grub.conf ?
> > What happened to mrproper ? :-)
> >
> > - Anything else I ought to know ? I'd really rather not bring down
> > the server, since it's so far away...
> >
> > Cheers,
> > Simon
More information about the redhat-list
mailing list