- Prepare Target CentOS 7 Server
- Shutdown Related Services
- Run Export Script
- Update your Mongo Config File on the New CentOS 7 Server
- Correct NMIS Hostname on the New CentOS 7 Server
- Restart Related Services on the New CentOS 7 Server
Customers that are running NMIS and OMK applications on CentOS 6 may want to move them to CentOS 7. Will article will present one method of accomplishing this.
The CentOS 7 server will run the same version of NMIS and OMK applications that are currently running on the CentOS 6 server.
- Seliunx disabled or configured to allow NMIS/OMK installation.
- Firewall disabled or configured to allow all necessary OMK/NMIS network calls.
Prepare Target CentOS 7 Server
Install prerequisite packages
After installing CentOS 7 on the new server install the following packages.
- yum update
- yum install perl
- yum install perl-core
- yum install rrdtool
- yum install rrdtool-perl
- yum install libpng12
- yum install rsync
- yum install ntp
Install NMIS and OMK Applications
Install the correct NMIS and OMK application versions on the new CentOS 7 server. If you no longer have the installer packages for the correct versions contact email@example.com and someone will provide them.
Install SSH Keys
In order for the export script to work a valid ssh key must be installed in the /root/.ssh/authorized_keys file.
Shutdown Related Services
On both the old CentOS 6 and the new CentOS 7 servers shutdown the following services:
Run Export Script
Run the following script on the old CentOS 6 server. The following six variables at the top of the script will need to be modified to suit your environment.
Please take into consideration that the new environment may store the database in different folders. Check your "dbpath" in your servers (/etc/mongod.conf).
- TARGET : IP address of the new CentOS 7 server.
- NODEDATA: Full path to the directory that contains NMIS node files.
- SOURCE_MONGODBLOCATION: Full path to the current Mongo database directory to be migrated.
- SOURCE_MONGODBDIR: The name of the directory that contains the current MongoDB files.
- DESTINATION_MONGODBLOCATION: Full path to the new Mongo database directory.
- DESTINATION_MONGODBDIR: The name of the directory that will receive the MongoDB files.
Update your Mongo Config File on the New CentOS 7 Server
Update your /etc/mongod.conf to reflect the current configuration from your old CentOS 6 Server, note that the dbpath could be different from your old environment.
Correct NMIS Hostname on the New CentOS 7 Server
In /usr/local/nmis8/conf put the correct hostname for 'server_name' attribute.
Restart Related Services on the New CentOS 7 Server
Restart the following services:
Log into the GUI on the new CentOS 7 server and verify each application is functional and presents data from before the migration.