Version upgrades#
Version upgrades may include additional functionality, performance enhancements, and/or other improvements over previous versions. Fixes for certain types of issues will also be included in these updates.
Upgrading to v20.1.0#
The Replicator 20.1.0 upgrade requires the target VM or hardware appliance to be running v19.1.1+ and have at least 2 CPU cores and 8 GB of RAM. For older versions, follow this guide to upgrade to v19.1.1.
Important
Replicator 19.1.1 appliances that are upgraded to v20.0.0+ default to standalone/configuration host mode.
If an appliance needs to be converted to a headless instance, refer to these instructions before starting the upgrade process.
Note
The upgrade will take about one hour to complete.
Due to an increase in minimum specs, older VMs with 2 GB of RAM should be provisioned with 8 GB RAM before the upgrade.
The upgrade requires a minimum of 16 GB free space on root (
/). There may be older logs (sudo rm /var/log/messages-*) that can be deleted to free up space.The primary appliance in a high-availability pair must be upgraded before the secondary/backup. See this section for instructions.
Contact Plixer Technical Support for assistance or clarifications.
Pre-upgrade preparation#
[Upgrades from 19.1.1] Create a backup of the v19.1.1 profile configuration data by downloading and running this utility (hardware appliances) or taking a VM snapshot (virtual appliances).
Confirm the current password for the
replicatorSSH user (runpasswd replicator).Verify that root login is disabled by running:
sudo sed -i 's/^#PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config
Confirm that the Replicator server has access to
https://files.plixer.com. This check can be performed by downloading the upgrade checksum file using the following command:curl -O https://files.plixer.com/plixer-repo/scrutinizer/19.8.0/replicator-install.run.sha256
For Replicator servers that do not have internet access, download the file from the
REPO_HOST_IPfor the offline yum/dnf repository instead.
Upgrade procedure#
Once all preparation steps have been completed, follow these steps to upgrade the appliance:
View instructions
SSH to the Replicator server to be upgraded (use the
plixeruser if upgrading from v20.0.0+ and thereplicatoruser for upgrades from v19.1.1):ssh plixer@REPLICATOR_IP
Start a new tmux session (to maintain the upgrade session if the SSH connection is lost):
tmux new -s upgrade
Verify that the current working directory is correct (
replicator):cd /home/replicator/
Download the Replicator 20.1.0 upgrade script and its checksum file:
curl -O https://files.plixer.com/plixer-repo/scrutinizer/19.8.0/replicator-install.run curl -O https://files.plixer.com/plixer-repo/scrutinizer/19.8.0/replicator-install.run.sha256
Note
If the server does not have Internet access, use the IP address of the offline repo host (
REPO_HOST_IP) instead offiles.plixer.com. The-kflag can also be added to ignore certificates if necessary.Verify the checksum:
sha256sum -c replicator-install.run.sha256
Set the correct permissions for the installer:
chmod 755 replicator-install.run
Run the installer as the
replicatoruser:./replicator-install.run
Offline upgrades
If the offline repo is hosted on the same Replicator standalone/configuration instance, run:
REPO_HOST=local LOCAL_REPO_BASEDIR=/var/db/big/offline ./replicator-install.run
If the offline repo is hosted on a different standalone Replicator instance or a Scrutinizer server, run:
REPO_HOST=REPO_HOST_IP ./replicator-install.run -- -k
After the installation script finishes running, reboot the appliance:
sudo shutdown -r now
After the reboot, the Replicator appliance will be on v20.1.0.
Offline upgrades#
To upgrade a Replicator 19.1.1 server that is unable to access the default yum/dnf repository on https://files.plixer.com/plixer-repo/scrutinizer/19.8.0, an offline repository will need to be set up on the local network. This repository can be hosted on the Replicator standalone/configuration instance or a Plixer One/Scrutinizer server.
Important
Before starting, verify that var/db/big on the repo host has at least 84 GB of free disk space:
df -h --output='avail' /var/db/big
Add more storage if necessary, or deploy a temporary standalone Replicator instance or Scrutinizer server to serve as the offline repository host.
Follow these steps to set up the offline repository on a Replicator configuration instance (with IP address REPO_HOST_IP):
View instructions
Download the offline repo package and checksum file on a host with Internet access:
curl -O https://files.plixer.com/plixer-repo/scrutinizer/19.8.0_offline.tgz curl -O https://files.plixer.com/plixer-repo/scrutinizer/19.8.0_offline.tgz.sha256
Start an SSH session with the offline repo host as the
plixeruser:ssh plixer@REPO_HOST_IP
Create a new directory for the offline installation files and set the correct permissions to give the plixer user access to it:
sudo mkdir -p /var/db/big/offline sudo chown plixer:plixer /var/db/big/offline
On the Internet-connected host, copy the offline bundle and checksum file downloaded in step 1 to the repo host:
scp 19.8.0_offline.tgz* plixer@REPO_HOST_IP:/var/db/big/offline/
On the repo host, validate the checksum:
(cd /var/db/big/offline/ ; sha256sum -c 19.8.0_offline.tgz.sha256)
Extract the repository:
tar -zxvf /var/db/big/offline/19.8.0_offline.tgz -C /var/db/big/offline
Create a link to the offline repository in a directory accessible to the web server:
sudo -u webapp ln -sf /var/db/big/offline/plixer-repo /home/webapp/html/
Once the offline repository has been set up, follow these steps to proceed with the upgrade.
Upgrading and converting Replicator 19.1.1 appliances to headless instances#
If another Replicator 20.0.0+ instance (or Plixer One/Scrutinizer 19.8.0+) is going to be used as the configuration host, additional v19.1.1 appliances can be converted to headless instances after they are upgraded.
Note
Hardware appliances upgraded to v20.0.0+ and converted to a headless instances will no longer have their own web interface and must be managed from a remote configuration host.
Backing up v19.1.1 configuration data#
If the the Replicator 19.1.1 VM or hardware appliance has configuration data (profiles, collectors, or exporters) that needs to be migrated to the new configuration host, follow the steps below to create a backup file:
Important
Profile configuration data must be backed up before a Replicator 19.1.1 hardware appliance is upgraded.
View instructions
Log in to the configuration host and register/add a new headless instance.
SSH to the source host as the
rootuser and create a directory for the backup files:mkdir /tmp/migration
Download the migration utility and apply the necessary permissions:
curl -o /tmp/migration/Replicator-19.conf-tool.sh https://files.plixer.com/plixer-repo/scrutinizer/19.8.0/util/Replicator-19-conf-tool.sh chmod 755 /tmp/migration/Replicator-19-conf-tool.sh
Run the utility with the address that will be assigned to the headless instance after the upgrade (
HEADLESS_IP):cd /tmp/migration ./Replicator-19-conf-tool.sh backup <BACKUP_NAME> <HEADLESS_IP>
Note
HEADLESS_IPdoes not need to be the same as the pre-upgrade IP address, but it must match the IP address of the post-upgrade headless instance for the backup data to be restored successfully.Verify the contents of the backup file:
tar -vztf BACKUP_NAME.tar.gz ls -l /home/replicator/v19_backup
The files should be the same size and not be empty.
Copy the backup file from the v19.1.1 hardware appliance to the configuration host:
scp BACKUP_NAME.tar.gz plixer@CONFIGURATION_HOST_IP:/home/plixer/scrutinizer/files/BACKUP_NAME.tar.gz
After the backup file has been created and copied, proceed with upgrading and converting the Replicator 19.1.1 appliance.
Upgrade and conversion#
To upgrade a Replicator 19.1.1 appliance and convert it to a v20.1.0 headless instance:
Follow this guide to upgrade the v19.1.1 hardware appliance to 20.1.0.
After the upgrade is complete, SSH to the upgraded instance as the
plixeruser:ssh plixer@REPLICATOR_IP
Run the setup script to demote the instance to headless:
MAKE_HEADLESS=1 /usr/share/replicator/util/setup.sh
When prompted, provide the configuration host IP address, name assigned, and authentication token generated when the headless instance was registered.
In the configuration host web interface, navigate to Admin > Resources > Replicators again and verify that the upgraded instance has self-registered.
The upgraded and converted Replicator 20.1.0 instance can be further configured via the Replicator page on the configuration host.
Restoring v19.1.1 configuration data#
If a backup of the v19.1.1 appliance was created before it was upgraded to v20.0.0+, the backup file can be restored on the standalone/configuration host as follows:
Important
Backup data can only be successfully restored if the configuration host has a registered headless instance with the same IP address as the backup (HEADLESS_IP in these steps) and no profile, collector, or exporter data configured.
View instructions
SSH to the configuration host as the
plixeruser and apply the necessary permissions to the utility:chmod 755 /home/plixer/scrutinizer/files/Replicator-19-conf-tool.sh
Run the utility to restore the backup data for the headless instance:
cd /home/plixer/scrutinizer/files/ ./Replicator-19-conf-tool.sh restore BACKUP_NAME.tar.gz
Navigate to the Replicator UI/page on the configuration host and verify that the configuration data was successfully restored and associated with the headless instance.
After the backed up data has been restored, the Replicator service should be updated with the new profile configuration data and start replication within one minute.
High-availability pairs#
To upgrade a Replicator 19.1.1 high-availability (HA) pair to v20.1.0, follow these steps:
Note
To set up a new v20.0.0+ HA pair, follow this guide.
View instructions
Important
If the HA pair to be upgraded is using a virtual IP address (VIP), note the address being used (can be found in /etc/keepalived/keepalived.conf or by running ip addr show) before starting the upgrade process. The VIP will be required to complete several of the steps below.
Stop and disable the
keepalivedservice.sudo systemctl stop keepalived sudo systemctl disable keepalived
Verify that the VIP was released by the primary and has been taken over by the secondary instance (run on both):
ip aUpgrade the primary instance following this guide.
After the upgrade, log into the web interface and verify that profiles were successfully migrated to the upgraded primary instance.
Apply a new license (must support at least two Replicator instances).
Register a new instance under Admin > Resources > Replicators and note the API authentication token.
Reboot the primary instance, and then upgrade the secondary instance following the same steps as before.
After the upgrade, run the following on the secondary instance to set it up as a headless instance:
MAKE_HEADLESS=1 /usr/share/replicator/util/setup.sh
Enter the following details when prompted:
Configuration host (primary instance) IP address
API authentication token created when the new instance was created (step 6)
Name assigned to the new instance
Restart the secondary instance, and then return to Admin > Resources > Replicators in the web interface to verify that the secondary instance has successfully registered itself with the primary (IP address should be displayed).
On the same page, click on the primary instance name (usually ‘Local’), and configure high availability using the primary and secondary instances (enter the original VIP if necessary).
Click the Save button, and then wait two minutes.
Verify that
/etc/keepalived/keepalived_replicator.confcontains the following (on both devices):# this file is automatically generated do not edit global_defs { script_user plixer enable_script_security } vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 51 priority 90 advert_int 1 preempt_delay 5 notify /usr/share/replicator/bin/notify.sh authentication { auth_type PASS auth_pass zhO2brnVF2byl4+zL/ssTaCPmHFr5IMQJEIVDkJiFCCvBIttqjBptwm8c8PWbjqqN4BVieKunkVqPWIRp4fG0Q== } virtual_ipaddress { 10.42.150.17 } }
Modify
/etc/keepalived/keepalived.confon both instances:sudo bash -c 'echo "include /etc/keepalived/keepalived_replicator.conf" > /etc/keepalived/keepalived.conf'Restart the
keepalivedservice on both instances:sudo systemctl restart keepalived
Both Replicator instances should now be running v20.1.0 and set up as a high-availability pair using the same (pre-upgrade) configuration.
Upgrading to v19.1.1#
View guide
Because the Replicator v19.1.1 upgrade includes an OS update, v19.0.1 is required for the upgrade. If you are running an older version, follow this guide to upgrade your appliance to v19.0.1.
For assistance or clarifications, contact Plixer Technical Support.
Important notes
The upgrade will take at least one hour to complete.
If the Replicator appliance is able to access files.plixer.com, the
REPO_HOSTvariable should be set tofiles.plixer.comfor the steps outlined below. For offline upgrades, the IP address of the offline repo should be used instead.Due to an increase in minimum specs, older VMs with 2 GB of RAM should be provisioned with 4 GB RAM before the upgrade.
The upgrade requires a minimum of 16 GB free space on root (
/). There may be older logs (sudo rm /var/log/messages-*) that can be deleted to free up space.
Upgrade process
The process of upgrading a v19.0.1 Replicator appliance to v19.1.1 involves the following steps:
Backing up the v19.0.1 database and server-specific files using the
backupinteractive mode commandDownloading the operating system upgrade script,
olmigrate.run, and running it a total of four times (with a reboot between runs)Downloading and running the Replicator v19.1.1 installation script (
replicator-install.run)Verifying that the v19.0.1 data has been successfully migrated after v19.1.1 is installed
Pre-upgrade preparation
[Hardware appliances] Create a backup of the current Replicator appliance using the backup interactive mode command (will be saved in
/home/replicator/backups) and store it on an external system/drive.[Virtual appliances] Backup the current Replicator install by taking a VM snapshot.
Confirm the current password for the
replicatorSSH user (runpasswd replicator)Verify that root login is disabled by running:
sudo sed -i 's/^#PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config
[Offline upgrades] If the Replicator appliance does not have access to
files.plixer.com, set up an offline repository for this upgrade.
Upgrading the server#
Once all preparation steps have been completed, follow these steps to upgrade the appliance:
View instructions
Important
For offline upgrades,
REPO_HOSTshould point to the IP address of the offline repo instead offiles.plixer.com.In high-availability configurations, complete the upgrade for the secondary appliance before the primary.
To verify the current progress of the OS upgrade at any time:
cat /etc/motd
or check versions between runs (
NAME=andVERSION=lines):cat /etc/os-release
SSH to the v19.0.1 appliance to be upgraded as the
replicatoruser.Verify that the current working directory is correct (
replicator):cd /home/replicator/
Download the OS upgrade script and its checksum file:
REPO_HOST=files.plixer.com curl -k -o olmigrate.run https://$REPO_HOST/plixer-repo/replicator/19.1.1/olmigrate.run curl -k -o olmigrate.run.sha256 https://$REPO_HOST/plixer-repo/replicator/19.1.1/olmigrate.run.sha256
Validate the integrity of
olmigrate.run:cat olmigrate.run.sha256 sha256sum olmigrate.run
Set the correct permissions for the OS upgrade script:
chmod a+x olmigrate.run
Run the
olmigrate.runscript a total of four times:REPO_HOST=files.plixer.com ./olmigrate.run -- -k
Important
Reboots between runs of the OS upgrade script (
olmigrate.run) can take a long time. Before trying to reconnect to the appliance, start aPINGto the Replicator IP address and wait for it to become available again. Do NOT manually reboot the server.After the fourth
olmigrate.runrun (there will be no reboot), change directories to/tmpfor the installation of Replicator v19.1.1:cd /tmp/
Download the Replicator v19.1.1 installation script and its checksum file:
REPO_HOST=files.plixer.com curl -k -o replicator-install.run https://$REPO_HOST/plixer-repo/replicator/19.1.1/replicator-install.run curl -k -o replicator-install.run.sha256 https://$REPO_HOST/plixer-repo/replicator/19.1.1/replicator-install.run.sha256
Validate the integrity of
replicator-install.run:cat replicator-install.run.sha256 sha256sum replicator-install.run
Update permissions for the
replicator-install.runscript:
chmod a+x replicator-install.run
Run
replicator-install.runto install Replicator v19.1.1:
REPO_HOST=files.plixer.com ./replicator-install.run -- -k
After the installation script finishes running, reboot the appliance:
sudo shutdown -r now
After the reboot, SSH to the appliance again to reset the password for the
adminUI user:
manage --cli
password webui
After completing the above steps, the Replicator appliance will be on v19.1.1.
Offline upgrades to v19.1.1#
The following instructions for setting up an offline repo are intended for upgrading to Replicator v19.1.1 only:
View instructions
SSH to the VM as the
plixeruser:ssh plixer@SCRUTINIZER_VM_IP
Create the offline repo directory and assign it the correct permissions:
sudo mkdir /var/db/big/offline sudo chown plixer:plixer /var/db/big/offline
Download the offline tar file for Replicator 19.1.1 and its checksum file:
curl -o /var/db/big/offline/19.1.1_offline.tgz https://files.plixer.com/plixer-repo/replicator/19.1.1_offline.tgz curl -o /var/db/big/offline/19.1.1_offline.tgz.sha256 https://files.plixer.com/plixer-repo/replicator/19.1.1_offline.tgz.sha256
Validate the integrity of
19.1.1_offline.tgz:cat /var/db/big/offline/19.1.1_offline.tgz.sha256 sha256sum /var/db/big/offline/19.1.1_offline.tgz
Extract the offline tar file:
cd /var/db/big/offline tar xvf 19.1.1_offline.tgz
Create a symlink in the html directory to the offline repo:
ln -s /var/db/big/offline/plixer-repo /home/plixer/scrutinizer/html/plixer-repo
After the offline repo has been set up, the VM’s IP address should be used in place of files.plixer.com for REPO_HOST in the upgrade instructions.
Upgrading to v19.0.1#
View guide
To upgrade to Replicator v19.0.1, v18.14 or higher is required.
Hint
For clarifications or assistance with upgrading, contact Plixer Technical Support.
Upgrade requirements
v18.14 or higher installed
CentOS 7 (OS)
An active Internet connection
Upgrade instructions
Before performing an upgrade (or any other system change), it is highly recommended to use the backup interactive mode command to back up the Replicator database.
Hint
Backups are stored in /home/replicator/backups. To restore from a backup file, use the restore command.
Important
When upgrading Replicator appliances in HA configurations, the fail-over appliance should be upgraded before the primary to minimize downtime.
The following instructions cover the upgrade process for both primary and fail-over appliances in HA configurations:
View instructions
SSH to the appliance as the
replicatoruser and start a new tmux session:tmux new -s upgrade
Download the installer/upgrade script:
cd /tmp curl -o replicator-install.run https://files.plixer.com/plixer-repo/replicator/19.0.1/replicator-install.run
Download the checksum file and validate the integrity of the
replicator-install.runfile:curl -o replicator-checksums.txt https://files.plixer.com/plixer-repo/replicator/19.0.1/replicator-checksums.txt cat replicator-checksums.txt sha256sum replicator-install.run
Set the correct permissions for the installer:
chmod 755 replicator-install.run
Run
replicator-install.run:./replicator-install.run
After the upgrade is complete, the appliance will automatically reboot. To verify that the upgrade was successful, launch interactive mode and check the version number when the tool loads.
Note
After upgrading a fail-over appliance in an HA deployment, use the role test secondary interactive mode command to verify the current HA configuration before proceeding to upgrade the primary appliance.
Upgrading to v18.14#
View guide
To upgrade to Replicator v18.14 from v18.5 or higher, follow the steps described below.
Hint
For clarifications or assistance with upgrading, contact Plixer Technical Support.
Upgrade requirements
v18.5 or higher installed
An active Internet connection
Upgrade instructions
Before performing an upgrade (or any other system change), it is highly recommended to use the backup interactive mode command to back up the Replicator database.
View instructions
SSH to the appliance as the
replicatoruser and start a new tmux session:tmux new -s upgrade
Download the upgrade script:
cd /home/replicator/files curl -k -o upgrade_18.14.sh https://files.plixer.com/downloads/replicator/18/upgrade_18.14.sh
Set the correct permissions for the upgrade script:
chmod 755 upgrade_18.14.sh
Run
upgrade_18.14.sh:./upgrade_18.14.sh
After the upgrade is complete, the appliance will automatically reboot. To verify that the upgrade was successful, launch interactive mode and check the version number when the tool loads.