1847397 Members
2699 Online
110264 Solutions
New Discussion

Kernel Build question .

 
rveri
Super Advisor

Kernel Build question .

Hi All,

I want to change some kernel parameter and rebuild the kernel and keep it ready for reboot with the next schedule reboot.

My question is now oracle is runing, can i process the activity now.

# kmtune -s var=value
# ./mk_kernel
# kmupdate

Can I execute this commands and keep it ready to take effect at next reboot. Just want to know if any impact on oracle, if I process the kernel when oracle is up.

Thanks in advance.
3 REPLIES 3
Yang Qin_1
Honored Contributor

Re: Kernel Build question .

If the parameter you are going to change is a static parameter. Then there will be NO impact on Oracle while you build the new kernel. Yes, the new kernel will be loaded during next reboot.

There are some dynamic kernel parameters can be changed without re-build new kernel and will take effect immediately after you change them. If you are not sure about what you are going to modify. It is better to use sam to change the kernel parameter. SAM will cross check the value you changed and you can select "Reboot now" or "reboot later".

Yang
rariasn
Honored Contributor

Re: Kernel Build question .

Hi rveri,

Use SAM for create "new" kernel and when ask for "reboot" use the option "create new kernel" and "not move to original localitation".

Then, use the command:

# kmupdate

This create the file "/stand/.update_ux.

The process /sbin/init.d/kmbuild detect the file in normal shutdown and move to /stand directory.

rgs,

ran
Sandman!
Honored Contributor

Re: Kernel Build question .

It is important to backup the kernel-related files before issuing the kmupdate command. So cp(1) NOT mv(1) the kernel-related files since commands like lanscan which depend on the /stand/vmunix file will fail pending reboot. Steps below:

# cp /stand/system /stand/system.prev
# cp /stand/vmunix /stand/vmunix.prev
# cp -R /stand/dlkm /stand/dlkm.vmunix.prev
# /usr/sbin/kmupdate

~hope it helps