Operating System - HP-UX
1849863 Members
2231 Online
104045 Solutions
New Discussion

Re: Change Kernel Parameters -- not using SAM

 
Alzhy
Honored Contributor

Change Kernel Parameters -- not using SAM


To date, I've been using SAM to change kernel params. There is a kernel parameter that does not appear in SAM's Kernel Tunables that I think needs to be added manually.

How do I go about this in HPUX 11i v1.0?
Hakuna Matata.
5 REPLIES 5
Laurent Menase
Honored Contributor

Re: Change Kernel Parameters -- not using SAM

Hi Nelson,

What kernel parameters do you whish to modify?

If it is a real kernel parameter youcan indeed
add it to /stand/system
Then mk_kernel
Then kmupdate
Then cd / ; shutdown -r -y 0

Before doing that type of thing be sure to make a backup of /stand/system, and of
/stand/vmunix and /stand/dlkm in the /stand directory.
for instance rename
cp /stand/vmunix /stand/vmunix.ok
cp -r /stand/dlkm /stand/dlkm.vmunix.ok
then if the reboot fails you will be able to reboot from the kernel vmunix.ok

There are some other tunables:
dlkm or dynamique tunables specific to dlkm drivers, or dynamic tables.
use kmtune to modify them
ndd tunables for tcp/ip and socket relative parameters. use ndd to modify them
Stefan Farrelly
Honored Contributor

Re: Change Kernel Parameters -- not using SAM

Just add it into /stand/system and rebuild your kernel. Once you reboot next time you use SAM is gets the list of variables from the running kernel so it will pick it up.

There are some hidden nfs kernel parameters too, we added these in manually to /stand/system and built a new kernel successfully.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Alzhy
Honored Contributor

Re: Change Kernel Parameters -- not using SAM

Okay.. I got it..

as root

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (and add make your changes)
save file

# /usr/sbin/mk_kernel -s system
# /usr/sbin/kmupdate



Reboot..
Hakuna Matata.
Michael Steele_2
Honored Contributor

Re: Change Kernel Parameters -- not using SAM

Almost:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi /STAND/BUILD/system (and add make your changes)
save file
# /usr/sbin/mk_kernel -s system
# /usr/sbin/kmupdate
##########################################
# cp /stand/system /stand/system_old
# cp /stand/build/system /stand/system
# cd /
############################################
# shutdown -r now
Support Fatherhood - Stop Family Law
Alzhy
Honored Contributor

Re: Change Kernel Parameters -- not using SAM

Thanks y'all!

And thanks to the HP Docs site as well...
Hakuna Matata.