Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to know which EVENT failed on powerha?

Posted on 2014-04-09
2
Medium Priority
?
762 Views
Last Modified: 2014-04-09
Hi,

I know hacmp.out is the principal way to determine errors on powerHA but sometimes it's tricky to take a look at it... so, I'd like to know in which powerHA's EVENT was the error.. let's see it with a example:
After moving the RG to a new node, cluster went to  ERROR state, So I want to know why.

So, if I take a look at the log file /var/hacmp/adm/cluster.log I see this:

Apr  8 17:54:03 node2 user:notice HACMP for AIX: EVENT START: node_up node2
Apr  8 17:54:04 node2 user:notice HACMP for AIX: EVENT COMPLETED: node_up node2 0
Apr  8 17:54:06 node2 user:notice HACMP for AIX: EVENT START: node_up_complete node2
Apr  8 17:54:06 node2 user:notice HACMP for AIX: EVENT COMPLETED: node_up_complete node2 0
Apr  8 17:58:31 node2 user:notice HACMP for AIX: EVENT START: site_up siter37
Apr  8 17:58:31 node2 user:notice HACMP for AIX: EVENT START: site_up_remote siter37
Apr  8 17:58:31 node2 user:notice HACMP for AIX: EVENT COMPLETED: site_up_remote siter37 0
Apr  8 17:58:31 node2 user:notice HACMP for AIX: EVENT COMPLETED: site_up siter37 0
Apr  8 17:58:33 node2 user:notice HACMP for AIX: EVENT START: node_up node3 manual
Apr  8 17:58:33 node2 user:notice HACMP for AIX: EVENT COMPLETED: node_up node3 manual 0
Apr  8 17:58:36 node2 user:notice HACMP for AIX: EVENT START: node_up_complete node3
Apr  8 17:58:36 node2 user:notice HACMP for AIX: EVENT COMPLETED: node_up_complete node3 0
Apr  8 17:58:36 node2 user:notice HACMP for AIX: EVENT START: site_up_complete siter37
Apr  8 17:58:36 node2 user:notice HACMP for AIX: EVENT START: site_up_remote_complete siter37
Apr  8 17:58:36 node2 user:notice HACMP for AIX: EVENT COMPLETED: site_up_remote_complete siter37 0
Apr  8 17:58:37 node2 user:notice HACMP for AIX: EVENT COMPLETED: site_up_complete siter37 0
Apr  8 17:59:08 node2 user:notice HACMP for AIX: EVENT START: external_resource_state_change node3
Apr  8 17:59:08 node2 user:notice HACMP for AIX: EVENT COMPLETED: external_resource_state_change node3 0
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT START: rg_move_fence node3 1
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT COMPLETED: rg_move_fence node3 1 0
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT START: rg_move_acquire node3 1
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT START: rg_move node3 1 ACQUIRE
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT COMPLETED: rg_move node3 1 ACQUIRE 0
Apr  8 17:59:09 node2 user:notice HACMP for AIX: EVENT COMPLETED: rg_move_acquire node3 1 0

Open in new window


As these are EVENTs from powerHA, I wanted to know if the last number of every line is the STATUS ERROR from those EVENTs, because knowing this status I will be able to know which EVENT failed...

What's your opinion on this?

Thanks.
0
Comment
Question by:sminfo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 39988288
Hi again,

cluster.log will show "EVENT FAILED" for ... failed events, so there should be no need to rely on status codes.

The last number in an "EVENT COMPLETED" or "EVENT FAILED"  line actually indicates the status, by the way.

hacmp.out, on the other hand, should contain the string "!!!!!!!!!! ERROR !!!!!!!!!!" near the place of a failure.

wmp
0
 

Author Closing Comment

by:sminfo
ID: 39988320
Hi WMP.... very interesting

So with a grep to "!!!!!!!!!! ERROR !!!!!!!!!!"  I can see the error...

Thanks!!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question