HP-UX HB v13.00 Ch-07 - Kernel Configuration
HP-UX Handbook – Rev 13.00 Page 9 (of 33)
Chapter 07 Kernel Configuration
October 29, 2013
# shutdown –r 0
NOTE:
Do not use the reboot command. Otherwise the movement of the kernel files will be
skipped and the system boots from the original kernel again. If you really need to reboot
instead of shutdown, then execute the rc script manually before rebooting:
# /sbin/init.d/kmbuild stop
Overview about standard kernel files:
/stand/vmunix
kernel executable
/stand/vmunix.prev
kernel executable (backup)
/stand/system
system file
/stand/system.prev
system file (backup)
/stand/dlkm/
kernel function set directory
/stand/dlkm.vmunix.prev/
kernel function set directory (backup)
/stand/build/dlkm.vmunix_test/
kernel function set directory (built by
mk_kernel)
/stand/build/vmunix_test
new kernel executable (built by mk_kernel)
2. Add a DLKM to the kernel
To install and activate a DLKM to the running kernel, you need the commands:
kminstall(1M) (installation of a module) and
kmadmin(1M) (activation of a module)
Generally a DLKM consists of three components:
code file /usr/conf/km.d/module_name/mod.o
master file /usr/conf/master.d/module_name
system file /stand/system.d/module_name
Activating a DLKM
This example shows the installation and (de)activation of the EMS monitor “krm“ (kernel
resource monitor). The krmond daemon is a hardware monitor that is part of the EMS (Event
Monitoring Services) subsystem. It simply monitors the usage of kernel tunables.
Check if krm is installed:
# swlist -l product EMS-KRMonitor
# Initializing...
EMS-KRMonitor A.11.11.04 EMS Kernel Resource Monitor