How to migrate NV to another server(s)

Document created by Stuart_Weenig on Dec 3, 2014
Version 1Show Document
  • View in full screen mode

How to Migrate without Changing IP Addresses

If you're not changing IP addresses, the process is fairly simple. This can be done one at a time or all at once. This process works for a standalone or distributed NV.

  1. Install the same version of NV on the new servers.
  2. Stop all services on all servers.
  3. Copy the nms2 directory from the old servers to the corresponding new servers (usually in D:\netqos\mysql51\data)
  4. Move the IP addresses from the old servers to the corresponding new servers
  5. Start the services on the new servers
  6. Sell the old servers on eBay.

 

How to migrate to a new server(s) with different IP address(es) and/or FQDN(s)

For a distributed NV, first migrate the master console, then migrate each poller. This should be done in stages to ensure things recover. Spread it over a few days, one server each day. For a standalone, skip the master migration (a standalone and a poller are equivalent).

To migrate the master:

  1. Stop all services on the old master and the new master
  2. Move the nms2 folder out of the mysql data directory on the new server (like into D:\backup\)
  3. Copy the nms2 database folder from the old master to the new master
  4. Start the 'NetQoS MySQL' service on the new master
  5. Update the service_managers table to reflect the new master IP/FQDN
    1. I like doing this with HeidiSQL because it makes it as easy as editing cells in Excel.
    2. The smgr_host field should contain the FQDN and the smgr_addr can contain the FQDN or IP address (I prefer FQDN)
    3. If you must do this manually, run the following from command line on the new master:
      mysql -P 3308 -D nms2 -e "update service_managers set smgr_host='[FQDN]', smgr_addr='[FQDN/IP]' where smgr_id=1;"
  6. Execute the following from command line on the new master
    iorgen
  7. Start the remaining NetQoS NetVoyant services on the new master.

 

To migrate a poller:

  1. Stop all the services on the old poller and the new poller
  2. Move the nms2 folder out of the mysql data directory on the new poller (like to the backup directory)
  3. Start copy the nms2 database from the old poller to the new poller
  4. While step 3 is finishing
    1. Stop NV-services on the master (not NetQoS MySQL)
    2. Update the smgr_host and smgr_addr on the master on its nms2.service_managers table (for the one specific smgr_id that identifies the poller currently being migrated)
    3. Run iorgen on the master
    4. Start NV-services on the master
  5. After copy from step 3 completes, start mysql service on the poller
  6. Update the smgr_host and smgr_addr on poller's nms2.service_managers table
  7. Run iorgen on poller
  8. Start poller's NV services

Attachments

    Outcomes