Operating System - HP-UX
1833605 Members
3669 Online
110061 Solutions
New Discussion

Re: Building 11.11(11i) kernel via the command line

 
generic_1
Respected Contributor

Building 11.11(11i) kernel via the command line

I wanted to update my kernel settings on HPUX 11.11 and was wondering if I was missing any steps for updating the kernel properly via command line. It will be a while before I am able to reboot, but I would like to get my changes properly prepped. Thank You

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# kmtune -s = -S system
# mk_kernel -s system
# kmupdate
# mv /stand/system /stand/system.prev
# cp /stand/build/system /stand/
# /usr/sbin/shutdown -ry 0
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: Building 11.11(11i) kernel via the command line

all is well but I am overly cautious. So, right after

mv /stand/system /stand/system.prev

I would add the following two commands.

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

hope this helps
________________________________
UNIX because I majored in cryptology...
generic_1
Respected Contributor

Re: Building 11.11(11i) kernel via the command line

The shutdown probably will be run in a few weeks. I think a cp of vmunix would be safer because some things reference vmunix in the meantime but I probably should have clarified this more. Is this true? Anyone agree?
Bill Hassell
Honored Contributor

Re: Building 11.11(11i) kernel via the command line

A few commands like ipcs will use the vmunix file and when it doesn't match the in-core kernel, ipcs will complain about a missing namelist. Note that you can have several kernals in /stand like vmunix.prev2 or vmunix.bignproc (if you have enough space in /stand. You can then pick from several kernels when you reboot.


Bill Hassell, sysadmin