Operating System - HP-UX
1748288 Members
3347 Online
108761 Solutions
New Discussion

Re: Error on kernel regen

 
vdg1683
Senior Member

Error while compiling kernel

Just had to reinstall 11.00 on a rp2470 box from scratch. The OS installed fine. However, upon trying to install any additional kernel patches or any package that needs a kernel re-compile, I get the following error:

 

NOTE:    Building a new kernel based on template file "/stand/system"
config: error in opening file -- /usr/conf/master.d/krm
         config failure.

 

I even tried replacing this file from the backups to see if it was corrupted in some way. Hasn't helped. Please advise.

Regards,
Viraj Gadkari
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Error on kernel regen

>Just had to reinstall 11.00

 

(This version isn't supported.)

 

>error in opening file -- /usr/conf/master.d/krm

 

The file is there with the correct permissions on all of the component paths?

vdg1683
Senior Member

Re: Error while compiling kernel

I know 11.00 isn't supported, but that's what I have & hence need to work on it.

 

I did check the permissions on the file path & compared it with a server with the same configurations & it's setup the same way. Following is how the permissions are:

 

drwxr-xr-x  25 bin        bin           1024 Sep  9 02:43 /usr

dr-xr-xr-x  24 bin        bin           1024 Sep  9 02:11 /usr/conf

dr-xr-xr-x   2 bin        bin           2048 Sep  9 13:25 /usr/conf/master.d

-rw-r--r--   1 root       sys            956 Jul 12  2006 /usr/conf/master.d/krm

 

HP-UX fpkmgt01 B.11.00 U 9000/800 1820990626 unlimited-user license

 

The OS was installed with a March 2003 core OS CD & the March 2003 Support Tools pack was loaded after that.

Regards,
Viraj Gadkari
UX4life
Frequent Visitor

Re: Error while compiling kernel

It appears you may be having a problem with your EMS-KRMonitor  kenerl modules.

 

 

1. Check if krm is installed:

# swlist -l product EMS-KRMonitor

# Initializing...

EMS-KRMonitor A.11.11.04 EMS Kernel Resource Monitor

 

2.# cd /etc/opt/resmon/lib/krm

 

    # kminstall -a krm

 

This will put all the files in the correct location the files are:

 

 subsystem code to  /usr/conf/km.d/krm/mod.o

master file to    /usr/conf/master.d/krm

system file to    /stand/system.d/krm

 

3.Use   kmsystem to check if the installation of the module was successful:

 

     # kmsystem -q krm

 

 Module                 Configured                Loadable
=================================================

krm                                Y                                   Y  

 

4. Run     # kmadmin -Q krm

 

to see what the status of the module is....  It should say  "LOADED"

 

If the Module is not in the kernel you will need to rebuild the kernel and add the module:

 

# mk_kernel -M krm

 

NOTE: -->

Activated module(s) is(are) only available until system reboot.

 

 

 

# kmadmin -L krm

 to load modules into a running kernel

 

kmadmin: Module krm loaded, ID = 1

 

 

If you are not using  EMS just run

 

kminstall -d krm

 

This will remove the  modules

 

 

 

 

vdg1683
Senior Member

Re: Error while compiling kernel

Thank you for that! I re-searched & already tried that. It would still give me the same error at the 'mk_kernel -M krm' step. So I thought I'd try by just disabling this module altogether. I did a 'kminstall -d krm'.

 

Now, it gives the same error for other modules:

 

config: error in opening file -- /usr/conf/master.d/func0

 

So I think my problem is beyond just 'krm'. Something is screwed up on this system. Anything that doesn't need a kernel re-build, gets installed fine & wroks good. I am not even able to load any patches or modify any Static parameters.

Regards,
Viraj Gadkari
James R. Ferguson
Acclaimed Contributor

Re: Error while compiling kernel


@vdg1683 wrote:

I am not even able to load any patches or modify any Static parameters.


What does 'swlist' return?  Did you munge around in 'var/adm/sw' for any reason?

 

Regards!

 

...JRF...

Dennis Handly
Acclaimed Contributor

Re: Error on kernel regen

>>I am not even able to load any patches or modify any Static parameters.

>Did you munge around in '/var/adm/sw' for any reason?

 

Or just that all of these changes need to do a kernel regen?

UX4life
Frequent Visitor

Re: Error on kernel regen

>>>>Just had to reinstall 11.00 on a rp2470 box from scratch.

 

>>>>I even tried replacing this file from the backups to see if it was corrupted in some way.

 

The kernel gen issue seems to be a symptom of  a bigger issue.

You may want to review the 11.0  install procedures.

 

You mentioned replacing the krm file from backup , I am not sure of your back up tool or if the file was restored  from an image from this systems backup of from another server.  How  and what you restored maybe the issue.

 

Not knowing the above makes it hard to pinpoint the true issue.

 

Cold Install the OS add the apps and then patch.

 

When patching be sure options are "manage patch selection" and  "match what target has"  are selected.

 

To minimize error use the TUI  by running swinstall without options.

 

 

vdg1683
Senior Member

Re: Error on kernel regen

I tried restoring the 'krm' file from a Netbackup backup of the server. That didn't help. I had renamed the original file & have now put it back as 'krm'. I don't have the option of re-loading the OS now since the app is already up & running on it, but there are certain company standard products that I need to install & those need a kernel rebuild which is failing.
Nothing was done in /var/adm/sw
Regards,
Viraj Gadkari