Operating System - HP-UX
1838241 Members
3610 Online
110125 Solutions
New Discussion

The kernel discovery tool used by SAM failed

 
yyghp
Super Advisor

The kernel discovery tool used by SAM failed

When I took a look at the "Kernel Configuration" with SAM, I saw 4 options:
Configurable Parameters,
Drivers,
Dump Devices,
Subsystems
However, I couldn't get into any of them, I got an error message box when I chose one of them:

Internal error: The kernel discovery tool used by SAM failed.
Kernel changes cannot be made by SAM. The standard error output of
the command is shown below:

getkinfo: Syntax error in system file.
Incorrect swap statement(s): swap

The swap statement shown above is not valid for one of the following reasons: There are too many swap statements in the system file (at most one is allowed); there are too few parameters after the "swap" keyword (must be at least one); an invalid hard partition number is given (must be an integer between 0 and 15). Refer to the SAM logfile for more information.

getkinfo: Unable to read the kernel file "/stand/vmunix".


Why? and how to solve this problem ?
Thanks !

9 REPLIES 9
Paul Sperry
Honored Contributor

Re: The kernel discovery tool used by SAM failed

Look in /stand there should be a file called
vmunix. If not, restore it immediately .
If you dont have a backup try using vmunix.prev
cp vmunix.prev vmunix

Good luck

yyghp
Super Advisor

Re: The kernel discovery tool used by SAM failed

here are files under /stand:

-rw-r--r-- 1 root sys 20 Jun 19 2003 bootconf
drwxr-xr-x 4 root sys 2048 Jun 24 2003 build
drwxr-xr-x 5 root sys 1024 Jun 24 2003 dlkm
drwxr-xr-x 5 root sys 1024 Jun 24 2003 dlkm.vmunix.prev
-rw-rw-rw- 1 root sys 2972 Apr 21 11:11 ioconfig
-r--r--r-- 1 root sys 82 Jun 19 2003 kernrel
drwxr-xr-x 2 root sys 1024 Apr 21 11:11 krs
drwxr-xr-x 2 root root 1024 Aug 21 2003 krs_lkg
drwxr-xr-x 2 root root 1024 Apr 21 11:11 krs_tmp
drwxr-xr-x 2 root root 65536 Jun 19 2003 lost+found
-rw------- 1 root root 12 Aug 21 2003 rootconf
-rw-r--r-- 1 root sys 1572 Jun 24 2003 system
drwxr-xr-x 2 root sys 1024 Jun 19 2003 system.d
-rw-r--r-- 1 root sys 1572 Jun 24 2003 system.prev
-rwxr-xr-x 1 root sys 26750202 Jun 24 2003 vmunix
-rwxr-xr-x 1 root sys 26753994 Jun 24 2003 vmunix.prev

It seemed the kenel hadn't been changed since last June...
Any risk to replace vmunix with vmunix.prev ?

Thanks!
Juergen Tappe
Valued Contributor

Re: The kernel discovery tool used by SAM failed

Try to check the content of /stand/system

Is ther a line with a swap entry.
(the maxswapchunks line id OK)

if so :
copy /stand/system to i.e. /tmp and remove the corrspondig line(s) using vi.

retry the sam again.

If it does not work, recover /stand/system from the copy, and ask for other help :)
Working together
Pete Randall
Outstanding Contributor

Re: The kernel discovery tool used by SAM failed

I'm not sure it will help, but there's certainly no risk in using vmunix.prev. Just move the current one aside (mv /stand/vmunix /stand/vmunix.old), then rename the previous one (mv /stand/vmunix.prev /stand/vmunix). Do the same thing with the system files (mv /stand/system /stand/system.old and mv /stand/system.prev /stand/system).


Pete

Pete
sinhass
Regular Advisor

Re: The kernel discovery tool used by SAM failed

Hi I would check the existence of /stand/system & /stand/vmunix. if not present I would try to create from running system_prep -v -s /stand/system and mk_kernel from the current settings .

-sinhass
Sanjay_6
Honored Contributor

Re: The kernel discovery tool used by SAM failed

Hi,

Try this link,

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

The itrc doc id is 2200228339.

Check the size of the files
/usr/conf/lib/libhp-ux.a
/usr/conf/lib/libstream.a
from another system and if possible take a backup of these two files on the system you are having problem and copy from another working system. Make sure the Two OS's are same 11.0/10.20 ..

Then try the kernel configuration again.

Hope this helps.

Regds

yyghp
Super Advisor

Re: The kernel discovery tool used by SAM failed


Hi Juergen,

in /stand/system, only the line "maxswapchunks" contains "swap".

hi sinhass,

-rw-r--r-- 1 root sys 1572 Jun 24 2003 system
drwxr-xr-x 2 root sys 1024 Jun 19 2003 system.d
-rw-r--r-- 1 root sys 1572 Jun 24 2003 system.prev
-rwxr-xr-x 1 root sys 26750202 Jun 24 2003 vmunix
-rwxr-xr-x 1 root sys 26753994 Jun 24 2003 vmunix.prev

system & vmunix are there...


Hi Sanjay,

same size, both.
sinhass
Regular Advisor

Re: The kernel discovery tool used by SAM failed

Hi,

I feel that I would rename the system file and try to catch current configuration with system_prep command. Also I would try to build a new kernel with cutrrently running systems before doing anything.

-sinhass