VMware Cloud Community
TheChristoph
Contributor
Contributor

Migrate HQ Server (and migrate to EE)

I have a few questions about Server and Agent migration:

1. We plan to migrate the HQ Server (3.2.5) to a new Location, is it possible to store the current configuration and data? Which steps I have to follow?

My imagination is (for the Server):
- Installing a new Server on the new machine
- Dump the Database of the old Server
- Bring the data into the Database of the new Server

For the Agents:
- Edit the "agent.properties"-File and enter the IP of the new server
- Delete the "data"-Folder in the Agent-Root
- Restart the Agent

Will this fulfill my migration and store all the data or will I loss recently grabbed data or current metric & alert configurations (maybe by deleting the Agent-data-Folder)?

2. What if I want to make the Server become EE? Can I store all the data in this case? How can I do it?

3. What about the Agents, do I have to make them EE too for the EE Server or is it the same if I leave them in the Open Source Version?

4. If I have to make the Agents EE, how can I store my data in this case?

Many questions I hope you could help me again.

Regards
Christoph
0 Kudos
5 Replies
excowboy
Virtuoso
Virtuoso

Hi,

> I have a few questions about Server and Agent
> migration:
>
> 1. We plan to migrate the HQ Server (3.2.5) to a new
> Location, is it possible to store the current
> configuration and data? Which steps I have to
> follow?

I assume that your network configuration on the server side changes as well ?

>
> My imagination is (for the Server):
> - Installing a new Server on the new machine
> - Dump the Database of the old Server
> - Bring the data into the Database of the new Server

What type of server package are you using ? The one with the builtin database ? If so, simply stop the Server, tar or zip the HQ server directory and copy it to your new server, if it's the same platform.

Otherwise follow the steps described above.

>
> For the Agents:
> - Edit the "agent.properties"-File and enter the IP
> of the new server
> - Delete the "data"-Folder in the Agent-Root
> - Restart the Agent

Run hq-agent setup and resetup the Agents.
Try to use a dedicated (alias) IP - adress for your HQ Server, not machine ip address. So you never need to change the Server IP on your Agents again.

>
> Will this fulfill my migration and store all the data
> or will I loss recently grabbed data or current
> metric & alert configurations (maybe by deleting the
> Agent-data-Folder)?

No gurantee, but yes I think so.

>
> 2. What if I want to make the Server become EE? Can I
> store all the data in this case? How can I do it?

Mmh I don't know yet.

>
> 3. What about the Agents, do I have to make them EE
> too for the EE Server or is it the same if I leave
> them in the Open Source Version?

You definetly need to use EE Agents as well.

>
> 4. If I have to make the Agents EE, how can I store
> my data in this case?

Sorry, but I'm not sure what you want to know ?!
>
> Many questions I hope you could help me again.
>
> Regards
> Christoph

Cheers,
Mirko
TheChristoph
Contributor
Contributor

>> 1. Server
>I assume that your network configuration on the server side changes as well ?
Yes it will change too.

>What type of server package are you using ? The one with the builtin database ?
We use the build-in database but move from one platform to another.

>> 1. Agent
>Run hq-agent setup and resetup the Agents.
Cool it works! I didn't know the command.

>Try to use a dedicated (alias) IP - adress for your HQ Server, not machine ip address. >So you never need to change the Server IP on your Agents again.
Great suggestion, I will handle it this way.

It would be great if it works that easy, I maybe should make a test-relocation.
Any further opinions?

>> 2. What if I want to make the Server become EE?
>Mmh I don't know yet.
OK. I think I may get in trouble because of the differences with roles and so on, which may make the database inconsistent when I try to fill it with the dump-File.
Does anyone knows more about?

>> 3. What about the Agents, do I have to make them EE...
> You definetly need to use EE Agents as well.
OK.

>> 4. If I have to make the Agents EE...
> Sorry, but I'm not sure what you want to know ?!
The real question is whether the Agent store any information about Metrics or Alerts which I already defined in the Hyperic-Webinterface? Because if it stores anything I can't replace the OpenSource-Agent with the EE Agent that easy.

Thanks so far for the great help!

regards
Christoph
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi,

> It would be great if it works that easy, I maybe
> should make a test-relocation.
> Any further opinions?

Think about using a dedicated database server and so use the HQ Server package without JRE and PostgreSQL.

>
> >> 2. What if I want to make the Server become EE?
> >Mmh I don't know yet.
> OK. I think I may get in trouble because of the
> differences with roles and so on, which may make the
> database inconsistent when I try to fill it with the
> dump-File.
> Does anyone knows more about?

The database scheme ist pretty much different from Open Source Edition to EE. Please don't load your databasedump from one Edition into another one. Ask the Hyperic support how to handle the migration.

>
> >> 4. If I have to make the Agents EE...
> > Sorry, but I'm not sure what you want to know ?!
> The real question is whether the Agent store any
> information about Metrics or Alerts which I already
> defined in the Hyperic-Webinterface? Because if it
> stores anything I can't replace the OpenSource-Agent
> with the EE Agent that easy.

The Agent caches only metric data and of course some data for authentication. The database contains all relevant informations. You only have to resetup your Agent, thats all.

>
> Thanks so far for the great help!
>

You're welcome.


> regards
> Christoph

Cheers,
Mirko
0 Kudos
TheChristoph
Contributor
Contributor

Hi!

>Think about using a dedicated database server and so use the HQ Server package
>without JRE and PostgreSQL.

Yes, we already use in server without JRE and consider to use Oracle.

>The database scheme ist pretty much different from Open Source Edition to EE.
>Please don't load your databasedump from one Edition into another one. Ask the
>Hyperic support how to handle the migration.

I thought as much, maybe someone of the support read this thread or I will email them later.

>The Agent caches only metric data and of course some data for authentication. The
>database contains all relevant informations. You only have to resetup your Agent,
>thats all.

OK, that sounds good.

Thanks again! 🙂

regards,
Christoph
0 Kudos
afrosheen
Contributor
Contributor

I would attempt the upgrade from standard to EE on the original host server FIRST, using the upgrade option during install. Once that's nailed down, tested, and working, then you can consider zipping/tarring the folder up and dropping it on your new hardware.
0 Kudos