Operating System - HP-UX
1845948 Members
2959 Online
110250 Solutions
New Discussion

Re: about kernel parameters

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

about kernel parameters

I have two machines, machine1 and machine2. I wanna make machine2 kernel parameters same as machine1. Can some one please explain the proceedure to me please.

Here is the proceedure that I am following:

Compare the outputs of sysdef on both machines andpoint out what parameters are different.

Once I found them out, I will change them using kmtune.

Can some one please tell me if this is correct or not or some better approach that this.

Regards,

Ali
5 REPLIES 5
Geoff Wild
Honored Contributor
Solution

Re: about kernel parameters

kmtune?

What OS you on?

I usually run kctune and output to a file.
Then copy that file to the other server - and do the same thing there - then run a diff on the two.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: about kernel parameters

Hi:

'sysdef' was for 10.20 and prior. 'kmtune' appeared in 11.0 and was deprecated in favor of 'kctune' in 11.23.

Unless you are running 10.20 or before(!) I would _not_ rely on 'sysdef' providing reliable information. Then, too, if you are running 10.20 or earlier, there is _no_ 'k[cm]tune'.

Regards!

...JRF...
Ali Imran Abbas
Regular Advisor

Re: about kernel parameters

Can u tell me the systax of kctune please
Ali Imran Abbas
Regular Advisor

Re: about kernel parameters

I am using 11.11 and I tried kctune, its not there. kmtune is still here.

Here is the proceedure that I will follow.

Use system_prep to make system file.
then run kmtune -S /stand/build/system > kmtune.out.machine1
Run the same operations on the other machine.
Then tranfer first file to the second machine and find the difference.
Then use kmtune -S /stand/build/system -s param=value to make changes
build new kernel using the system file.

Geoff Wild
Honored Contributor

Re: about kernel parameters

11.11 - yes - kmtune.

Works the same as kctune.

kmtune > /tmp/`uname -n`.kmtune.out

then for each one you want to change,

kmtune parm=value



Or,

cd /stand/build
/usr/lbin/sysadm/system_prep -s system
vi system (make your changes and save the file)
mk_kernel -s system
kmupdate
cd /
reboot your system

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.