Kbase 18676: How to Manually Set Kernel Parameters on HP-UX.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to manually set kernel parameters on HP-UX.
FACT(s) (Environment):
HP-UX
FIX:
The easiest way to configure kernel parameters on HP-UX is to use HP's GUI system administration utility called "SAM".
However, if you'd like to configure the HP-UX kernel parameters manually (at the command line), follow the steps outlined below:
1) Be sure you're in the the build environment directory.
cd /stand/build
2) Next, create a kernel parameter file called "system.mod", which can be edited by extracting the parameters from the currently running system.
/usr/lbin/sysadm/system_prep -s system.mod
3) Open the kernel parameter file (system.mod) with any ASCII text editor and specify (or modify) the kernel parameters you want to change.
SEMMNS 1024
MAXUSERS 120
4) Next, build the new kernel.
/usr/sbin/mk_kernel -s ./system.mod
This creates the file: /stand/build/vmunix_test.
5) Be sure to save the original system and vmunix files for backup purposes.
mv /stand/system /stand/system.copy
mv /stand/vmunix /stand/vmunix.copy
This will ensure that you can revert back to a bootable kernel, assuming the manual changes don't work.
6) Then, move the system.mod and vmunix_test files to the /stand directory.
mv system.mod /stand/system
mv vmunix_test /stand/vmunix
7) Finally, reboot the system and test the new kernel settings.