1757908 Members
3329 Online
108866 Solutions
New Discussion юеВ

problem with mk_kernel

 
Efim Kushnir
Frequent Advisor

problem with mk_kernel

Dear sirs,

My customer has HP9000 L1000 with HP-UX 11.0. and has the problem, describe below:

----------------------------------------------
>
> mk_kernel fails to create /stand/build/vmunix_test
>
>
> PROBLEM
>
> When trying to create a new kernel manually on HP-UX 11.00 the
> mk_kernel command fails to create vmunix_test in the /stand/build
> directory.
> No errors are reported. The exit code of mk_kernel is zero and it
> completes very fast and returns to a prompt:
>
> # cd /stand/build
> # /usr/lbin/sysadm/system_prep -v -s system
> NOTE: The template file has been extracted from "/stand/vmunix"
> It has been placed in "system" where it will be used
> to build a new kernel.
> # /usr/sbin/mk_kernel -s /stand/build/system #
>
>
> Usually the output looks like this:
>
> # /usr/sbin/mk_kernel -s /stand/build/system Generating module: krm...
> /usr/bin/mkdir -p /stand/build Compiling conf.c...
> Loading the kernel...
> Generating kernel symbol table...
> #
>
> None of the above messages from mk_kernel are being reported.
> Why does mk_kernel fail ?
>
> CONFIGURATION
>
>
"Edited to comply with ITRC Guidelines"

----------------------------------------------

Regret the backup was lost some time ago.
So, system working properly now except this functionality.
The customer not has the same servers for has possibility take needed files from normal server to problem server.

May be somebody can the such system with such OS for help me take backup of it directory ?

BR,
Efim.
Look for the answers, do not stop !
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: problem with mk_kernel

swverify \*

You may have a patching problem.

Please verify that PHKL_18453 is installed and has only been installed once.

OS backup is best done with make_tape_recovery to tape or make_net_recovery to an nfs share on an Ignite server.

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
Efim Kushnir
Frequent Advisor

Re: problem with mk_kernel

Hello.

The indicated patch is missing in it server (see attached file).

Regret customer has not Ignite server - it standalone server without some reserve.
The backup is lost too.

For resolve it I have search the same system for take backup of problem directory.

How it patch can help for resolve it problem ?
What do it patch ?

BR,
Efim.
Look for the answers, do not stop !
Luk Vandenbussche
Honored Contributor

Re: problem with mk_kernel

What is de output off echo $LANG

This variable must be empty to rebuild succesfully the kernel
Efim Kushnir
Frequent Advisor

Re: problem with mk_kernel

Hello once more.

It patch is missing on ITRC.
May be you is wrong with patch-name ?

Efim.
Look for the answers, do not stop !
Efim Kushnir
Frequent Advisor

Re: problem with mk_kernel

Hello.

It full describe of my problem:

-------------------------------------------

mk_kernel fails to create /stand/build/vmunix_test

PROBLEM

When trying to create a new kernel manually on HP-UX 11.00 the mk_kernel command fails to create vmunix_test in the /stand/build directory.
No errors are reported. The exit code of mk_kernel is zero and it completes very fast and returns to a prompt:

# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
NOTE: The template file has been extracted from "/stand/vmunix"
It has been placed in "system" where it will be used
to build a new kernel.
# /usr/sbin/mk_kernel -s /stand/build/system #

Usually the output looks like this:

# /usr/sbin/mk_kernel -s /stand/build/system Generating module: krm...
/usr/bin/mkdir -p /stand/build
Compiling conf.c...
Loading the kernel...
Generating kernel symbol table...
#

None of the above messages from mk_kernel are being reported.
Why does mk_kernel fail ?

CONFIGURATION

HP-UX 11.X

RESOLUTION

The mk_kernel command calls config. This is the command which fails in the mk_kernel script:

# sh -x mk_kernel -s /stand/build/system ...
+ config -m /usr/conf/master.d /stand/build/system cmd_result=0 [[ 0 -ne
+ 0 ]] [[ -n ]] [[ -n ]] exit 0

The config command would usually report its progress on the command line:
Generating module: krm...
Compiling conf.c...
Loading the kernel...
Generating kernel symbol table...

but none of the above messages are reported. config calls the make command in turn (see man config(1M)):

# type make
make is a tracked alias for /usr/bin/make # ll /usr/bin/make
lr-xr-xr-t 1 root sys 17 Jun 26 2001 /usr/bin/make
-> /usr/ccs/bin/make

It turned out that /usr/ccs/bin/make was a zero size file. All files in the /usr/ccs/bin directory were zero size.

These files need to be restored from backup in order for mk_kernel to succeed.

--------------------------------------------

If somebody can help me and can send me needed backup that will be very good :-)

BR,
Efim/
Look for the answers, do not stop !
Efim Kushnir
Frequent Advisor

Re: problem with mk_kernel

Only re-installation of HP-UX or restore failed files from backup copies can help. It official answer of HP support.
Look for the answers, do not stop !