Operating System - HP-UX
1834437 Members
2284 Online
110067 Solutions
New Discussion

Re: kernel rebuild dose not change the new parameter settings

 
SOLVED
Go to solution
Amir Fadaghi
Advisor

kernel rebuild dose not change the new parameter settings

HP-UX gurus,
I have a L2000 now (it was L1000 that I changed the mother board, cpu, and memory). For Oracle 9i I have installed some patches. I am trying to change some kernel parameters (have attached the current settings) but, after building the kernel (command line or SAM) the server reboots and still have the old parameter settings. I am not getting any errors during kernel build or during reboot. Any idea where I need to look? Your help is much appreciated.
reach and touch someone
6 REPLIES 6
Mel Burslan
Honored Contributor

Re: kernel rebuild dose not change the new parameter settings

try compiling the kernel
manually and see if it compiles w/o any problems as a first thing.

in case you do not have the how to procedure, here it is:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
# vi system

modify existing parameters in system file
add parameters which are not in system file in the same format.

# mk_kernel -s system

# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# mv /stand/dlkm /stand/dlkm.prev
# mv /stand/build/system /stand

# kmupdate /stand/build/vmunix_test
# cd /
# shutdown -r
________________________________
UNIX because I majored in cryptology...
Navin Bhat_2
Trusted Contributor

Re: kernel rebuild dose not change the new parameter settings

Can you post the adb values of the parameters so that we can see if the change indeed did not take place in the kernel. Also what were the previous values.

Please detail the exact steps you took to rebuild the kernel on the command line.
Bharat Katkar
Honored Contributor

Re: kernel rebuild dose not change the new parameter settings

Hi there,
what i would suggest is,
go thr' SAM, select kernel parameter do the required changes.

maxuprc 100
maxusers 64
ncallout 2064
nfile 2000
nkthread 2048
nstrpty 60
num_tachyon_adapters 5
semmni 70
semmns 1000
shmmax 0X80000000

Also modify the related/dependant parameters if any if it prompts for and dont't rebuild the kernel immediately just by saying no to reboot immediately during the process, Come back and see the Kernel parameter. You will see two different fields in every parameter.\ i.e. actual value and pending value.
Now pending value of all the above parameters should reflect the value you have changed.
After configrming that reboot the server.

Regards,
You need to know a lot to actually know how little you know
Sundar_7
Honored Contributor
Solution

Re: kernel rebuild dose not change the new parameter settings

Hi,

!!! DONT EVER MOVE /stand/vmunix and /stand/dlkm.vmunix manually !!!. That is what kmupdate does it for you

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# kmtune -s = -S /stand/build/system

# mk_kernel -s system
# mv /stand/system /stand/system.prev
# mv /stand/build/system /stand/system

# kmupdate

You dont have to give any arguements to kmupdate. It creates a .update_ux file in /stand which is referred to replace the vmunix with the vmunix file mentioned in this file.

# /usr/sbin/shutdown -r -y 0

it is imperative to use shutdown and not reboot here.

are u checking with kmtune from the command line ? - kmtune is dependant on /stand/system and even if the kernel has updated values for the parameters, if u fail to replace /stand/system with /stand/build/system then kmtune is going to stil keep showing u the old values !!

Sundar
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: kernel rebuild dose not change the new parameter settings

I haven't had any problems doing the vmunix move manually.

kmmupdate does make it easier.

I think the point here is the settings are not sticking because the process isn't getting things moved the way it should.

This has happened to me when I forgot to copy the system file from /stand/build to /stand

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Amir Fadaghi
Advisor

Re: kernel rebuild dose not change the new parameter settings

Guys,
thank you all very much for your quick response. The problem solved after the new system file was copied to correct place. I am still not sure why SAM was not making the changes after the reboot. I can live with this until I figure SAM out.

take care
reach and touch someone