- 论坛徽章:
- 0
|
hpux中/etc/opt/resmon/lbin/registrar这个干什么??
RESOLUTION
The problem is that the diagnostics is in a defunct state. Need to stop EMS and Diagnostics, kill the processes associated with them and then restart everything clean.
Stop EMS:
/etc/opt/resmon/lbin/monconfig and stop EMS
Stop the p_client process:
Edit the /etc/initab and comment out the line "ems4:3456:respawn:/etc/opt/resmon/lbin/p_client" and then run "init q" to have the system re-read the inittab.
Stop Diagnostics:
/sbin/init.d/diagnostic stop
Kill the following processes if they are running (a kill -9 may have to be
used):
/etc/opt/resmon/lbin/registrar
/usr/sbin/stm/uut/bin/sys/diagmond
/etc/opt/resmon/lbin/p_client
cclogd
memlogd
psmctd
diaglogd
Kill all the EMS monitiors. Get a list of them by running ps -ef|grep stm
#(root) / # ps -ef|grep stm
root 22800 1 0 11:34:05 ? /usr/sbin/stm/uut/bin/tools/monitor/lpmc_em
root 22531 1 0 11:33:49 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_TL_adapter
root 22695 1 0 11:33:59 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_ses_enclosure
root 22488 1 0 11:33:46 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_FCMS_adapter
root 22624 1 0 11:33:54 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_core_hw
root 22675 1 0 11:33:58 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_memory
root 22733 1 0 11:34:02 ? /usr/sbin/stm/uut/bin/tools/monitor/dm_stape
root 22841 1 0 11:34:06 ? /usr/sbin/stm/uut/bin/tools/monitor/sysstat_em
Move the m.* files from the /etc/opt/resmon/persistence to a temp location:
mv /etc/opt/resmon/persistence/m* /tmp/persistence
Restart diagnostics:
/sbin/init.d/diagnostic start
After starting diagnostics, run ps -ef|grep 'Process ID of diagmond' and the
cclogd, memlogd, and diaglogd should have the PPID of the diagmond.
#(root) / # ps -ef|grep 23178
root 23812 23718 0 12:09:32 ? 0:00 cclogd
root 23718 1 0 12:08:45 ? 0:00 /usr/sbin/stm/uut/bin/sys/diagmond
root 23814 23718 0 12:09:32 ? 0:00 memlogd
root 23813 23718 0 12:09:32 ? 0:00 diaglogd
Edit the /etc/inittab and
uncomment "ems4:3456:respawn:/etc/opt/resmon/lbin/p_client" and re-read the
inittab by running "init q" . This will cause the p_client process to
spawn.
Start EMS:
/etc/opt/resmon/lbin/monconfig and start EMS using "E" option.
Starting EMS will start the registrar, psmctd, and all the monitiors
processes. The monitiors should have the PPID of the registrar process. Run:
ps -ef|grep 'Process ID of the registrar process' |
|