Operating System - HP-UX
1827852 Members
1844 Online
109969 Solutions
New Discussion

Re: Kernel configuration problem

 
lance corbin
New Member

Kernel configuration problem

I am a newbie with a L2000 running HPUX 11. I need to get the Kernel parameters set back to default and save the current settings (For possible later use) When using SAM and trying load a different file in actions/templates/load template file I select a different file like vmunix.prev it gives me a internal errors message with the master files and I need to restart SAM. How can I create a new kernel file with the defaults and save the current one? Thank you in advance for any help. Lance
3 REPLIES 3
someone_4
Honored Contributor

Re: Kernel configuration problem

Hello here you go

PROBLEM
How do I manually rebuild a kernel at 10.x? 11.0?
RESOLUTION
The simplest way to configure a new kernel under HP-UX 10.x / 11 is with SAM,
the System Administration Manager. However there are situations which arise
that may require a kernel be built manually from the command line. Although the
steps to performs this task are similar for 10.x and 11.0, starting with
version 11.0 new utilities are provided to simplify the process of configuring
kernel parameters and system drivers.

10.X Manual Kernel Configuration
$ cd /stand/build #change to the kernel build directory

$ /usr/lbin/sysadm/system_prep -s system # creates an editable kernel
file
$ vi system #make necessary changes to the kernel file

$ /usr/sbin/mk_kernel -s ./system # creates the test kernel
/stand/build/vmunix_test
$ mv /stand/system /stand/system.prev
$ mv /stand/vmunix /stand/vmunix.prev #preserve prior kernel files

$ mv /stand/build/system /stand/system
$ mv /stand/build/vmunix_test /stand/vmunix # move new kernel files
into place
$ shutdown -ry 0 # reboot the system to test the new kernel


11.0 Manual Kernel Configuration
$ cd /stand/build
$ /usr/lbin/sysadm/system_prep -v -s system

kmtune parm_name=value | kmtune parm_name+value
kmsystem -c y driver_name # these utilities modify the system
file at 11.0
$ /usr/sbin/mk_kernel -s ./system

$ mv /stand/system /stand/system.prev #new for dynamically
linked modules at 11.0
$ mv /stand/build/system /stand/system
$ kmupdate # kmupdate automates moving
the kernel files into the
proper directory

$ shutdown -ry 0
someone_4
Honored Contributor

Re: Kernel configuration problem

ohh yeah

In the version 11.00 the utility kmtune is used to
specify the new parameter values. I got this doc from HP and they and they told me that the 10.20 process
works just fine in the 11.00 environment. The kmtune utility was added to
11.00 just to make things easier.
So, either process listed in the document works for 11.00.


Richard
Michael Tully
Honored Contributor

Re: Kernel configuration problem

Hi,

If you want to set the defaults back to what
they to start with you need to get a copy
of the default parameters to start with.
These can be found in a file called
/var/sam/boot.config at around line 1890
which starts 'tag Tunables:'

Use this in conjunction with procedure that
Richard has suggested and this should solve
your problem.

HTH
-Michael
Anyone for a Mutiny ?