Operating System - HP-UX
1846449 Members
2445 Online
110256 Solutions
New Discussion

Problems accessing psm_data

 
SOLVED
Go to solution
Matt Hearn
Regular Advisor

Problems accessing psm_data

I can't believe no one has seen this before, but my searches have turned up NOTHING in the forums!

set_fixed -L is returning the following error:

set_fixed: Cannot list resources in DOWN state due to problems accessing or reading the PSM Resource Data File /var/stm/data/psm_data.

I've tried stopping and starting /sbin/init.d/diagnostic, with no effect other than changing the error (before the restart it was saying "/etc/opt/resmon/lbin/set_fixed: Cannot list resources in DOWN state due to system resource problems").

I checked the actual file, and it's there:

root#> ll /var/stm/data/psm_data
-rw-r--r-- 1 root root 646980 Oct 1 06:23 /var/stm/data/psm_data

I'm not sure what's wrong with it that set_fixed can't read it, but I'm loathe to just go wiping it out without knowing the consequences.

Thanks!
1 REPLY 1
Andrew Merritt_2
Honored Contributor
Solution

Re: Problems accessing psm_data

Hi Matt,
What version of EMS OnlineDiags do you have? When did the problem start? If you have an old version, you should consider installing a current one. See http://www.docs.hp.com/en/diag/stm/stm_upd.htm#table for the supported versions.

The problem has been seen if the psm_data file becomes corrupt for some reason. It can be recreated by the following steps:

# /etc/opt/resmon/lbin/monconfig
select (K)ill (disable) monitoring

# /sbin/init.d/diagnostic stop
which stops the diagnostics daemons.

The diaglogd, diagmond and psmctd processes should now be gone. If psmctd
is still running, use "kill -9" to stop it.

Move the psm_data file.

# mv /var/stm/data/psm_data /tmp/psm_data

# /sbin/init.d/diagnostic start

Restart the diagnostic daemons. Ensure that both diaglogd and diagmond are running before proceeding with the next step.

# ps -ef | grep diag

Restart EMS monitoring

# /etc/opt/resmon/lbin/monconfig
select (E)nable Monitoring


It takes a while for the psm_data file to be rebuilt. During that time set_fixed will report this error:

# set_fixed -l
set_fixed: Cannot list resources in DOWN state as PSM Resource Data
File
/var/stm/data/psm_data does not exist.

Once the psm_data file is recreated, set_fixed should be able to recognize all
existing resources and set them back to UP if they are DOWN.

Andrew