1848619 Members
1943 Online
104033 Solutions
New Discussion

/stand/build/system

 
mohan singh
Frequent Advisor

/stand/build/system

Hi ,
I recently installed 11i enterprise version. I want to change some of the kernal parameter.
I extracted the system file thru system_prep comand , but I can only see 5 configurable parameter.
If I use sam I can see all kernal parameter.

Why it is so ?

I know there are many guru with many answer.
Your comments are welcome.

Mohan



12 REPLIES 12
Raj D.
Honored Contributor

Re: /stand/build/system

Hi Mohan ,

You can use just kmtune to see all the current configured parameters.

Also use query to see details.
ex:
# kmtune -q maxfile

/stand/system file keeps the values, do not edit manually , but to use kmtune.

To change :
----------
# kmtune -s maxfile=4000
# ./mk_kernel
# kmupdate
# shutdown -r -y 0

After restart you can check with ,
# kmtune -q maxfile


Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
Doug O'Leary
Honored Contributor

Re: /stand/build/system

Hey;

The reason you only see the five is those are the five that are different than their defaults for whatever reason. You can use this link:

http://www.olearycomputers.com/ll/hpkernel.html

as a checklist of 11i cli based kernel creation. I gotta update it for 11.23; it's much simpler.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Sameer_Nirmal
Honored Contributor

Re: /stand/build/system

Hi,

The "system_prep" command reads the kernel parameters directly from the running kernel. By default it pulls out those parameters which you see in the first copy of the "/stand/system" file after OS installation.

When you use "kmtune" command to change kernel parameters , it will update "/stand/system" file with those parameters. It is then copied to /stand/build for kernel rebuild.
mohan singh
Frequent Advisor

Re: /stand/build/system

Hi Sameer/Raj

I agreed with you all , methods of changing the kernal parameters values:
1= kmtune
2= sam
3= update system file.

I followd the standared procedure to extract the kernal tunable prameters.
cd /stand/build
/usr/lbin/sysadm/system_prep -s system
it creates system file in /stand/build

Sameer : you said system_prep take the input from /vmunix/system
I checked the /stand/system and /stand/build/system file and found diffrence .

more suggetions please.
Mohan






Raj D.
Honored Contributor

Re: /stand/build/system

Mohan ,

What parameters are you planning to change.
What output do you get when give kmtune command without any parametr.

Have you rebooted after installing.


You can try the followings:
--------------------------------------
Change directory to the build environment (/stand/build). There, execute a system preparation script, system_prep, which extracts the system file from the current kernel, as follows:


cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system


The system_prep script writes a system file in your current directory (that is, it creates /stand/build/system). The -v gives verbose explanation as the script executes.

Modify the /stand/build/system file to add the absent driver(s) by invoking the kmsystem command. The -c Y specifies that driver-name is to be configured into the system.


/usr/sbin/kmsystem -S /stand/build/system -c Y driver-name
-----------------------------------

Hope this will help ,

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
mohan singh
Frequent Advisor

Re: /stand/build/system

Hi Raj,

I want to change the maxusers value and nfile value , nkthread ... and many more ...

I followd the below procedure to extract the kernal parameter values.
cd /stand/buil
/usr/lbin/sysadm/system_prep -v -s system
see below contents of system file.
sba
lba
c720
sdisk
stape
sctl
asio0
cdfs
cxperf
olar_psm
olar_psm_if
dev_olar
diag0
diag1
diag2
dmem
dev_config
iomem
nfs_core
nfs_client
nfs_server
btlan
maclan
dlpi
token_arp
inet
uipc
tun
telm
tels
netdiag1
nms
hpstreams
clone
strlog
sad
echo
sc
timod
tirdwr
pipedev
pipemod
ffs
ldterm
ptem
pts
ptm
pckt
cifs
td
fcd
fddi4
gelan
GSCtoPCI
iop_drv
bs_osm
iether
igelan
lvm
lv
ipmi
ipmi_psm
prm
vxvm
vxdmp
vol
vols
mpt
nfsm
rpcmod
autofsc
cachefsc
cdump
core_setid
enhautofsc
fcintrmigr
mdep_im
intrmigr
mmap_perf
mtioscan
pset
vfs_advsyscall
vfs_enh
vxfs35
vxportal35
fdd
qlog
STRMSGSZ 65535
nstrpty 60
dump lvol
maxswapchunks 6144
max_thread_proc 1100
maxtsiz 0x4000000
maxtsiz_64bit 0x40000000
shmmax 0x4000000

which driver name I select for maxusers ?
Raj D.
Honored Contributor

Re: /stand/build/system

Mohan ,

It seems tunable parameters are not listed is system_prep,

Can you try :
# kmtune -q maxusers
# kmtune -s maxusers=value
# mk_kernel
# kmupdate

check again:
# kmtune -q maxusers
(check for current and planned values).

also this will be reported in /stand/system file , you can grep it.

# shutdown -r -y 0

After reboot check:
----
# kmtune -q maxusers
(current value should be the new value.)

Hope this will allow you to set the kernel parameters.


hth.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: /stand/build/system

Mohan ,

It seems tunable parameters are not listed in system_prep,

Can you try :
# kmtune -q maxusers
# kmtune -s maxusers=value
# mk_kernel
# kmupdate

check again:
# kmtune -q maxusers
(check for current and planned values).

also this will be reported in /stand/system file , you can grep it.

# shutdown -r -y 0

After reboot check:
----
# kmtune -q maxusers
(current value should be the new value.)

Hope this will allow you to set the kernel parameters.


hth.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
mohan singh
Frequent Advisor

Re: /stand/build/system

Hi Raj,

I could able to change the kernal vlue thru kmtune command.

Any reason or thought why system_prep command not extracting the all kernal parameter values in /stand/build system file ?


Regards
Mohan
Doug O'Leary
Honored Contributor

Re: /stand/build/system

Hey;

As I mentioned, the only kernel parameters that get listed in the system file (or the system_prep file) are ones that are not default. If you haven't changed *any* kernel parameters, then none will show up in the system file.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
James R. Ferguson
Acclaimed Contributor

Re: /stand/build/system

Hi Mohan:

I suggest you use 'kmtune -l' to list all kernel parameters along with their current values and formula for calculation. You can review their meanings, relatinoships and the consequences of changing them here:

http://docs.hp.com/en/TKP-90202/index.html

Regards!

...JRF...
mohan singh
Frequent Advisor

Re: /stand/build/system

Thanks to everybody for clarification.

Doug you are right .


Mohan