Operating System - HP-UX
1834696 Members
2259 Online
110069 Solutions
New Discussion

Re: generate new kernel - kmupdate: automatic reboot?

 
SOLVED
Go to solution
Carsten Cimander_2
Occasional Advisor

generate new kernel - kmupdate: automatic reboot?

Hi all,

I had to increase some static kernel parameters.
I did "manually" following this procedure:

# cp /stand/system /stand/system.$DATE
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s /stand/build/system
# kmtune -s = -S /stand/build/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"

Now I want to process the command:
# kmupdate /stand/build/vmunix_test"

Question:
What happens if I do this? Will the system reboot
automatically?
If so: what can I do instead to place the new
kernel /stand/build/vmnix_test to /stand/vmunix
and also the dynamic modules /stand/build/dlkm.vmunix_test to /stand/dlkm ?

Thank you for your tipps in advance

Cheers
Carste
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: generate new kernel - kmupdate: automatic reboot?

When you do this at the command line, it will not automatically reboot your system.

You will have to do this:

cd /
shutdown -ry now

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marco Santerre
Honored Contributor

Re: generate new kernel - kmupdate: automatic reboot?

Hi Carsten,

No the kmupdate doesn't automatically reboot your server. You have to issue the
#shutdown -ry 0
in order to reboot your system.

All that is going to happen is that it's going to put in place the new kernel so that when you boot it'll use this vmunix instead. If your reboot has problem with your new vmunix, you can then reboot using vmunix.prev
Cooperation is doing with a smile what you have to do anyhow.
Dietmar Konermann
Honored Contributor
Solution

Re: generate new kernel - kmupdate: automatic reboot?

Hi, Carsten!

The kmupdate will NOT reboot automatically. During the next shutdown the /sbin/init.d/kmbuild script will move the kernel into place.

BTW, if you don't shutdown, but reboot/reset, then kmbuild will detect the kernel update during startup, move the kernel and reboot a 2nd time.

This is what I do usually to tune the kernel, if I want to be fast. :-)

# kmtune ...
# mk_kernel
# kmupdate
# /sbin/init.d/kmbuild stop
# reboot

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Carsten Cimander_2
Occasional Advisor

Re: generate new kernel - kmupdate: automatic reboot?

Hi Dietmar, Marco and Steven,

thanks for the facts.
Now I can safely update
the systems without fearing
that project-/application-
users will flame me :-)


Dietmar - what shall I say -
as usual: many thanks for
your advanced and special
tips. :-))

CU
Carsten