Migrating to a new server - can I take existing data?
-
If I want to move to a new server - both old and new are using NetXMS and Postgres - what are my options?
From the doco - there are options if the new DB is local and old DB is local and is connected to existing installation.
https://wiki.netxms.org/wiki/How_to_migrate_to_another_databaseI know I can do export import of templates etc, but what about collected data - how do I transfer that across?
-
Hi,
it is not necessary that both databases are local for nxdbmgr migrate - both just should be accessible from the machine where you running migration tool. Usually it's better to run migration on destination (new machine) - then you can create correct netxmsd.conf for use by new server, copy netxmsd.conf from old server under different name or path, change it so that DBServer points to old database server, and run nxdbmgr migrate.
Best regards,
Victor -
-
In source config on new machine specify address of old server in DBServer. You may need to enable Postgres connections from new machine in pg_hba.conf on old machine.
Best regards,
Victor -
I assume that as an Option 2, I would be to do an export on the original server and do an import on the new server?
An extra step that might be seen as avoidable - but sometimes, getting a file from one server to another can be much simpler and quicker this way.
I have export working, so rather than opening up external connections - copying the SQLite export and importing is looking much easier.
-
Yes, export - copy - import is another option. It may not work well on large databases though (because of space requirements, extra time to write export file, and on some systems hitting file size limit).
Best regards,
Victor -
Went with export / import. 1.4GB export file took about an hour to import - VM built as 4 core 12GB E2680 V4 CPU with all Flash storage - everything was local (iscsi to SAN). Included collected data.
Panicked when I started the console locally and pointed it at the new server - error.:( Helps to start the NetXMS service first

Everything was perfect - the only thing I had to do in addition to the import was to copy the MIBS across.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login