HP Management Base Installation and User's Guide (May 2006)
5 Rebuilding the Kernel
The hpmgmtbase scripts examine the running kernel version to assist in the selection of the appropriate
binaries for the HP-supplied Open IPMI modules. If the kernel (version) is changed that selection process will
probably need to be executed again. This may not be apparent until a reboot of the new kernel when
hpmgmtbase fails to initialize, or other programs that are dependent on the Open IPMI driver fail to start.
A careful examination of boot time logs can help isolate this behavior.
This version change can happen because of a planned, supported kernel upgrade (such as an errata from
RedHat) or user-initiated patching and rebuild. Once the new kernel is installed, hpmgmtbase can be
reconfigured to recognize the new version:
1. Shut down any other products and programs that rely on Open IPMI (such as the HP Insight Manager
SNMP agents).
2. Type the following:
/etc/init.d/hpmgmtbase stop
3. Type the following:
/etc/init.d/hpmgmtbase reconfigure
4. Type the following:
/etc/init.d/hpmgmtbase start
After a short time (up to 30 seconds) hpseld should be running and hpbmc Summary should work (as
outlined in the Chapter 4. If this fails, then the changes made to the kernel may require a complete rebuild
of the IPMI modules. Remember that the source modules shipped with your distribution may not actually work
on the particular model of HP Integrity Server. HP does not expect the source to be synchronized until RedHat
Enterprise Linux 4.4 or SLES 10.
To fulfill GPL requirements, hpmgmtbase includes the HP-modified source in
/opt/hp/hpmgmtbase/OpenIPMI/src. These are not patches but full source files for each of the source
components. To incorporate them into your new kernel the source files must be fully copied into your kernel
source tree:
1. Copy the appropriate source files from /opt/hp/hpmgmtbase/src to ../drivers/char/ipmi
in your kernel source tree.
For any 2.6 kernel, use the source files under kernel 2.6.
For a 2.4 kernel and RedHat Enterprise Linux 3:
• Use the source files under kernel2.4/K22. RedHat backported some of the 2.4.22 kernel source
into their kernel, even though it identifies itself as 2.4.21 base.
For other 2.4.21 kernels, use the source files under kernel2.4/K21.
2. Rebuild and install your modules in the fashion appropriate for your kernel major/minor release (2.4
is slightly different than 2.6)
3. Implement a mechanism that loads your newly compiled modules at boot time (an /etc/init.d/rcX.d
script) that runs before the hpmgmtbase scripts.
4. Type modprobe ipmi_si (2.6 kernel); or modprobe ipmi_si_drv or ipmi_kcs_drv.
5. Type modprobe ipmi_devintf (all kernels).
6. Type /etc/init.d/hpmgmtbase reconfigure.
The reconfiguration should recognize that modules are loaded from some other source and ignore any
HP-supplied binaries.
17