Upgrading the CLM system

Purpose

This chapter describes the steps that must be performed in order to upgrade the CLM.

Note: Ensure that the old CLM is running during the upgrade.

Steps
Install the new CLM
 

Install the new CLM as described in Chapter 10, CLM system installation


Back up the existing CLM
 

To manually backup the contents of the PostgreSQL database, do the following:

  1. Log in to the pre-24.11 primary CLM server as the nsp user.

  2. Enter the following:

    nspdctl --host IP_address backup -d nspos_migration -f ↵

    where

    IP_address is the IP address of the desired CLM server

  3. Verify that the backup has completed successfully. Execute:

    nspdctl --host IP_address backup status ↵

    where

    IP_address is the IP address of the desired CLM server


Transfer the backup to the new CLM deployer host
 

Transfer the backup file to the CLM deloyer host:

scp /opt/nsp/backup/nspos_migration/nspospostgresql_backup_timestamp.tar.gz root@<deployer ip>:/root/

where

timestamp is the backup creation date and time


Restore the CLM portion of the database
 

Enter the following on the CLM deployer host:

cd /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/database ↵


Note: In a DR deployment, you must perform the steps in the data center that is the pririmary data center.

Enter the following to restore the CLM PostgreSQL database:

./nspos-db-restore-k8s.sh license-manager backup_dir/backup_file

where

backup_dir is the directory that contains the backup file

backup_file is the backup file name, for example, for PostgreSQL, the name is /root/nspos-postgresql_backup_timestamp.tar.gz

End of steps