Operating System - HP-UX
1834374 Members
2475 Online
110066 Solutions
New Discussion

Kernel parameter import to another system. ?

 
SOLVED
Go to solution
rveri
Super Advisor

Kernel parameter import to another system. ?

Hi,

What is the best process to copy the kernel parameters to another system,

OS= hp-ux 11.23 ,

Suppose I have customized most of the important kernel parameters on system-A and want to copy to system-B , what would be the procedure,

Thanks in advance,
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Kernel parameter import to another system. ?

Hi Rveri:

Youu can't directly copy one kernel configuration directory from one server to another, but you can export a system file from one server; move it to anotherserver; and import it.

See the "Reconfiguring the Kernel (HP-UX 11i Version 2)" in the Systems and Workgroups Guide:

http://www.docs.hp.com/en/B2355-90950/ch03s11.html

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Kernel parameter import to another system. ?

How did you customize it?
Using SAM or kctune?

If the latter, you should have recorded your commands in a file.

You could of course extract the tunables from /stand/system and convert them into kctune commands.
rveri
Super Advisor

Re: Kernel parameter import to another system. ?

Thanks James and Dennis,

Well it was customized using the 'kctune -h -B kparm=value' command, and lot of kernel parameters are there, 50+ ,
(Example, msfssz, nclist, st_san_sage,shmseg, semmnu, shmmax, maxdsiz,ksi_alloc_max,create_fast_links,nproc.., etc)

So I heard that kconfig has some features to export/import it without reusing the commands one by one, So that I can setup the other server with same kernel parameter values,

Thanks,
Dennis Handly
Acclaimed Contributor

Re: Kernel parameter import to another system. ?

>So I heard that kconfig has some features to export/import

You are correct sir!

It is right on the man page:
-e [config] filename
kconfig will export the saved kernel configuration
named config to a system file named filename, ...
The exported file can be
later imported using kconfig -i on this system or any
other system with compatible HP-UX software.
Dennis Handly
Acclaimed Contributor
Solution

Re: Kernel parameter import to another system. ?

The only issue with the exported config file is that it has more than just the tunables:
Module entries
Swap entries
Dump entries
Driver binding entries
Tunables entries

So unless your two systems are exactly the same, this may fail.

I suppose you could export your config on the new system, then glue the tunables changes from your original system.
sreejith_09
Occasional Visitor

Re: Kernel parameter import to another system. ?

Hi all,
in Hp-ux 11.11 there is an option to load a Kernel template if you are tuning your kernel through SAM -> Kernel Configuration.
you can provide either a kernel file(vmunix)or the system configuration file from another system as a templete for loading.
Dont know wether it works on 11.23 ver, as i haven't worked on it yet.

Regards,
Sreejith.M
rveri
Super Advisor

Re: Kernel parameter import to another system. ?

Thanks Dennis,
"The only issue with the exported config file is that it has more than just the tunables:"
Makes more sense now.

I hope the command kctune might be useful in this case to change just the tunables. And can be used with a script with the values.
Thanks.
Dennis Handly
Acclaimed Contributor

Re: Kernel parameter import to another system. ?

>And can be used with a script with the values.

A simple while read script can be used to extract the tunables from the file. Either to create another script or to execute kctune directly.