Upgrades and rollback
How an upgrade works on each platform, the snapshot taken before it, and how to go back.
How upgrades work
Run the newer installer over the same install. Accounts, databases, the .env file and installed packs carry over. The installers never overwrite the data folder, the plugins folder, the logs or the .env file.
Before any upgrade, take a backup you can restore on another host, and read the release notes for upgrade notes. The What's New button in the product shows the notes for the installed release. Releases are available to customers from the Downloads page of the customer portal at /portal/downloads.
| Host | Command |
|---|---|
| Windows | Run the new farwatch-setup exe over the same folder. See Install on Windows Server. |
| RHEL | sudo dnf install ./icc-<version>-1.x86_64.rpm |
| Ubuntu | Run the same install.sh command with the new tarball. |
| Containers | Pull or load the new image, then docker compose -f compose.yaml up -d. |
| Helm | helm upgrade farwatch deploy/helm/farwatch -n farwatch --reuse-values --set image.tag=<new> |
Database migrations run once at first boot of the new version. On PostgreSQL an upgrade also rebuilds some indexes once in the background if the release asks for it. See the release notes.
The snapshot
Windows, RPM and Ubuntu upgrades snapshot the data folder before they change anything.
- The installer checks for free space for the copy. On Windows, RPM and Ubuntu, if the disk cannot hold it, the upgrade stops before any service is stopped.
- It stops the poller and the dashboard so the copy is of a quiet database.
- It copies the data folder to backend/data.bak-<stamp> (backend\data.bak-<stamp> on Windows).
- After the services are back, a background job compresses each snapshot folder to a zip on Windows or a tar.gz on Linux, verifies the archive by listing it, and removes the folder. The newest five snapshots are kept, folders or archives.
Budget free space for one uncompressed copy of the data folder during the upgrade. Windows and RPM leave the folder in place if you ask: /KEEPBACKUPFOLDERS=1 for the Windows installer, ICC_KEEP_BACKUP_FOLDERS=1 in the environment of the dnf command.
The snapshot leaves out the backups, archive (sealed closed-tenant archives) and support folders, earlier data.bak-* and data.fresh-* folders, data.pre-restore-* folders and .pre-product- files. Those entries stay in place in the data folder and must never be deleted.
The snapshot is for rolling back a failed upgrade. It is taken once per upgrade. It is not a schedule. For scheduled, verified backups, see Backup and restore.
Roll back on Windows
In an elevated prompt:
Stop the two services, ICC-Poller and ICC-Dashboard.
In the backend folder, if the snapshot is a zip, extract it with
tar -xf data.bak-<stamp>.zip.Rename the current data folder with
ren data data.failed-<stamp>. Never delete it.Rename the snapshot with
ren data.bak-<stamp> data.Move backups, archive and support (and any .pre-product- files you want) from data.failed-<stamp> back into data.
Run the installer's own access rules over the restored folder. The restored snapshot is locked to SYSTEM and Administrators, so without this step the services cannot open their databases:
powershell -NoProfile -ExecutionPolicy Bypass -File "<install folder>\service\setup\install.ps1" -Root "<install folder>" -RepairAclStart the services.
Roll back on RHEL
With the units stopped, keep the failed data folder:
sudo systemctl stop icc-poller icc-dashboard
cd /opt/icc/backend
sudo tar -xzf data.bak-<stamp>.tar.gz -C /opt/icc/backend # only when the snapshot is an archive
sudo mv data data.failed-<stamp>
sudo cp -a data.bak-<stamp> data
for e in backups archive support; do [ -e data.failed-<stamp>/$e ] && sudo mv data.failed-<stamp>/$e data/; done
# also move back any data.failed-<stamp>/*.pre-product-* files you want
sudo chown -R icc:icc data && sudo chmod 0700 data
sudo systemctl start icc-dashboard && sleep 20 && sudo systemctl start icc-pollerIf the snapshot is an archive, the extract step creates the data.bak-<stamp> folder that the cp command then uses. The RPM check for free space happens before any change, so a refused upgrade needs no rollback.
Going back to an older release
Database file names changed at release 1.3.1. The default tenant's database files are named icc.db and icc.admin.db. Before 1.3.1 they were cohesity.db and cohesity.admin.db. The installer renames them on an upgrade. If the rename cannot run, the install keeps working on the old names and the installer says so. The command that retries it, with the services stopped, is icc-cli rename-db. See Command line reference.
To go back to 1.3.0 or any older release, do it in this order:
- Stop the services.
- Run
icc-cli rename-db --revertwith the newer release's command line tool. - Only then install the older release, or restore the snapshot, which already holds the old names.
If you install the older release first, it starts on empty cohesity.db and cohesity.admin.db files and comes up with no settings, stored credentials or collected data until the files are put back. Accounts live in global.db, so people can still sign in.
Put DASHBOARD_DB_PATH and DASHBOARD_ADMIN_DB_PATH in the install's .env file if you set them. A systemd drop-in or a service definition is not read by icc-cli, so a rename would not see them.
After an upgrade
- Open System Health and read the findings. See System Health and the support bundle.
- Update packs from Global Settings > Platforms. See Plugin packs and the marketplace.
- Check the backup schedule. See Backup and restore.