1837035 Members
2905 Online
110111 Solutions
New Discussion

Re: Kernel changes

 
SOLVED
Go to solution
Sprint Unix Team
Frequent Advisor

Kernel changes

How do i make kernel changes manually on the command line without using sam.

Then which file do i edit to change the kernel parameters.

Points will be assigned
3 REPLIES 3
someone_4
Honored Contributor
Solution

Re: Kernel changes

the 10.20 processworks 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.


KBRC00001369
Rebuilding the kernel at 10.x /11.0
Rebuilding the kernel at 10.x /11.0

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
Deshpande Prashant
Honored Contributor

Re: Kernel changes

Hi

#cd /stand/build
#/usr/lbin/sysadm/system_prep -v -s system
Edit the system file for modifications.
#/usr/sbin/mk_kernel -s ./system

Backup old kernel and system files
#mv /stand/system /stand/system.prev
#mv /stand/vmunix /stand/vmunix.prev

#mv /stand/build/system /stand/system
#kmupdate (kmupdate will move new kernel in right place)

#shutdown -ry 0


Thanks.
Prashant.
Take it as it comes.
Sridhar Bhaskarla
Honored Contributor

Re: Kernel changes

Sprint Unix Team,

kmupdate is not available on 10.20.

This method is applicable to both 10.20 and 11.00.

1.mk_kernel on 11.0 calls kmupdate.
2.mk_kernel on 10.20 takes care of moving vmunix immediately.

#cp /stand/system /stand/system.prev
#/usr/lbin/sysadm/system_prep -s /stand/system
#mk_kernel -o /stand/vmunix
#shutdown -r now

-Sri
You may be disappointed if you fail, but you are doomed if you don't try