Hi, find attached a patch for the db2 resource agent - holger High: Replace call to db2_local_ps with db2nps (Thanx to Evgeny Nifontov)
db2nodes.cfg typically contains a cluster service address and db2_local_ps never works in this case. ___________________________________________________________ GRATIS: Spider-Man 1-3 sowie 300 weitere Videos! Jetzt kostenlose Movie-FLAT freischalten! http://movieflat.web.de
# HG changeset patch # User Holger Teutsch <holger.teut...@web.de> # Date 1284623284 -7200 # Node ID c0630dd0be4ac8a286bda8dda1d0f618d5ef0f97 # Parent c8d8b1126ffd66350660479f5e48670b5aeb7423 High: Replace call to db2_local_ps with db2nps (Thanx to Evgeny Nifontov) db2nodes.cfg typically contains a cluster service address and db2_local_ps never works in this case. diff -r c8d8b1126ffd -r c0630dd0be4a heartbeat/db2 --- a/heartbeat/db2 Thu Sep 09 16:19:09 2010 +0200 +++ b/heartbeat/db2 Thu Sep 16 09:48:04 2010 +0200 @@ -123,7 +123,7 @@ db2ctrl=$db2sql/ctrl db2bin=$db2sql/bin db2db2=$db2bin/db2 - db2node=0 # single node instances are supported + db2node=0 # single node instances are supported # Let's make sure a few important things are there... if @@ -256,7 +256,7 @@ # db2_status() { # We ignore the instance, the info we need is already in $vars - pscount=`runasdb2 $db2bin/db2_local_ps | cut -c9- | grep ' db2[^ ]' | wc -l` + pscount=`runasdb2 $db2bin/db2nps $db2node | cut -c9- | grep ' db2[^ ]' | wc -l` test $pscount -ge 4 }
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/