1829624 Members
2077 Online
109992 Solutions
New Discussion

rebuild kernel, on-line

 
SOLVED
Go to solution
Victor_5
Trusted Contributor

rebuild kernel, on-line

11.0, how to rebuild kernel, on line?
5 REPLIES 5
Michael Tully
Honored Contributor

Re: rebuild kernel, on-line

Hi Shawn,

as root

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (and add make your changes)
save file

# /usr/sbin/mk_kernel -s system
# /usr/sbin/kmupdate

Take note of the existing kernel name, probably vmunix.prev
# cd /

Reboot or shutdown

HTH
-Michael
Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor

Re: rebuild kernel, on-line

Hi Shawn:

Make any kernel parameter changes with 'kmtune':

# kmtune -s = -S /stand/build/system

# cd /stand/build

# /usr/lbin/sysadm/system_prep -s system

# /usr/sbin/mk_kernel -s system

# mv /stand/system /stand/system.prev

# mv /stand/vmunix /stand/vmunix.prev

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

# mv /stand/build/system /stand/system

# kmupdate /stand/build/vmunix_test

# shutdown -ry 0

...JRF...
Victor_5
Trusted Contributor

Re: rebuild kernel, on-line

Hi Friends:

Thanks a lot for your quick responses.

However, I am looking for a method to rebuild kernel without shutdown?
Michael Tully
Honored Contributor

Re: rebuild kernel, on-line

Hi Shawn,

Once you have rebuilt your kernel you not
obligated to reboot straight away, however
in saying that, the changes that are made
using the procedures given to you will not be
available until the reboot has been
performed and the /stand/vmunix file has been
loaded into memory.

HTH
-Michael
Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor
Solution

Re: rebuild kernel, on-line

Hi Shawn:

Tuning the kernel dynamically without a reboot appears doesn't appear until 11.11. Even then, some parameters remain "static". That is, their adjustment requires a reboot. Other parameters are defined as "dynamic" and can be tuned without reboot.

Kernel rearchitecture is a very active project. In addition to dynamic parameters, self-tuning ones will appear in new releases. Old names, like 'nproc' and 'nfile' will also become aliases for more descriptive identifiers.

Regards!

...JRF...