Operating System - HP-UX
1855734 Members
1581 Online
104103 Solutions
New Discussion

Can't rebuild kernel... exit -71 error

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

Can't rebuild kernel... exit -71 error

My kernel is all screwy and I am trying to replace some of the parameters with something that makes sense. However, when I change the parameters and then try and rebuild I get an exitcode of -71 and the error /usr/sbin/config won't run. The last time that I knew it worked was when I installed the latest Goldpak last weekend ... I figure it worked anyway because it has a bunch of PHKL pathches and the kernel had to be rebuilt.
When I go into Glance and go into the System Tables I see that "nbuf" is at 100%...I figure that has something to do with the problem.

Any ideas?
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Can't rebuild kernel... exit -71 error

Shalom Sally,

Need to know what OS you are using.

If this is 11.00, hopefully you have not installed the PHKL_18543 patch, because that patch can not be installed twice.

If the above is not the case, you may want to restore the corrupted files in /stand

swverify \*

You may wish to swremove any patches listed as corrupt.

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
Coolmar
Esteemed Contributor

Re: Can't rebuild kernel... exit -71 error

Shalom Steven,

Sorry, I should have mentioned what OS I am using. I am using HP-UX 11.11 on a vpar on an rp7420. The Goldpack that I installed is Sept 2005.

I am running the swverify \* now - will it tell me if there are any corrupt patches?
Sundar_7
Honored Contributor

Re: Can't rebuild kernel... exit -71 error

Sally,

How are you rebuilding the kernel ? from the command line or from SAM ? - I like doing it from the command line.

Try running check_patches. This script creates a report in /tmp/check_patches.report.

- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Coolmar
Esteemed Contributor

Re: Can't rebuild kernel... exit -71 error

Hi Sundar,

I was using SAM. I did try to do it manually at the command line and then couldn't even boot. Here is exactly what I did, maybe I was missing a step:

/usr/lbin/sysadm/system_prep -s system
kmtune -q shmmax
kmtune -s shmmax=407407080
kmtune -q shmmax
/usr/lbin/sysadm/system_prep -s system
mk_kernel -s system
kmupdate

(I backed up system and vmunix first though as well)

Also, here is the output of the check_patches:

============================ swconfig(1M) version ============================

* Determining if the version of the swconfig(1m) command present on
* the system can fully support enforced dependencies on patches.

The version of swconfig(1M) on the system fully supports enforced
patch dependencies.

============================== Invalid Patches ===============================

* Determining if any HP-UX 11.11 patches are missing the SD-UX patch
* attributes required for SD-UX to handle the patches properly. If the
* patch attributes are missing SD-UX does not treat the software as
* patches, which can lead to unexpected results.

No invalid patches are present.

=========================== Object Module Checksums ==========================

* Determining if the checksum values of the object modules delivered in
* the currently active patches match the checksum values of the modules
* in the appropriate library.

All object modules checksum values match.

=========================== Missing Patch Filesets ===========================

* Determining if the active patches have all their applicable filesets
* installed.

All applicable patch filesets for the active patches are present.

============================ Patch Fileset States ============================

* Determining if all patch filesets are in the configured state.

All patch filesets are in the configured state.

================================ Patch_States ================================

* Determining if all patch_state attributes are correct.

All patch filesets are in the correct patch_state.

========================= Swverify on Patch Filesets =========================

The swverify(1M) command found no problems with the patch filesets.

Sundar_7
Honored Contributor
Solution

Re: Can't rebuild kernel... exit -71 error

nah, I dont like the way you do system_prep twice :-)

# cd /stand/build
# rm -rf *
# /usr/lbin/sysadm/system_prep -s system
# kmtune -s shmmax=whatever -S system
# mk_kernel -s system
# kmupdate
# mv /stand/system /stand/system.prev
# cp -p system /stand
# cd /
# /usr/sbin/shutdown -r -y 0
Learn What to do ,How to do and more importantly When to do ?
Coolmar
Esteemed Contributor

Re: Can't rebuild kernel... exit -71 error

Thanks! I will have to try that tonight or tomorrow...afer hours. Hopefully it will work. Otherwise, my only option seems to be to remove that Goldpak as it is the only change since this problem.

S
Sundar_7
Honored Contributor

Re: Can't rebuild kernel... exit -71 error

check_patches didnt report any problem with the patches. That is good. I dont know if removing GoldPak patches will be successful either. Remember, removing the patches also requires rebuilding the kernel.
Learn What to do ,How to do and more importantly When to do ?
Coolmar
Esteemed Contributor

Re: Can't rebuild kernel... exit -71 error

Yeah, that's true...that is the last time the kernel was rebuilt was before the patches were installed.
Sameer_Nirmal
Honored Contributor

Re: Can't rebuild kernel... exit -71 error

Hi,

Do you see any messages while kernel rebuild given by "/usr/sbin/config"?
Is it just giving exit code -71 while you try using SAM or command line?

I guess the "config" might be giving "Unexpected symbol" or "Unresolved symbol".
If the reported symbol belongs to core hpux module or other mandatory modules then unless the symbol is satisfied , kernel generation won't work. This will happen for any kernel parameter you try to change.

One of the probable causes could be a missing file in /usr/conf directory maybe a header file is of size "zero" etc.


Coolmar
Esteemed Contributor

Re: Can't rebuild kernel... exit -71 error

Thanks Sundar! Your manual instructions were perfect. It worked!!