Operating System - HP-UX
1833760 Members
2601 Online
110063 Solutions
New Discussion

Re: Kernel parameter setting is lost after each reboot...

 
SOLVED
Go to solution
Rui Vilao
Regular Advisor

Kernel parameter setting is lost after each reboot...

Greetings,

I have modified on HP-UX 11i some kernel parameters for a given application:

msgmax 32768
msgmnb 32768
shmseg 120
msgseg 7168

After a reboot the setting for msgmax (dynamic, no reboot required) is lost.

How can I prevent this and make it persistent

Thanks in advance,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
5 REPLIES 5
eran maor
Honored Contributor

Re: Kernel parameter setting is lost after each reboot...

Hi

you can put this params in the system file in /stand/system

* Tunable parameters
msgmax 32768
msgmnb 32768
shmseg 120
msgseg 7168

and compile the system again

# cd /stand/build
# system_prep -s system
# mk_kernel -s system

the next time it will boot the kernel with be set

i m checking now why your kernel params didnt update but i think that you didnt compile the kernel and the afectt didnt come up after the reboot but like i said , checking
love computers
Praveen Bezawada
Respected Contributor

Re: Kernel parameter setting is lost after each reboot...

Hi
Try using SAM to changes the kernel.

...BPK...
Michael Tully
Honored Contributor
Solution

Re: Kernel parameter setting is lost after each reboot...

Hi,

You haven't actually said how you made these changes to the kernel, but to save all of the changes and reboot your system please follow the following:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
make your changes and save the file
# mk_kernel -s system
# kmupdate (this tells the system that at the next reboot a new kernel has been generated and to load it)
# cd /
# shutdown -r -y now

HTH
-Michael
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: Kernel parameter setting is lost after each reboot...

Changing the parameter msgseg requires a new kernel to be built, the others in 11i are as you said, are dynamic. How are you making these changes? With sam, it should ask you to build a new kernel when you modify "msgseg", and the dynamic ones should stay persistent.
Live Free or Die
Rui Vilao
Regular Advisor

Re: Kernel parameter setting is lost after each reboot...

It didn?t work with SAM.
But with the command line instructions it worked!

Thank you all for your help!

Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com