Video Screencast Help

SAPNW04 preonline Warning

Created: 08 Oct 2010 • Updated: 21 Oct 2010 | 4 comments
Herve GREGOIRE's picture

Dear all,

we are clusterising SAP with my customer :

  • AIX 5.3 / VCS 5.1 & patches
  • 2 nodes
  • 2 groups ASCS and ERS.

I did the symbolic link # ln -s /opt/VRTSvcs/bin/SAPNW04/monitor /opt/VRTSvcs/bin/SAPNW04/preonline

I modified the trigger preonline to call the preonline above.

When we try to switch manually (different of fault switch) ERS, it does not went online where ASCS lives (it's normal) but we get this Warning message:

V-16-55009-20250  (prepsr001) SAPNW04:E1QERS:preonline:<SAPNW04::OnlineENQGrp> Missing source node name.

Does anyone knows about it ?

Regards,

Hervé

Comments 4 CommentsJump to latest comment

avsrini's picture

Hi Herve,

 Looks like the arguments passed to preonline / monitor script to check the source node name

on OnlineENQGrp module is missing. Try debugging the variable and argument passed to it.

 

It appears you are trying to configure some sort of group dependency, that one SG should

not online on node where other SG is offline. Instead of trying preonline, try Service Group

dependency (offline local) instead. Refer to VCS User guide for more details on SG dependency.

 

Regards

Srini

Satish K. Pagare's picture

The manual switch would require that you provide the nodename on the command line.

Herve GREGOIRE's picture

reading the SAPNW04 agent guide you will find how to configure this agent.

particular chapter 5, paragraphe "Configuring SAPNW04 preonline script" :

 

# ls -l /opt/VRTSagents/ha/bin/SAPNW04
total 432
-rwxr-xr-x    1 root     system       180943 Nov 24 2009  SAPNW04.pm
-rwxr-xr-x    1 root     system        15031 Nov 24 2009  SAPNW04.xml
lrwxrwxrwx    1 root     system           38 Oct  4 14:14 clean -> /opt/VRTSagents/ha/bin/SAPNW04/monitor
-rwxr-xr-x    1 root     system        19940 Nov 24 2009  monitor
lrwxrwxrwx    1 root     system           38 Oct  4 14:14 offline -> /opt/VRTSagents/ha/bin/SAPNW04/monitor
lrwxrwxrwx    1 root     system           38 Oct  4 14:14 online -> /opt/VRTSagents/ha/bin/SAPNW04/monitor
lrwxrwxrwx    1 root     system            7 Oct  4 14:17 preonline -> monitor

 

I modify on each node too the /opt/VRTSvcs/bin/triggers/preonline:

# cat /opt/VRTSvcs/bin/triggers/preonline

[...]

#-------------------
# Define variables..
#-------------------
my $sCmd = '/opt/VRTSagents/ha/bin/SAPNW04/preonline';
my $sResLogLevel = 'TRACE';                # Define logging level..
my @lsCmdArgs = ( @ARGV, $sResLogLevel ); # Insert logging level..
my $sArgs = join ( ' ', @lsCmdArgs );
my $iExitCode = undef;

#------------------------------------------
# Pass control to preonline, if it exists..
#------------------------------------------
if ( -x $sCmd ) {
  VCSAG_LOG_MSG ("I", "Preonline Cmd [$sCmd] Args [$sArgs]", 15031);
  system ( $sCmd, @lsCmdArgs );

  #-----------------------------
  # Exit if we were successful..
  #-----------------------------
  exit $iExitCode unless ( $iExitCode = $? >> 8 );
}

# give control back to HAD.

[...]

 

 

regards,

Hervé

Herve GREGOIRE's picture

Hello,

 

the previous comment was to show that I followed the install guide and the warning is still present.

Someone does have an idea ? I do nit understand !

 

regards