1834187 Members
2727 Online
110064 Solutions
New Discussion

Re: kernel error

 
Asya
Regular Advisor

kernel error

Hi everyone,

There seems to be a problem either with the forum or my login..but my search doesn't really work. I am sorry if this question was asked before...

I was installing patches for ipv6, but keep getting an error message while trying to rebuild kernel:

bash-2.05a# /usr/sbin/mk_kernel
WARNING: No such device, tunable, or cdio maxssize_64bit.
Ignoring the following line.
maxssize_64bit 83888608
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...
Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file
*** Error exit code 1

Stop.
config: make did an exit(1)


bstab exists...
bash-2.05a# which bstab
/usr/sbin/bstab

it's size is the same as it is on other servers where same patches worked fine.

What could be the reason?

Thank you!
Asya

15 REPLIES 15
Steven E. Protter
Exalted Contributor

Re: kernel error

Shalom Asya,

Rule number 1 of HP-UX administration.

NEVER change the root shell. Also don't do systems administration work in the bash shell.

Rule number 2 of HP-UX administration.

If you think you still want to change the root shell, re-read rule #1.

These utilties were designed to work with the posix/korn shell. Not bash.

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
Asya
Regular Advisor

Re: kernel error

Hi Steve,

Thank you...

well, i was getting this error while doing it with swinstall. I just saw the command there and tried to do it with sh -x to see what exactly was happening.

Exactly same error message i get in swinstall.

Thank you.
Asya
Regular Advisor

Re: kernel error

btw, same error message in ksh..
A. Clay Stephenson
Acclaimed Contributor

Re: kernel error

I suspect that you have manually edited the system file.
maxssize_64bit 83888608
should be:
maxssiz_64bit 83888608 and I would bump it up to about 32Mib or so
maxssiz_64bit 0x2000000

If it ain't broke, I can fix that.
Asya
Regular Advisor

Re: kernel error

Hi Steve,

# kmtune |grep -i maxssiz
maxssiz 83888608 - 83888608
maxssiz_64bit 0x800000 - 0x00800000
# kmtune |grep -i maxssize
#


All is right it seems. I don't know where it's getting maxsize parameter from...
rajdev
Valued Contributor

Re: kernel error

Hi Asya,

What is your OS version
what is your current kernel 32bit/64bit
can you attach your /stand/system file

Regards,
RD
Asya
Regular Advisor

Re: kernel error

OS: 11.11, 64 bit

Hmm..i see this in /stand/system

maxssize_64bit 83888608


How come it wasn't in kmtune info? Can i manually modify this file?

A. Clay Stephenson
Acclaimed Contributor

Re: kernel error

Yes, you can. In fact I would bet that is how it got there in the first place (as I implied earlier). Use a text editor and simply delete the bogus entry.
If it ain't broke, I can fix that.
Asya
Regular Advisor

Re: kernel error

Thanks..i will try.

No, i never modified that file by hand. At least not me....
Don Morris_1
Honored Contributor

Re: kernel error

Likely someone (or some application) modified the file directly. Yes, you can edit the file to remove that line, then use kmtune to set maxssiz_64bit as it should be done and repeat your mk_kernel.
Asya
Regular Advisor

Re: kernel error

I've modified the file and ran command with ksh..same thing, but no warning. Do i need to do anything else for it to work?

# /usr/sbin/mk_kernel
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...
Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file
*** Error exit code 1

Stop.
config: make did an exit(1)


I didn't do anything with kmtune. I am not sure what to do with kmtune because all parameters were correct when looking at them through kmtune. Hope i'm making sense..

Thanks
Asya
Regular Advisor

Re: kernel error

FYI..

* Installing fileset "PPP-UPGRADE.P-PPP-RUN,r=B.04.01" (49 of
56).
NOTE: Building a new kernel based on template file "/stand/system"
WARNING: No such device, tunable, or cdio maxssize_64bit.
Ignoring the following line.
maxssize_64bit 83888608
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
Generating kernel symbol table...
Usage: bstab input_data symbol_cnt strtbl_size kernel_file output_file
*** Error exit code 1

Stop.
make failure.
ERROR: The command "/usr/sbin/mk_kernel", which is used to rebuild
the kernel, has failed. Because kernel-related filesets were
installed, this command must be executed by "swinstall",
without failures, before the load can continue. Check the
above output for details about the failure.
NOTE: The Install Phase has suspended. Check the above output for
reasons.


I tried to do full reinstall...
Asya
Regular Advisor

Re: kernel error

Clay,

I am sorry I called you Steve...
Asya
Regular Advisor

Re: kernel error

oops...I made an old copy/paste. What was I trying to say..is that old WARNING disappeared...and the kmtune parameter.

Sorry for the confusion.
Asya
Regular Advisor

Re: kernel error

Sorry one more thing..

It seems that incorrect entry in /stand/system appears after installation of that particular fileset.

I modified the file, but after the install, incorrect entry is again there....