Operating System - HP-UX
1748126 Members
3131 Online
108758 Solutions
New Discussion юеВ

Re: how to set the kernel parameters in hpux

 
SOLVED
Go to solution
UVK
Trusted Contributor

Re: how to set the kernel parameters in hpux

Depending on OS version it varies.

If you dont wanna take risk use SAM easy and best way.

kmtune can be used from command line. read man pages for different switches.

-UVK
-------------------------------------------
Like it or worked !! Click kudos !!
Kranti Mahmud
Honored Contributor
Md. Minhaz Khan
Super Advisor
Solution

Re: how to set the kernel parameters in hpux

Dear Senthil,

As your OS version is 11.00 and 11.11

I can give you an example how to modify kernel in HP-UX without using SAM(SAM is recommanded):

Say you want to modify "maxvgs" parameter

1.
#kmtune -q maxvgs

OR
#kmtune|grep -i maxvgs

2.
#/usr/lbin/sysadm/system_prep -s system

#cd /stand/build

#ll system

................system----->Newly created

3.
#vi system


maxvgs 15----->Add this line at the

:wq!

4.

#mk_kernel -s ./system

5.

#mv /stand/system /stand/system.old

6.

#cp /stand/build/system /stand/

7.

#kmupdate /stand/build/vmunix_test

8.

#shutdown -ry 0


Note:

If new kernel was not able to boot follows the below procedure:

Step 1: Booting from the Backup Kernel:
To boot the backup kernel, /stand/vmunix.prev, boot the system manually as described below:

[POWER] #Power-on the system.

[ESC] #Hit the escape key to interrupt the boot process.

Main Menu> boot pri #Boot from the primary boot disk.

Interact with the IPL? Y #Do interact with the IPL/ISL.

ISL> hpux ll /stand #Shows the content of the boot filesystem /stand

ISL> hpux -is /stand/vmunix.prev #Boot from the original kernel and goto single user

Step 2: Moving the Original Kernel Back into Place
After booting the system, you may wish to make the original kernel the default so future reboots can proceed without any intervention from the administrator:

#mount /usr
# cd /stand #Move to the /stand directory.
# mv system.prev system #Move the original system file back into place.
# kmupdate /stand/vmunix.prev #Move the original kernel back into place.
# shutdown ├в ry 0 #Reboot the system with the original kernel.



**Note 1: If ├в cd ├в or ├в mv├в or ├в kmupdate├в command not work after booting the system into single user mode mount /usr directory.

#mount /usr

**Note2: To Shows the content of the boot filesystem /stand give the following command.This is useful if the kernel cannot be found.

ISL> hpux ll /stand


Thanks
Minhaz
Aryan
Advisor

Re: how to set the kernel parameters in hpux

hi,

May be attached document will help you out about kernel's query..

Regards,
Aaryan
senthil_kumar_1
Super Advisor

Re: how to set the kernel parameters in hpux

Hi All,

I am using HPUX 11.00 and 11.11.

How to find static and dynamic kernel parameters?

Can dynamic parameters only be set using "kmtune" and doesn't require restart?

Can static parameters only be set by system file and needs restart?

Pls explain me.



Sivakumar MJ._1
Respected Contributor

Re: how to set the kernel parameters in hpux

Re: how to set the kernel parameters in hpux

As the way you managed kernel parms from the command line was different in 11.00 to 11.11, you're probably better off just using SAM. That menod should be pretty consistent on both releases. SAM will tell you if a kernel parameter is static or dynamic (at least for 11.11, 11.00 is all static)

HTH

Duncan

I'm sure I've mentioned this to you before, but you do know 11.00 is out of support don't you??

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Steven E. Protter
Exalted Contributor

Re: how to set the kernel parameters in hpux

Shalom,

kmtune, not kctune will show all current parameter settings in the Os you list.

kmtune -l

Check the man page for additional options to display which are dynamic.

11.00 has very few dynamic parameters, 11.11 a few more.

kmtune can set any dynamic parameters on the fly.

sam kernel configuration has some limited documentation on kernel parameters.

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
Sunny123_1
Esteemed Contributor

Re: how to set the kernel parameters in hpux

Hi

Dynamic kernal parameter not requierd reboot.But static kernel parameter requierd reboot.

Regards
Sunny
senthil_kumar_1
Super Advisor

Re: how to set the kernel parameters in hpux

can we set value for static kernel tunable using kmtune?