Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Reconfiguring the Kernel (HP-UX 11i Version 2)
Chapter 3 329
See the kcmodule (1M) manpage for details.
When you change a module state using a command as in the above
examples, the change will be made immediately to the currently running
system, if possible. Sometimes it’s not possible to make the change
immediately; for example, there might be a CD file system mounted, in
which case cdfs can’t be unloaded. In those cases, kcmodule will hold the
change and apply it at next boot. A change that moves a module into or
out of static state can never be applied immediately, and will always be
held for next boot. If any change on the kcmodule command line has to
be held for next boot, they all will be.
When modules are moved into or out of static state, the kcmodule
command will run for quite a while. This is because such changes require
that the kernel executable be relinked. If you have multiple such changes
to make, it is best that you list them all on the same kcmodule command
line, or make the changes in a system file and import it. (See “Managing
Configurations with System Files” on page 356.) Either of these
techniques will ensure that the kernel executable is only relinked once.
Sometimes you may want to force a change to be held for next boot,
instead of applying it immediately. In these cases you can use the -h
(hold) option with kcmodule to force that behavior. HP recommends that
this option be used only when the next boot is expected to be soon. If, for
example, the next boot doesn’t happen for months after making such a
change, the system administrator could be unpleasantly surprised at the
effect of a pending change that had been forgotten.
Changes to saved kernel configurations can be made by using the -c
(configuration) option. Such changes are made to the saved configuration
immediately, but they won’t affect the running system until that saved
configuration is either loaded or booted. See “Managing Saved
Configurations with kconfig” on page 352 for more information.
When changing module states, kcmodule supports the -B and -K options
to specify backup behavior, and the -C option to specify a log file
comment. See “Recovering from Errors” on page 364 and “The Kernel
Configuration Log File” on page 362 for details.
Managing Kernel Modules with kcweb
kcweb can be used to query and change the states of kernel modules in
the currently running configuration. Using kcweb, you can
determine which modules are currently running in the kernel