Operating System - HP-UX
1837962 Members
3223 Online
110124 Solutions
New Discussion

HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

 
Hau Duong
New Member

HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

After install the latest patches for OS and Oracles. I could not build kernel via ...
mk_kernel -s /stand/system

It did use the /stand/kernel, but did copy a basic version of system over the the /stand/kernel?

The SAM , build kernel work but it take so long to change all the parameter?
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

Complete procedure:

#cd /stand
#cp vmunix vmunix.old
#cp system system.old
#cd build

#this is the changed line.
#/usr/lbin/sysadm/system_prep -s system

Edit system file and make changes here as per ur require ment. Imeand addition/Deletion of devices. Then
#mk_kernel -s system
For more information see the man page of mk_kernel

Now one new kernel will be created in /stand/build directory. Copy this to original location
#cd /stand/build
#cp vmunix_test /stand/vmunix
#cp system /stand


From this thread:http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105739

If sam built it, you should be able to do it manually.

SEP
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
Sundar_7
Honored Contributor

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

Do NOT move vmunix manually ! and dont execute mk_kernel from /stand directory.

# 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

Learn What to do ,How to do and more importantly When to do ?
Hau Duong
New Member

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

The new kernel did built, but with some "basic parameters", didn't know where does it get to copy to the "/stand/system"?

Sanjay_6
Honored Contributor

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

Hi,

A month is a long time to give feedback and open a previous thread.

Here is a procedure to manully build the kernel,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070309309

the itrc doc id is KBRC00010515.

Also we do not use sysdef, but use kmtune to check on the kernel parameter for 11.x

Hope this helps.

Regds
Hau Duong
New Member

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

That is the way it works before, but not now.

The mk_kernel isn't do as it suppose to. It move my current "system" file to system.prev

Then brings in a basic "system" file from nowhere (?!) then build the kernel??

It happens to two of my new server (after updade patches). I have tried many time, step by step as your have mention, the result is the same.... Please look in my previous attached file. thanks.
Hau Duong
New Member

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

I think the problem was in the "mk_kernel" file. Here is the capture on a system that I havn't ungrade yet"

Note the date and size of the mk_kernel
Sridhar Bhaskarla
Honored Contributor

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

Hi Hau Duong,

If your old kernel (vmunix.prev) is in tact, then boot it from it to restore your old configuration.

#cd /stand
#cp vmunix vmunix.new
#cp vmunix.prev vmunix

#shutdown -r y now

Once it comes back up, check to see if the kernel parameters are restored using 'kmtune' command. I follow the following procedure. It's basically the same as above except I work in stand directory and I play safe by taking copies of the current system and vmunix (only if I have enough space) files.

#cd /stand
#cp system system.110404
#cp vmunix vmunix.110404
#/usr/lbin/sysadm/system_prep -s /stand/system
#mk_kernel -o /stand/vmunix
#cp system build
#kmupdate
#cd /
#shutdown -r y now


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Cheryl Griffin
Honored Contributor

Re: HP_UX 11.00 mk_kernel -s /stand/system doesn't work?

One thing I noticed is that you ran sysdef first, then kmtune.

You should not be using the output from sysdef as this is an obsoleted command and the results are no longer trustworthy. kmtune is the replacement.

Run kmtune before the kernel rebuild and compare it to kmtune after the kernel rebuild.

Which parameters did you change?
"Downtime is a Crime."