users@glassfish.java.net

Re: Glassfh 3.1 configuration with 2 domains

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Mon, 27 Feb 2012 08:58:33 -0600

Hi,
Is there a reason why you have created a second domain? The DAS in a
single domain can manage multiple clusters.

There are several errors in your command sequence.

1) You created "domain2" but then you never started the DAS for that
domain using start-domain. So you only have one DAS running (the one on
port 4848).

2) The "--portbase" option in the create-cluster command for
back-cluster is ignored. You should have received a warning message that
the option is obsolete, but the command should have completed, creating
the cluster on domain1. What makes you think that the command is not
working?

If you intent is really to use a 2nd domain for back-cluster, then you
need to add:

asadmin start-domain domain2

And the commands to create the cluster and its instances should be:

asadmin --port 4849 create-cluster back-cluster
asadmin --port 4849 create-node-ssh --nodehost node-2 node-back
asadmin --port 4849 create-instance --cluster back-cluster --node
node-back instance-back

To create these entities in domain2, you have to specify the port for
the domain2 DAS in the command.

More information on management domains can be found here:
http://docs.oracle.com/cd/E18930_01/html/821-2416/ggnop.html#scrolltoc

Tom