Migrate to System Install
Convert your current Local Install setup to a System Install.
Applies to Local Install.
If you already have a Local Install with existing data that you would like to convert into a System Install, the following procedure allows you to do so. However, a reverse migration from System to Local Install is not supported.
It is possible to perform the migration and upgrade simultaneously to a newer NSO version, however, doing so introduces additional complexity. If you run into issues, first migrate, and then perform the upgrade.
The following procedure assumes that NSO is installed as described in the NSO Local Install process, and will perform an initial System Install of the same NSO version. After following these steps, consult the NSO System Install guide for additional steps that are required for a fully functional System Install.
The procedure also assumes you are using the $HOME/ncs-run
folder as the run directory. If this is not the case, modify the following path accordingly.
To migrate to System Install:
Stop the current (local) NSO instance, if it is running.
Take a complete backup of the Runtime Directory for potential disaster recovery.
Change to Super User privileges.
Start the NSO System Install.
If you have multiple versions of NSO installed, verify that the symbolic link in
/opt/ncs
points to the correct version.Copy the CDB files containing data to the central location.
Ensure that the
/var/opt/ncs/packages
directory includes all the necessary packages, appropriate for the NSO version. However, copying the packages directly could later on interfere with the operation of thenct
command. It is better to only use symbolic links in that folder. Instead, copy the existing packages to the/opt/ncs/packages
directory, either as directories or as tarball files. Make sure that each package includes the NSO version in its name and is not just a symlink, for example:Link to these packages in the
/var/opt/ncs/packages
directory.The reason for prepending
ncs-VERSION
to the filename is to allow additional NSO commands, such asnct upgrade
andsoftware packages
to work properly. These commands need to identify which NSO version a package was compiled for.Edit the
/etc/ncs/ncs.conf
configuration file and make the necessary changes. If you wish to use the configuration from Local Install, disable the local authentication, unless you fully understand its security implications.When starting NSO at boot using
systemd
, make sure that you set the package reload option from the/etc/ncs/ncs.systemd.conf
environment file totrue
. Or, for example, setNCS_RELOAD_PACKAGES=true
before starting NSO if using thencs
command.Review and complete the steps in NSO System Install, except running the installer, which you have done already. Once completed, you should have a running NSO instance with data from the Local Install.
Remove the package reload option if it was set.
Update log file paths for Java and Python VM through the NSO CLI.
Verify that everything is working correctly.
At this point, you should have a complete copy of the previous Local Install running as a System Install. Should the migration fail at some point and you want to back out of it, the Local Install was not changed and you can easily go back to using it as before.
In the unlikely event of Local Install becoming corrupted, you can restore it from the backup.
Last updated