1844920 Members
1435 Online
110233 Solutions
New Discussion

SAM giving error

 
SOLVED
Go to solution
Rajesh R_2
Frequent Advisor

SAM giving error

Hi,

On my development server running HP-UX 11.0 when I start SAM and select the volume group it gives the following messages:

While loading a file, SAM detected an unknown syntax error. This
could be caused by a number of strange occurrences. It is best to
remove the file and attempt the operation again. The error occurred
in the file "(filename unknown)" on or before line number 2110.


Internal error: Cannot initialize kernel configuration data
structures. Make sure /var/sam exists on this system as a directory
that can be read by root. Perhaps SAM has not been properly
installed on this system.


can anybody help me regarding this error.

Thanks & Regards
Rajesh
9 REPLIES 9
Rajesh SB
Esteemed Contributor

Re: SAM giving error

Hi Rajesh,

Just go through the samlog using
/usr/sam/bin/samlog_viewer.

Share for any error/strange messages.

Regards,
Rajesh SB
Rajesh R_2
Frequent Advisor

Re: SAM giving error

Hi,

The samlog also shows the following error:

ERROR Internal error in initializing kernel configuration data
structures. Make sure /var/sam exists on the system as a
directory that can be read by root.
ERROR Internal error: Cannot initialize kernel configuration data
structures. Make sure /var/sam exists on this system as a
directory that can be read by root. Perhaps SAM has not been
properly installed on this system.

Regards
Rajesh
Peter Nikitka
Honored Contributor

Re: SAM giving error

Hi,
did you check, if
/var/sam exists like the error messages told you?

Did you create that directory or is anything wrong with it (try to create a file there)?

Otherwise check for SAM/Obam patches.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Rajesh R_2
Frequent Advisor

Re: SAM giving error

Hi,

The directory /var/sam exists. I could create a file there.

Regards
Rajesh
Rajesh SB
Esteemed Contributor

Re: SAM giving error

Hi,

Verify following things.

1. Check for /var/sam directory.
2. Run # swlist -l product SystemAdmin.SAM
3. Run
# swverify SystemAdmin.SAM
Observe for any error pertaining to SAM.
Verify the following log files
/var/adm/sw/swverify.log
/var/adm/sw/swagent.log for error on SAM.
4. Run # swlist -l product |grep -i sam
Observe for following any patches
PHCO_17792 1.0 cumulative SAM/ObAM patch
PHCO_22269 1.0 cumulative SAM/ObAM patch

Good luck.

Regards,
Rajesh
Rajesh R_2
Frequent Advisor

Re: SAM giving error

Hi,

1. /var/sam directory exists
2. swlist -l product SystemAdmin.SAM gives the following error
ERROR: There is a level/software mismatch. You have asked to see the
"product" view of "SystemAdmin.SAM" a fileset. Views of
software start at the level of the software given and descend
in the software tree.
swverify SystemAdmin.SAM

3. swverify SystemAdmin.SAM gives error
WARNING: "hpdev:/": 6 files had warnings during this operation.
ERROR: "hpdev:/": 1 files had errors during this operation.
* The analysis phase failed for "hpdev:/".
* Verification had errors.

4.swlist -l product |grep -i sam
PHCO_17792 1.0 cumulative SAM/ObAM patch
PHCO_21187 1.0 cumulative SAM/ObAM patch
PHCO_23876 1.0 cumulative SAM/ObAM patch
PHCO_27375 1.0 cumulative SAM/ObAM patch
PHSS_20149 1.0 SAM Kernel Tunable Parameter Sets

regards
Rajesh
Rajesh SB
Esteemed Contributor
Solution

Re: SAM giving error

Hi Rajesh,

First you check for any lock files existence.

# ll /var/sam/lock/*
if exists delete
rm -f /var/sam/lock/*

It is better to try with reboot once see.
While boot time below SAM related rc script will run

# /sbin/init.d/spa start


Yes, I agree you have run command
# swlist -l fileset SystemAdmin.SAM

Did you verify for error reported by swverify?
share the error in log files
/var/adm/sw/swverify.log
/var/adm/sw/swagent.log for SAM.


Regards,
Rajesh
Rajesh R_2
Frequent Advisor

Re: SAM giving error

Hi,

There are no lock files. I am hereby attaching the swverify.log.

There is no error message in swagent.log

Regards
Rajesh
Rajesh R_2
Frequent Advisor

Re: SAM giving error

Hi,

The problem is resolved. I had to increase the /var filesystem and reboot the machine. There was not enough space in /var.

Thanks to everyone for the help.

Regards
Rajesh