Scenario A: Upgrade of Ubuntu 16.04 to Ubuntu 18.04
Scenario B: Fresh Ubuntu 18.04 Installaon
Troubleshoong
ii
Introducon
This document concerns upgrading of Paragon Acve Assurance Control Center from version 2.34 to a
later version.
The upgrade entails special procedures as it involves upgrading the Ubuntu OS from 16.04 to 18.04. The
document covers two scenarios:
• Upgrade of Ubuntu 16.04 (with Control Center installed) to Ubuntu 18.04.
• Fresh installaon of Ubuntu 18.04 followed by installaon of Control Center and transfer of backup
data from an old Control Center instance to the new instance.
For other upgrades, please refer to the Upgrade Guide.
1
Scenario A: Upgrade of Ubuntu 16.04 to Ubuntu
18.04
• Begin by disabling the apache2 and netrounds-callexecuter services:
sudo tar -czf ncc_openvpn.tar.gz /var/lib/netrounds/openvpn
# Note: Be sure to store these in a safe place.
# Back up RRD files (metrics data)
# Check the file size before compressing the RRDs. Use of the tar command is
not
# recommended if the RRDs are larger than 50 GB; see note below.
du -hs /var/lib/netrounds/rrd
sudo tar -czf ncc_rrd.tar.gz /var/lib/netrounds/rrd
2
NOTE: The pg_dump command will ask for a password which can be found in /etc/
netrounds/netrounds.conf under "postgres database". The default password is "netrounds".
NOTE: For a large-scale setup (> 50 GB), making a tarball of the RRD les might take too long,
and taking a snapshot of the volume can be a beer idea. Possible soluons for doing this
include: using a le system that supports snapshots, or taking a snapshot of the virtual volume
if the server is running in a virtual environment.
• Check the integrity of the database using the supplied script netrounds_2.35_validate_db.sh.
WARNING: If this script outputs warnings, do not aempt the database migraon
procedure described "below" on page 4. Contact Juniper support by ling a cket at
hps://support.juniper.net/support/requesng-support (supplying the output from the
script) to have the problems with the database resolved before you proceed with the
upgrade.
• Take backups of the Control Center conguraon les:
• Upgrade Ubuntu to version 18.04. A typical upgrade procedure is as follows (adapted from hps://
wiki.ubuntu.com/BionicBeaver/ReleaseNotes):
3
• To upgrade on a server system:
• Install update-manager-core if it is not already installed.
• Make sure the Prompt line in /etc/update-manager/release-upgrades is set to 'lts' (to ensure
that the OS is upgraded to the 18.04, the next LTS version aer 16.04).
• Launch the upgrade tool with the command sudo do-release-upgrade.
• Follow the on-screen instrucons. As far as Paragon Acve Assurance is concerned, you can
keep the defaults throughout. (It may of course happen that you need to make dierent
choices for reasons unrelated to Paragon Acve Assurance.)
• Once Ubuntu has been upgraded, reboot the system. Then perform the following steps:
• Upgrade PostgreSQL.
• Update PostgreSQL database les from version 9.5 to version 10:
sudo pg_dropcluster 10 main --stop # Shut down server and completely
delete cluster# "main" version 10 (this prepares for the upgrade# in the
next command)
sudo pg_upgradecluster 9.5 main # Upgrade cluster "main" version 9.5
to latest# available version (10)
sudo pg_dropcluster 9.5 main # Completely delete cluster "main"
• Compute the checksum for the tarball containing the new Control Center version and verify that
it is equal to the SHA256 checksum provided on the download page:
sha256sum paa-control-center_${CC_VERSION}.tar.gz
• Unpack the Control Center tarball:
export CC_VERSION=<enter new version here>
tar -xzf netrounds-control-center_${CC_VERSION}.tar.gz