Reconfiguring the Kernel in HP-UX Release 11i Version 1.5

Reconfiguring the kernel in HP-UX Release 11i Version 1.5
Reconfiguring the Kernel
Chapter 18
modules is not a supported kernel configuration interface, and is likely to
introduce configuration errors. Instead, use the commands kmsystem (1M)
and kmtune (1M), available since Release 11.0.
4. Build the new kernel by invoking mk_kernel (1M):
/usr/sbin/mk_kernel -s /stand/build/system
This builds a new kernel ready for testing: /stand/build/vmunix_test and the
associated kernel components.
5. Perform a kernel update using kmupdate (1M) :
/usr/sbin/kmupdate
This is a required step that will make the newly configured kernel bootable. kmupdate
also saves the currently running kernel under a new name, /stand/vmunix.prev, and
schedules the update of the system to use the default name /stand/vmunix for the newly
configured kernel.
NOTE A whole kernel configuration must be followed by a kernel update step initiated
with the kmupdate (1M) command in order to be able to successfully boot
the new kernel. A configured, bootable kernel is no longer composed of a
single file. Each new kernel configured with mk_kernel (1M) or config (1M)
is composed of several files, including the main kernel file, the loadable
images for DLKMs, a symbol table file, and a kernel-specific KRS file. The
main kernel file (for example, /stand/vmunix) carries the name of the
kernel, but is not sufficient to boot a kernel. All component files of the kernel
are essential for the kernel to boot and run properly. The kmupdate
command understands the organization of these files and prepares a
directory structure accessible to the boot loader that will allow a newly
generated kernel to boot and run properly.
CAUTION Avoid copying kernel files; doing so may result in corrupting the running
kernel, or any other configured kernel on the system.
6. Notify users that the system will be shut down. You can use the/usr/sbin/wall command
and/or the interactive capabilities of the /usr/sbin/shutdown command to broadcast a
message to users before the system goes down. For details, see wall (1M), shutdown (1M),
and “Shutting Down Systems,” in Chapter 3, “Configuring a System,” in Managing
Systems and Workgroups: A Guide for HP-UX System Administrators.