Operating System - HP-UX
1834058 Members
2510 Online
110063 Solutions
New Discussion

Re: transfer kernel parameters to another box

 
SOLVED
Go to solution
Kim Kendall
Regular Advisor

transfer kernel parameters to another box

Looking to transfer all the kernel parameters from one machine to another... Is there a config file I can just move and rebuild from?
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: transfer kernel parameters to another box

You MIGHT be able to just move /stand/system and rebuild the kernel, but I don't know that I'd necessarily want to try that.

What I would do, is just get a listing of the configurable kernel parms from one machine, go into SAM on the second machine, and make the changes as appropriate. Then let it rebuild your kernel and reboot.
KapilRaj
Honored Contributor

Re: transfer kernel parameters to another box

r the boes of same Hardware / revisions / OS same configuration . u can move /stand/system file or else !!!! this will cause a PANIC !!!!. Best way is to note down the parameters & do the changes at the other boxes

kaps
Nothing is impossible
Kim Kendall
Regular Advisor

Re: transfer kernel parameters to another box

Actually... It will be the same machine... After it's rebuilt, I just wanted to apply all of the previous mods and build another kernel (was hoping NOT to have to go down that entire list one by one just to change a few parameters)
Kim Kendall
Regular Advisor

Re: transfer kernel parameters to another box

The only real difference will be the distro I use. Still 11.0, but will be coming off brand new distribution CD's.

All H/W and config will be the same...
Pete Randall
Outstanding Contributor

Re: transfer kernel parameters to another box

Kim,

For what it's worth, I just print out or copy /stand/system and then go through SAM to re-implement the kernel modifications manually.

Pete

Pete
Sanjay_6
Honored Contributor
Solution

Re: transfer kernel parameters to another box

Hi Kim,

The steps involved are

1.) # cd /stand/build
2.) # /usr/lbin/sysadm/system_prep -v -s system

3.) # /usr/sbin/mk_kernel -s ./system

4.) # mv /stand/system /stand/system.prev #new for dynamically linked modules at 11.0

5.) # mv /stand/build/system /stand/system

6.) # kmupdate # kmupdate automates moving the kernel files into the proper directory

7.) # shutdown -ry 0

Do the first two steps on node1 and then copy the system file to node2:/stand/build and then perform the remoaining steps on node2. This will duplicate the kernel parameters on node1 to node2.

Otherwise take a copy of kernel parametes on node1 "kmtune -S /stnad/system >/tmp/kernel_para_node1" and then moedify the kernel parameters on node2 manually. I hope the hardware is same.

Hope this helps.

Regds


Anonymous
Not applicable

Re: transfer kernel parameters to another box

in case you want to roll-out a kernel parameter set to more than one box I'd recommend to build a software depot for that task- see USDUXKBRC00008416 (a copy of this doc is given in http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x72134b3ef09fd611abdb0090277a778c,00.html)