Operating System - HP-UX
1831604 Members
2332 Online
110027 Solutions
New Discussion

Rebuilding Unix 11.00 Kernel

 
SOLVED
Go to solution
S. Vishwanath
Frequent Advisor

Rebuilding Unix 11.00 Kernel

Hi, we had to install OVO for HP-UX 11.00. For this, we have to modify certain Kernel Parameters & then rebuild the kernel.

After modifying the required parameters & when I proceed for rebuilding the kernel, it gives with an error. I have attached the snamp of the ERROR as a BMP file. Please do help me at the earliest for rebuilding the Kernel
11 REPLIES 11
Stefan Farrelly
Honored Contributor

Re: Rebuilding Unix 11.00 Kernel

This may be a long job...
Either /stand/system has an error in it or the kernel build makefile. Try making the kernel manually first as we will get more info on the error;

mk_kernel -s /stand/system -o /stand/vmunix

and post the output.
Im from Palmerston North, New Zealand, but somehow ended up in London...
S. Vishwanath
Frequent Advisor

Re: Rebuilding Unix 11.00 Kernel

Here is the output.

# mk_kernel -s /stand/system -o /stand/vmunix
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...

Kernel update request is scheduled.

Default kernel /stand/vmunix will be updated by
newly built kernel /stand/build/vmunix_test
at next system shutdown or startup time.
Alex Glennie
Honored Contributor

Re: Rebuilding Unix 11.00 Kernel

Is that the full error we are seeing or did it also contain a line number ? If yes what's at in /usr/conf/space.h.d/core-hpux.h

Also what Kernel Parameters did you change and did you use or change the formula's at all via the sam GUI ? If yes are the total string lengths of the formula's less or equal to 59 characters ?
S. Vishwanath
Frequent Advisor

Re: Rebuilding Unix 11.00 Kernel

I believe the image is not fully reflecting the error message. Well here are the details as I'm seeing from the desktop.

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below:

(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 743: error 1000: Unexpected symbol: ";".

Stop.
config: make did an exit(1)

The command exitted with exitcode -71.


List of Parameters that I modified are :
nkthread, max_thread_proc, maxdsize, maxfiles, maxssiz, maxuprc, nfile, nflocks, nproc, semmni, semmns, shmem, shmmax, shmmni, shmseg.

For changing the values, I did not touch the formula, instead, I added some value to get the desired value to the end of the formulae.

ex:- if the formula is as (a + b*c), then I modified by appending it as (a + b * c) + 10000.

Hope you will get my wordings.
Stefan Farrelly
Honored Contributor
Solution

Re: Rebuilding Unix 11.00 Kernel

Looks like youve made nfile too large. Reduce it in /stand/system and try the mk_kernel again. If that doesnt fix it try reducing maxfiles.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: Rebuilding Unix 11.00 Kernel

or it might be ninode thats too large.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Alex Glennie
Honored Contributor

Re: Rebuilding Unix 11.00 Kernel

from man config :

(4) System parameters
These parameters should not be modified without a full
understanding of the ramifications of doing so (see the Managing
Systems and Workgroups manual).

Each line contains two fields. The first field can contain up to
20 characters; the second field up to 60 characters. Each line
is independent, optional, and written in the following format:

parameter_name number or formula


I *think* you've hit a limit ... since sam adds an xtra 2 characters around the formula an xtra set of'()' bringing the limit to 58 .... try decreasing the number of characters you addedto the formula or comment on their total length would be handy ...

I maybe wrong ....

ps what's at line 743 ?
S. Vishwanath
Frequent Advisor

Re: Rebuilding Unix 11.00 Kernel

By Reducing the count for nfile I could build the new kernel. But how ever this number will not meet requirement specification defined for the OVO installation. It says nfile should be set to 5000 how ever in this case I could only set nfile to 1618 & only then It allowed me to build the kernel.
Pete Randall
Outstanding Contributor

Re: Rebuilding Unix 11.00 Kernel

Instead of adding on to the formula, just put your desired value in place of it. If you want 5000 for nfile, put 5000 in place of the formula.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Rebuilding Unix 11.00 Kernel

I think it would be appropriate to see if OVO-9000's definition of nfile and HP-UX's meet eye to eye.

It seems strange that an application would require a kernel setting that would make it impossible to generate the kernel.

There is some kind of misunderstanding going on. Maybe the application could be satisfied with changing one of the ulimit

ulimit -a to display those.

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
Pete Randall
Outstanding Contributor

Re: Rebuilding Unix 11.00 Kernel

Nfile:

Minimum: 14
Maximum: Memory limited
Default: ((16*(Nproc+16+MaxUsers)/10)+32+2*(Npty+Nstrpty)


I think, as suggested earlier, that you've exceeded the string length for the formula. Substituting the actual value in place of the formula should work unless you're severely limited in memory.


Pete

Pete