dev@glassfish.java.net

Re: Upgrade a domain to cluster profile using CLI

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Sun, 29 Mar 2009 07:35:06 -0700

Agree with you that upgrading a domain to support cluster is not a
routine operation.

The goal is to upgrade a previously setup non-clustered domain to a
clustered one in a headless mode. I need it mostly for setting up a VM
ready for demo but I suspect might be required in other cases as well.

Here is another command that might be helpful:

asadmin is-clustered <domain> ?

Alternatively

asadmin upgrade-to-cluster <domain>

should return back if the domain supports cluster, otherwise add cluster
support. The command name can certainly be different.

-Arun

Kedar Mhaswade wrote:
> You are the second person who has had such a request in past
> 2 week ;). Can you elaborate your requirement here?
>
> When I initially did this feature, I thought upgrading a server
> to support clusters is not a "routine"/"scriptable" operation,
> rather it is an operation where administrator has to think twice
> before executing. It's one thing to click on the GUI button, but
> there are some things that should be taken care of.
>
> Anything in CLI becomes product's interface (GUI's requirements
> are less critical) and this was an experimental feature. These
> two reasons made me not provide an asadmin command for this.
>
> -Kedar
>
> Arun Gupta wrote:
>> Thanks Anissa!
>>
>> Any particular reason it is not available as a CLI command as well ?
>>
>> -Arun
>>
>> Anissa Lam wrote:
>>>
>>> Hi Arun,
>>> This is an exclusive feature in Admin Console :)
>>>
>>> Anissa.
>>>
>>> Arun Gupta wrote:
>>>> How do I upgrade an existing domain to use cluster profile using CLI ?
>>>>
>>>> -Arun
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta