Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Migrating to a new server - can I take existing data?

Migrating to a new server - can I take existing data?

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 29.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    paul
    wrote on last edited by
    #1

    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_database

    I know I can do export import of templates etc, but what about collected data - how do I transfer that across?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • P
        P
        paul
        wrote on last edited by
        #3

        Hi Victor - thanks for that.

        The only trick is that I have POSTGRES on old machine and POSTGRES on new machine - both installed locally.

        Running on the new machine - how would I do that?

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • P
            P
            paul
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • P
                P
                paul
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups