1838250 Members
4465 Online
110125 Solutions
New Discussion

Re: /stand/system

 
subhashni
Regular Advisor

/stand/system

Hi , i have entered some kernel parameters at /stand/system . To make it effective do i need to run mk_kernel or just a reboot will help , when will the vmunix(kernel) will be created , i understand that mk_kernel does that.please help me to understand this.Thanks in advance
unix4me
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: /stand/system

I prefer to use SAM to modify the configurable kernel parameters. SAM will rebuild the kernel for you and reboot the machine.

If you do things manually you must do ALL steps manually, including building the kernel and moving it into place.

Have a look at the TKB document "Building a New Kernel on 10.X/11.X Systems" - Doc ID KBRC00010515 - for all the required steps:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070309309

Make sure you follow the steps EXACTLY. Do not try any shortcuts or you could wind up with a kernel that won't boot.
A. Clay Stephenson
Acclaimed Contributor

Re: /stand/system

I'll assume that this is an 11x box. SAM is probably the better way to do this if you are inexperienced.

Editing /stand/system with or without a reboot will do nothing. The preferred method to editing the system file is kmtune.

e.g
kmtune -s bufpages=102400

You repeat the kmtune command for as many values as you wish to change.

Next, mk_kernel
Next, kmupdate

You are now ready to reboot.
Man kntune, mk_kernel, kmupdate for details.
If it ain't broke, I can fix that.
James George_1
Trusted Contributor

Re: /stand/system

Hi

For 11.0 systems .. do this

# cp -p /stand/vmunix /stand/vmunix.old

Edit the /stand/system file with the new parameters ..

# mk_kernel â s /stand/system â o /stand/vmunix.new
# Kmupdate /stand/vmunix.new

This will create the new kernel.

Good luck
forum is for techies .....heaven is for those who are born again !!
James George_1
Trusted Contributor

Re: /stand/system

sorry .. got some junk chars there ..

# mk_kernel -s /stand/system -o /stand/vmunix.new

# kmupdate /stand/vmunix.new

James
forum is for techies .....heaven is for those who are born again !!
Ranjith_5
Honored Contributor

Re: /stand/system

Hi Subhash,

What I do is as follows.

Method1
========
Make a copy of /stand/vmunix and /stand/system and Change kernel parameters using SAM.

Using Commandline:-
=======================

#cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
( Prepares new system file )

#vi ./system
(Edit the system file and change the required parameters and save it)

# /usr/sbin/mk_kernel -s system
( Prepares new kernel )

# mv /stand/system /stand/system.
( Move old system file )

# mv /stand/vmunix /stand/vmunix.
( Move old kernel file )

# mv /stand/dlkm /stand/dlkm.vmunix.

# mv /stand/build/system /stand/system
( Move new system file to /stand )

# kmupdate /stand/build/vmunix_test
( Moves new kernel into place during the next reboot )

# shutdown -ry 0 ( Reboots the system )

HTH-

Regards,
Syam