For the na vs g2-a1 discrepancy, that's related to two different attempts at getting this to work and I accidentally mixed them up when writing the thread.
I removed the DAS from glassfish2 and deleted the folders of the old nodeagents, essentially going back to a fresh install. I then followed the steps at
http://blogs.sun.com/technical/entry/2_machine_cluster_setup_cli. Here is the terminal transcript:
On glassfish1:
[root_at_glassfish1 glassfish]# asadmin create-node-agent --host localhost --port 4848 g1-a1
Command create-node-agent executed successfully.
[root_at_glassfish1 glassfish]# asadmin create-cluster --host localhost --port 4848 cluster1
Command create-cluster executed successfully.
[root_at_glassfish1 glassfish]# asadmin create-instance --host localhost --port 4848 --nodeagent g1-a1 --cluster cluster1 g1-i1
Command create-instance executed successfully.
[root_at_glassfish1 glassfish]# asadmin start-node-agent --syncinstances=true g1-a1
Please enter the master password [Enter to accept the default]:>
Redirecting output to /opt/glassfish/nodeagents/g1-a1/agent/logs/server.log
Redirecting application output to /opt/glassfish/nodeagents/g1-a1/agent/logs/server.log
Redirecting output to /opt/glassfish/nodeagents/g1-a1/g1-i1/logs/server.log
Command start-node-agent executed successfully.
On glassfish2:
[root_at_glassfish2 glassfish]# asadmin create-node-agent --host glassfish1 --port 4848 g2-a1
Command create-node-agent executed successfully.
[root_at_glassfish2 glassfish]# asadmin create-instance --host glassfish1 --port 4848 --nodeagent g1-a1 --cluster cluster1 g2-i1
Using 38,081 for HTTP_LISTENER_PORT.
Using 38,182 for HTTP_SSL_LISTENER_PORT.
Using 33,821 for IIOP_SSL_LISTENER_PORT.
Using 37,677 for JMS_PROVIDER_PORT.
Using 33,701 for IIOP_LISTENER_PORT.
Using 38,687 for JMX_SYSTEM_CONNECTOR_PORT.
Using 33,921 for IIOP_SSL_MUTUALAUTH_PORT.
Command create-instance executed successfully.
[root_at_glassfish2 glassfish]# asadmin start-node-agent --syncinstances=true g2-a1
Please enter the master password [Enter to accept the default]:>
Redirecting output to /opt/glassfish/nodeagents/g2-a1/agent/logs/server.log
Redirecting application output to /opt/glassfish/nodeagents/g2-a1/agent/logs/server.log
Node Agent g2-a1 failed to startup. Please check the server log for more details.
CLI137 Command start-node-agent failed.
Running the following commands on glassfish1 yields:
[root_at_glassfish1 glassfish]# asadmin list-node-agents --host localhost --port 4848
g1-a1 running
g2-a1 not running
Command list-node-agents executed successfully.
[root_at_glassfish1 glassfish]# asadmin list-clusters --host localhost --port 4848
cluster1 not running
Command list-clusters executed successfully.
[root_at_glassfish1 glassfish]# asadmin list-instances --host localhost --port 4848
g1-i1 not running
g2-i1 not running
Command list-instances executed successfully.
Running the following commans on glassfish2 yields:
[root_at_glassfish2 glassfish]# asadmin list-node-agents --host glassfish1 --port 4848
g1-a1 running
g2-a1 not running
Command list-node-agents executed successfully.
[root_at_glassfish2 glassfish]# asadmin list-clusters --host glassfish1 --port 4848
cluster1 not running
Command list-clusters executed successfully.
[root_at_glassfish2 glassfish]# asadmin list-instances --host glassfish1 --port 4848
g1-i1 not running
g2-i1 not running
Command list-instances executed successfully.
I've attached the following log files from the node agents, I'll attach the instance log files in the next reply, since I see I can only attach 2 files per post:
glassfish/nodeagents/g1-a1/agent/logs/server.log > g1-a1.log
glassfish/nodeagents/g2-a1/agent/logs/server.log > g2-a1.log
[Message sent by forum member 'rwillie6' (rwillie6)]
http://forums.java.net/jive/thread.jspa?messageID=244013