1845317 Members
3902 Online
110244 Solutions
New Discussion

Kernel changes using SAM

 
SOLVED
Go to solution
Ian Warner
Trusted Contributor

Kernel changes using SAM

Running 11i, and trying to change the flocks parameter.
I get the following error
Cannot build a kernel using /usr/sbin/config. The standard output of
the command is shown below:

Stop.
config: make did an exit(1)

The command exitted with exitcode -71.

Any ideas/comments on what is going wrong?

Ian Warner
Why did anyone invent unix?
60 REPLIES 60
Robert-Jan Goossens
Honored Contributor

Re: Kernel changes using SAM

Hi Ian,

Try the latest sam patch.

http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_31312

Hope this helps,
Robert-Jan
Eric Antunes
Honored Contributor

Re: Kernel changes using SAM

Hi Ian,

Can you post here the result of:

#bdf

And do you have PHCO_28123 installed?

Best Regards,

Eric Antunes


Each and every day is a good day to learn.
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

Are there no futher clues in the SAM log?
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

I have patches
PHCO_30275 -> 1.0 ugm cumulative patch
PHCO_31312 -> 1.0 cumulative SAM patch

The result of the ddf is
bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 141288 63176 69% /
/dev/vg00/lvol1 295024 93584 171936 35% /stand
/dev/vg00/lvol8 2097152 1007248 1089904 48% /var
/dev/vg00/lvol7 3145728 1291200 1840104 41% /usr
/dev/vg00/lvol4 3145728 238632 2884432 8% /tmp
/dev/vg00/lvol6 5242880 3463728 1765280 66% /opt
/dev/vg00/lvol5 512000 293184 217488 57% /home
/dev/vg00/emacs 7168000 3171109 3747149 46% /emacs
/dev/vg00/backup 7168000 5048 6717443 0% /backup


The sam log is as follows
* Building a kernel from the description in
/stand/build/system.SAM.
* Executing the following command:
cd /stand/build; /usr/sbin/config -c conf.SAM.c -l \
config.SAM.mk /stand/build/system.SAM
* Command completed with exit status 1.
ERROR Mon Dec 22 13:16:34 2003 Failed at creating a new kernel.
ERROR Cannot build a kernel using /usr/sbin/config. The standard
output of the command is shown below:
Stop.
config: make did an exit(1)
The command exitted with exitcode -71.
* Executing the following command:
/usr/sam/bin/samlog_viewer -Z5300
* Command completed with exit status 2139044472.
* Checking to see if kernel regen is required
Why did anyone invent unix?
Steven E. Protter
Exalted Contributor

Re: Kernel changes using SAM

Lets eliminate the kernel as a problem.

Try doing the kernel command line.

#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

I think you will still get the error, but now you will know where to look.

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
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

What happens if you try and rebuild the kernel yourself, without using SAM.

cd /stand/build

/usr/sbin/config -c conf.SAM.c -l \ config.SAM.mk /stand/build/system.SAM

It may be that SAM is losing some interesting output?
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

sh /stand/build=> -l \ config.SAM.mk /stand/build/system.SAM <
Generating module: krm...
Loading the kernel...
ld: Unsatisfied symbol "st_san_safe" in file /usr/conf/lib/libio.a[mt_prop.o]
ld: Unsatisfied symbol "bcvmap_size_factor" in file /usr/conf/lib/libfs-pdk.a[uf
s_mchdep.o]
2 errors.
*** Error exit code 1

Stop.
config: make did an exit(1)
Why did anyone invent unix?
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

That's better, some clue as to what is wrong. Have you read

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?admit=716493758+1105366766568+28353475&threadId=496090

It looks similar to your problem.
Eric Antunes
Honored Contributor

Re: Kernel changes using SAM

Hi,

Check also this thread about this specifics 11i parameters:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=720920
Each and every day is a good day to learn.
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

You may need PHKL_29899

if /usr/conf/master.d/stape (an ascii) file contains st_ats_safe instead of st_san_safe. You can grep it to check.
Florian Heigl (new acc)
Honored Contributor

Re: Kernel changes using SAM

Maybe remove/add the stape driver from /stand/system and see if the unresolved symbol dissapears.
yesterday I stood at the edge. Today I'm one step ahead.
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

All the info seemed to point to bad/missing patches. The system is now patched up to the eyeballs, HP patch assesment says all patches are installed and I get exactly the same error!!

The bad patches mentioned are not on the system (as far as I can tell), so.... any ideas?

Ian Warner
Why did anyone invent unix?
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

Does /usr/conf/master.d/stape file contain st_ats_safe instead of
st_san_safe ?

Robert-Jan Goossens
Honored Contributor

Re: Kernel changes using SAM

Ian,

Check this doc.

Document description: SAM internal error when entering 'Configurable Parameters'
Document id: USAMKBRC00011138

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

Regards,
Robert-Jan
Eric Antunes
Honored Contributor

Re: Kernel changes using SAM

And how about space in /stand logical volume?

Please post here the output of the bdf command...

Best Regards,

Eric Antunes


Each and every day is a good day to learn.
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

/usr/conf/master.d/stape contains st_san_safe
Why did anyone invent unix?
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

Just to be clear, if you try and rebuild the kernel using SAM you get the problem, but when you installed patches (specifically PHKL types) that rebuild the kernel, you didn't get a error?
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

ouput of the bdf is
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol1 295024 121384 144136 46% /stand


If i cd /stand/build, then
/usr/sbin/config -c conf.SAM.c -l \ config.SAM.mk /stand/build/system.SAM

i still get
Generating module: krm...
Loading the kernel...
ld: Unsatisfied symbol "st_san_safe" in file /usr/conf/lib/libio.a[mt_prop.o]
ld: Unsatisfied symbol "bcvmap_size_factor" in file /usr/conf/lib/libfs-pdk.a[uf
s_mchdep.o]
2 errors.
*** Error exit code 1

So nothing seems to have changed!!!!

Ian
Why did anyone invent unix?
Eric Antunes
Honored Contributor

Re: Kernel changes using SAM

Hi,

What value have your st_san_safe parameter? Set it to 0 and try to process the kernel again...
Each and every day is a good day to learn.
Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

Does this make sense?

sh /stand/build=> cat /usr/conf/master.d/stape | grep st_
*range st_ats_enabled>=0
*range st_ats_enabled<=1
*range st_large_recs>=0
*range st_large_recs<=1
*range st_fail_overruns>=0
*range st_fail_overruns<=1
*range st_san_safe>=0
*range st_san_safe<=1
st_ats_enabled ST_ATS_ENABLED 0
st_large_recs ST_LARGE_RECS 0
st_fail_overruns ST_FAIL_OVERRUNS 0
st_san_safe ST_SAN_SAFE 0

Ian
Why did anyone invent unix?
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

Have you tried rebuilding the kernel using SAM, rather than

/usr/sbin/config -c conf.SAM.c -l \ config.SAM.mk /stand/build/system.SAM

Then, if there is still an error, do

/usr/sbin/config -c conf.SAM.c -l \ config.SAM.mk /stand/build/system.SAM



Ian Warner
Trusted Contributor

Re: Kernel changes using SAM

Yup,
tried to build it in SAM, then used the command line to confirm the error(s).
Why did anyone invent unix?
Eric Antunes
Honored Contributor

Re: Kernel changes using SAM

Hi,

Post the output of:

kmtune -lq st_san_safe

kmtune -lq bcvmap_size_factor

Each and every day is a good day to learn.
Stephen Keane
Honored Contributor

Re: Kernel changes using SAM

If you look at /stand/build/config.mk, you should see a line indicating the patch level

e.g.

##@(#) config.sys $Date: 2003/06/13 06:23:05 $Revision: r11.11/7 PATCH_11.11 (PH
KL_29243)


What does yours say?