hacmp application startscript issue


 
Thread Tools Search this Thread
Operating Systems AIX hacmp application startscript issue
Prev   Next
# 1  
Old 08-19-2011
hacmp application startscript issue

Hi,

I am setting up a hacmp oracle cluster with 2 resource groups - one on each node.
Binaries are local - so is configuration but its the same on both nodes - so are the startscripts.

If I start the cluster, each DB comes up nicely on its homenode.

Now I have the problem that when I failover my resourcegroups, IP and filesystems come up properly but the DBs only sometimes. In most cases I can start the DBs with their corresponding startscripts, sometimes only the listener comes up.
Same result when I fail the DBs back to their own homenode - they sometimes come up, sometimes only the listener, sometimes nothing.

Manually executed on both nodes both startscripts are working just fine.

We run AIX 6.1 ML10 + hacmp 6.1.6

Anyone any idea ?

Regards
zxmaus
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Writing a Startscript

I hope I have found the perfect place for my problem ... I have a dedicated server with some minecraftservers (java) which are connected via a Bungeecord on it. These all have a start.sh which looks in its folder like this: screen -A -m -d -S SERVERNAME java -jar -Xmx2048M -Xms2048M... (10 Replies)
Discussion started by: Spongebob
10 Replies

2. AIX

Help with HACMP

Hi. We have a two node HA cluster. We got a request to change one of the VG name? Is there an option to do this online ? If it requires downtime can someone please explain me the steps for doing it ? Let me know if you need any outputs from the servers (1 Reply)
Discussion started by: newtoaixos
1 Replies

3. AIX

HACMP

Does anyone has idea about, what is the ibm standard HACMP trip interval? We have 20 second. lssrc -ls topsvcs Subsystem Group PID Status topsvcs topsvcs 1843200 active Network Name Indx Defd Mbrs St Adapter ID Group ID HB Interval =... (7 Replies)
Discussion started by: allwin
7 Replies

4. AIX

HACMP - RG move issue.

Hello Everyone, Hope you all doing well. I have configured a powerHA with 2 RG. Whenever am moving a RG to the 2 node, the 2 node becoming unavailable. But its working fine in the console also cluster not having any issues. Once i ran the tcp/ip configuration via smitty , the node... (9 Replies)
Discussion started by: gowthamakanthan
9 Replies

5. AIX

Service IP issue in HACMP, Working with only one node

Hi, I have a running HACMP Cluster with two nodes. Its working in active/passive mode. (i.e Out of the two nodes in the cluster one will be active and the other one will be on standby. If first node fails the other takes over) 1. There is a Service IP associated with the cluster. Now the... (2 Replies)
Discussion started by: aixromeo
2 Replies

6. AIX

HACMP does not start db2 after failover (db2nodes not getting modified by hacmp)

hi, when I do a failover, hacmp always starts db2 but recently it fails to start db2..noticed the issue is db2nodes.cfg is not modified by hacmp and is still showing primary node..manually changed the node name to secondary after which db2 started immediately..unable to figure out why hacmp is... (4 Replies)
Discussion started by: gkr747
4 Replies

7. Solaris

PID / Startscript

Hi, I have a startscript on solaris 10 which does not work properly. #!/sbin/sh PIDFILE=/opt/app_y/PID.log case $1 in 'start') /usr/local/bin/app_y -C /opt/app_y/local.cfg echo $! > $PIDFILE ;; esac exit $? The problem is that the PIDFILE is empty.... (3 Replies)
Discussion started by: victorinox
3 Replies

8. UNIX for Dummies Questions & Answers

How to issue a new application to a specific processor?

We can use "pbind" to bind a process to a specific processor. But it requires the id of the process to be binded, meaning we have to do the binding after starting that process. So how can we bind a process to a specific processor while we start that process. Say we are working on a Sun's... (3 Replies)
Discussion started by: ubcedison
3 Replies

9. HP-UX

HACMP in HP-UX

Hi, Can anybody advice whether it is possible to configure HACMP in HP-UX Server. To my knowledge HACMP is IBM Solution. Thanks && Regards, N. Poorna Chandra Rao. (2 Replies)
Discussion started by: npcrao
2 Replies

10. AIX

Issue while installing a Application on AIX

All, I am trying to install a application called Microstrategy on AIX 5.1 box.This is the first time I am working on AIX.The installation fails after some 10% complete.Given below is the text from the installation log file.Do any one of you have any idea what might be the problem? (Jan 19,... (8 Replies)
Discussion started by: apu78
8 Replies
Login or Register to Ask a Question
scha_cluster_get(1HA)					       Sun Cluster Commands					     scha_cluster_get(1HA)

NAME
scha_cluster_get - access cluster information SYNOPSIS
scha_cluster_get -O optag [args] DESCRIPTION
The scha_cluster_get command accesses and generates information about a cluster. You can access information about the cluster, nodes, zones, host names, resource groups, resource types, and states. The command is intended for use in shell script implementations of callback methods for resource types. These callback methods for resource types represent services that are controlled by the cluster's Resource Group Manager (RGM). This command provides the same information as the scha_resource_get() function. This command sends output to the standard output (stdout) in formatted strings on separate lines, as described in the scha_cmds(1HA) man page. You can store the output in shell variables. You can also parse the output with shell commands such as the awk command. OPTIONS
The following options are supported: -O optag The optag argument indicates the information to be accessed. Depending on the optag, an additional argument may be needed to indicate the cluster node or zone for which information is to be retrieved. Note - optag options, such as NODENAME_LOCAL and NODENAME_NODEID, are not case sensitive. You can use any combination of uppercase and lowercase letters when you specify optag options. The following optag values are supported: ALL_NODEIDS Generates on successive lines the numeric node identifiers of all nodes in the cluster. ALL_NODENAMES Generates on successive lines the names of all nodes in the cluster. ALL_NONGLOBAL_ZONES Generates on successive lines the nodename:zonename string of all the non-global zones on all nodes in the cluster. ALL_NONGLOBAL_ZONES_NODEID Generates on successive lines the nodename:zonename string of all non-global zones on the cluster node whose numeric node identifier is given as the argument. ALL_PRIVATELINK_HOSTNAMES Generates on successive lines the host names by which all cluster nodes are addressed on the cluster interconnect. ALL_RESOURCEGROUPS Generates on successive lines the names of all the resource groups that are being managed in the cluster. ALL_RESOURCETYPES Generates on successive lines the names of all the resource types that are registered in the cluster. ALL_ZONES Generates on successive lines the nodename:zonename string of all zones, including the global zone, on all nodes in the cluster. ALL_ZONES_NODEID Generates on successive lines the nodename:zonename string of all zones, including the global zone, on the cluster node whose numeric node identifier is given as the argument. CLUSTERNAME Generates the name of the cluster. NODEID_LOCAL Generates the numeric node identifier for the node where the command is executed. NODEID_NODENAME Generates the numeric node identifier of the node indicated by the name. Requires an additional unflagged argument that is the name of a cluster node. NODENAME_LOCAL Generates the name of the cluster node where the command is executed. NODENAME_NODEID Generates the name of the cluster node indicated by the numeric identifier. Requires an additional unflagged argu- ment that is a numeric cluster node identifier. NODESTATE_LOCAL Generates UP or DOWN depending on the state of the node where the command is executed. NODESTATE_NODE Generates UP or DOWN depending on the state of the named node. Requires an additional unflagged argument that is the name of a cluster node. PRIVATELINK_HOSTNAME_LOCAL Generates the host name by which the node on which the command is run is addressed over the cluster interconnect. PRIVATELINK_HOSTNAME_NODE Generates the host name by which the named node is addressed on the cluster interconnect. Requires an additional unflagged argument that is the name of a cluster node. SYSLOG_FACILITY Generates the number of the syslog(3C) facility that the RGM uses for log messages. The value is 24, which corre- sponds to the daemon facility. You can use this value as the facility level in the logger(1) command to log mes- sages in the cluster log. ZONE_LOCAL Generates the name of the zone from which the command is issued. The format of the zone name that is returned is nodename:zonename. EXAMPLES
Example 1 Using the scha_cluster Command in a Shell Script The following shell script uses the scha_cluster command to print whether each cluster node is up or down: #!/bin/sh nodenames=`scha_cluster_get -O All_Nodenames` for node in $nodenames do state=`scha_cluster_get -O NodeState_Node $node` printf "State of node: %sexit: %dvalue: %s0 "$node" $? "$state" done EXIT STATUS
The following exit status codes are returned: 0 Successful completion. nonzero An error occurred. Error codes are described in scha_calls(3HA). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscdev | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ SEE ALSO
awk(1), logger(1), sh(1), scha_cmds(1HA), syslog(3C), scha_calls(3HA), scha_cluster_get(3HA), attributes(5) Sun Cluster 3.2 6 Sep 2006 scha_cluster_get(1HA)