last week we tried to install snapcreator-agent on AIX-6.1-Servers, but without success. In the installation-guide I found that java1.6 Update 24 is required. The output from "java -version" is as follows:
I must admit that I cannot determine whether this is 1.6 Update 24 or not, but I'd assume that. I'ts the most recent version available from IBM. Below is the output of scWatchdog start which complains about java:
We hit the same issue in our environment. Here's the fix and explanation provided by our system admins.
Okay. Two things.
1. JAVA_HOME has to be set when running "scAgent start". It's not set anywhere in the script. I set it to /usr/java7 2. This is the issue:
In scWatchdog and scAgent-core they search two locations for the java command in JAVA_HOME: $JAVA_HOME/bin/java $JAVA_HOME/jre/sh/java
The second location is preceded by the comment: # IBM's JDK on AIX uses strange locations for the executables
Which is really funny because AIX doesn't have java in either location. It needs to be searching for $JAVA_HOME/jre/bin/java. I have no idea what version of AIX/java they were using when they decided that java was in jre/sh.
I changed the check in scWatchdog and scAgent-core, ran scAgent start and:
[root@server1 bin]$ ./scAgent status Checking Status of scAgent: Watchdog: Running Agent: Running
Re: Snapcreator Agent 4.1.0 refuses to start on AIX, confusion about java-version
From my point of view JAVA_HOME is set and evaluated correctly, thats why I posted the output of "sh -x ./scWatchdog start" in the beginning. java ist found and started via "exec /usr/java6_64/bin/java -Xms32m -Xmx128m -XX:MaxPermSize=64m -classpath /opt/NetApp/scAgent4.1.0/lib/scAgent-4.1-core.jar com.netapp.snapcreator.agent.nextgen.watchdog.external.ExternalWatchdogStarter start"
BTW, can somebody confirm that IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64... really means 1.6 Update 24?