You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Martin Emrich <ma...@empolis.com> on 2018/03/02 09:40:50 UTC

How to move/replace management server?

Hello!

My management server (running CentOS 6) is getting old... What is the 
correct procedure to move the management server to a new host, with new 
CentOS 7?

I expect that I have to change the IP address of the management server 
in many places (Agents/Config on the XenServers, SystemVMs, Virtual 
Routers, etc.)? Or is there some automation in place?

Thanks

Martin


AW: How to move/replace management server?

Posted by "Swen - swen.io" <me...@swen.io>.
Hi,

would it be possible to just migrate with a downtime?
1. shutdown management service
2. shutdown usage service (if running)
3. Dump DB
4. Install new server with same IP
4. Install CS on new host
5. Import db
6. start services

Best regards,
Swen

-----Ursprüngliche Nachricht-----
Von: Paul Angus [mailto:paul.angus@shapeblue.com] 
Gesendet: Freitag, 2. März 2018 18:38
An: users@cloudstack.apache.org
Betreff: RE: How to move/replace management server?

You can force the issue by stopping the all mgmt. servers, setting the management_server_id of the hosts in the host table to NULL when setting the old host to removed then restarting the new mgmt. server.

It's generally best practice to keep your mysql and mgmt. servers on separate hosts to make life easier when moving stuff around (like now). 

paul.angus@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue
  
 


-----Original Message-----
From: Martin Emrich <ma...@empolis.com>
Sent: 02 March 2018 14:15
To: users@cloudstack.apache.org
Subject: Re: How to move/replace management server?

Hi!


Am 02.03.18 um 10:49 schrieb Paul Angus:
> Hi Martin,
>
> At a high level, what I would recommend doing, is building a new management host on CentOS7, add it as an additional management server.  Update the 'host' entry in the global settings to point to the new host.  And then mark the original management server as removed (by setting a date in the removed field in the database).
Thanks, so I basically upgrade from a single-node-setup to a cluster, wait a day or so for all components to "learn" that there is a new guy in town, and then remove the old node? Sounds reasonable...
> This assumes your database is on a separate VM/host.
The DB is running on the same host, but migrating it should be easy beforehand.

Thanks

Martin




Re: How to move/replace management server?

Posted by Ron Wheeler <rw...@artifact-software.com>.
Would this be a nice short note for the Wiki?

Ron

On 26/03/2018 11:18 AM, Martin Emrich wrote:
> Hi!
>
> Took some time to get some hardware to test, but it basically worked 
> so far (Migrating DB to new host, and setting up an additional MS on 
> the new host):
>
> * Stop old MS
>
> * cloudstack-configure-databases on the new host
>
> * dump databases "cloud" and "cloud_usage" on old host
>
> * stop database on old host
>
> * import databases on new host
>
> * edit db.properties on old host (db.*.host, db.*.slaves)
>
> * start MS on old host, works fine with the DB on the other host
>
> * configure-cloudstack-management on the new host
>
> * new MS works, too.
>
> Awesome :)
>
> Cheers,
>
> Martin
>
>
> Am 02.03.18 um 18:37 schrieb Paul Angus:
>> You can force the issue by stopping the all mgmt. servers, setting 
>> the management_server_id of the hosts in the host table to NULL when 
>> setting the old host to removed then restarting the new mgmt. server.
>>
>> It's generally best practice to keep your mysql and mgmt. servers on 
>> separate hosts to make life easier when moving stuff around (like now).
>>
>> paul.angus@shapeblue.com
>> www.shapeblue.com
>> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> @shapeblue
>>
>>
>> -----Original Message-----
>> From: Martin Emrich <ma...@empolis.com>
>> Sent: 02 March 2018 14:15
>> To: users@cloudstack.apache.org
>> Subject: Re: How to move/replace management server?
>>
>> Hi!
>>
>>
>> Am 02.03.18 um 10:49 schrieb Paul Angus:
>>> Hi Martin,
>>>
>>> At a high level, what I would recommend doing, is building a new 
>>> management host on CentOS7, add it as an additional management 
>>> server.  Update the 'host' entry in the global settings to point to 
>>> the new host.  And then mark the original management server as 
>>> removed (by setting a date in the removed field in the database).
>> Thanks, so I basically upgrade from a single-node-setup to a cluster, 
>> wait a day or so for all components to "learn" that there is a new 
>> guy in town, and then remove the old node? Sounds reasonable...
>>> This assumes your database is on a separate VM/host.
>> The DB is running on the same host, but migrating it should be easy 
>> beforehand.
>>
>> Thanks
>>
>> Martin
>>
>
>

-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


Re: How to move/replace management server?

Posted by Martin Emrich <ma...@empolis.com>.
Hi!

Took some time to get some hardware to test, but it basically worked so 
far (Migrating DB to new host, and setting up an additional MS on the 
new host):

* Stop old MS

* cloudstack-configure-databases on the new host

* dump databases "cloud" and "cloud_usage" on old host

* stop database on old host

* import databases on new host

* edit db.properties on old host (db.*.host, db.*.slaves)

* start MS on old host, works fine with the DB on the other host

* configure-cloudstack-management on the new host

* new MS works, too.

Awesome :)

Cheers,

Martin


Am 02.03.18 um 18:37 schrieb Paul Angus:
> You can force the issue by stopping the all mgmt. servers, setting the management_server_id of the hosts in the host table to NULL when setting the old host to removed then restarting the new mgmt. server.
>
> It's generally best practice to keep your mysql and mgmt. servers on separate hosts to make life easier when moving stuff around (like now).
>
> paul.angus@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>    
>   
>
>
> -----Original Message-----
> From: Martin Emrich <ma...@empolis.com>
> Sent: 02 March 2018 14:15
> To: users@cloudstack.apache.org
> Subject: Re: How to move/replace management server?
>
> Hi!
>
>
> Am 02.03.18 um 10:49 schrieb Paul Angus:
>> Hi Martin,
>>
>> At a high level, what I would recommend doing, is building a new management host on CentOS7, add it as an additional management server.  Update the 'host' entry in the global settings to point to the new host.  And then mark the original management server as removed (by setting a date in the removed field in the database).
> Thanks, so I basically upgrade from a single-node-setup to a cluster, wait a day or so for all components to "learn" that there is a new guy in town, and then remove the old node? Sounds reasonable...
>> This assumes your database is on a separate VM/host.
> The DB is running on the same host, but migrating it should be easy beforehand.
>
> Thanks
>
> Martin
>


RE: How to move/replace management server?

Posted by Paul Angus <pa...@shapeblue.com>.
You can force the issue by stopping the all mgmt. servers, setting the management_server_id of the hosts in the host table to NULL when setting the old host to removed then restarting the new mgmt. server.

It's generally best practice to keep your mysql and mgmt. servers on separate hosts to make life easier when moving stuff around (like now). 

paul.angus@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 


-----Original Message-----
From: Martin Emrich <ma...@empolis.com> 
Sent: 02 March 2018 14:15
To: users@cloudstack.apache.org
Subject: Re: How to move/replace management server?

Hi!


Am 02.03.18 um 10:49 schrieb Paul Angus:
> Hi Martin,
>
> At a high level, what I would recommend doing, is building a new management host on CentOS7, add it as an additional management server.  Update the 'host' entry in the global settings to point to the new host.  And then mark the original management server as removed (by setting a date in the removed field in the database).
Thanks, so I basically upgrade from a single-node-setup to a cluster, wait a day or so for all components to "learn" that there is a new guy in town, and then remove the old node? Sounds reasonable...
> This assumes your database is on a separate VM/host.
The DB is running on the same host, but migrating it should be easy beforehand.

Thanks

Martin


Re: How to move/replace management server?

Posted by Martin Emrich <ma...@empolis.com>.
Hi!


Am 02.03.18 um 10:49 schrieb Paul Angus:
> Hi Martin,
>
> At a high level, what I would recommend doing, is building a new management host on CentOS7, add it as an additional management server.  Update the 'host' entry in the global settings to point to the new host.  And then mark the original management server as removed (by setting a date in the removed field in the database).
Thanks, so I basically upgrade from a single-node-setup to a cluster, 
wait a day or so for all components to "learn" that there is a new guy 
in town, and then remove the old node? Sounds reasonable...
> This assumes your database is on a separate VM/host.
The DB is running on the same host, but migrating it should be easy 
beforehand.

Thanks

Martin


RE: How to move/replace management server?

Posted by Paul Angus <pa...@shapeblue.com>.
Hi Martin,

At a high level, what I would recommend doing, is building a new management host on CentOS7, add it as an additional management server.  Update the 'host' entry in the global settings to point to the new host.  And then mark the original management server as removed (by setting a date in the removed field in the database).

This assumes your database is on a separate VM/host.  


Kind regards,

Paul Angus

paul.angus@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 


-----Original Message-----
From: Martin Emrich [mailto:martin.emrich@empolis.com] 
Sent: 02 March 2018 09:41
To: CloudStack-Users <us...@cloudstack.apache.org>
Subject: How to move/replace management server?

Hello!

My management server (running CentOS 6) is getting old... What is the correct procedure to move the management server to a new host, with new CentOS 7?

I expect that I have to change the IP address of the management server in many places (Agents/Config on the XenServers, SystemVMs, Virtual Routers, etc.)? Or is there some automation in place?

Thanks

Martin