Suppose I have only one management server and I want to take it down for
maintenance. What is the procedure to deploy the management server on a
different machine?

I tried the following on the new machine:

(i) Completed all the steps from Chapter 2 in the
Apache_CloudStack-4.0.2-Quick_Install_Guide-en-US.pdf

(ii) Copied all files from /etc/cloud, /usr/lib64/cloud, /var/lib/cloud
from the old machine to the new one.

(iii) Took dumps of the databases cloud, cloudbridge, cloud_usage from old
machine and then put them in the new machine.

(iv) Changed the ip in /etc/cloud/agent/agent.properties and
/etc/cloud/management/db.properties from 10.3.3.57 to 10.3.3.56


But i still get the error

2013-05-27 10:51:16,581 WARN  [agent.manager.ClusteredAgentManagerImpl]
(Job-Executor-2:job-93) Unable to connect to peer management server:
90520731198133, ip: 10.3.3.57 due to Connection refused
java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:525)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:164)
    at
com.cloud.agent.manager.ClusteredAgentManagerImpl.connectToPeer(ClusteredAgentManagerImpl.java:442)
    at
com.cloud.agent.manager.ClusteredAgentAttache.send(ClusteredAgentAttache.java:172)
    at com.cloud.agent.manager.AgentAttache.send(AgentAttache.java:388)
    at
com.cloud.agent.manager.AgentManagerImpl.send(AgentManagerImpl.java:505)
    at
com.cloud.agent.manager.AgentManagerImpl.send(AgentManagerImpl.java:458)
    at
com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1079)
    at
com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:2804)
    at
com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:36)
    at com.cloud.api.commands.StopVMCmd.execute(StopVMCmd.java:119)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
    at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:432)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)

How to rectify this? How can I achieve my goal?

Thanking You,
Nehal J. Wani
UG2, BTech CS+MS(CL)
IIIT-Hyderabad
http://commanlinewani.blogspot.com

Reply via email to