Load logs are cleared after upgrading the console

After an upgrade, the Db2® Data Management Console load log directory is cleared and cannot be retrieved.

Symptoms

The Db2 Data Management Console load log data is stored in the following directory.
/mnt/pv/unified_console_data/load/admin/loadlogs
After you upgrade Db2 Data Management Console, the loadlogs directory is cleared can no longer be recovered.

Resolving the problem

As a workaround, perform these steps:
  1. Before upgrading, run the following command to backup the load logs.
    oc cp ibm-dmc-{$dmc_instance_id}-admin-{$random-id}:/mnt/pv/unified_console_data/load/admin/loadlogs /{$directory}/loadlogs -n ${PROJECT_CPD_INST_OPERANDS}
    For example,
    oc cp ibm-dmc-1620274898619847-admin-7cf86d9cdb-jqns4:/mnt/pv/unified_console_data/load/admin/loadlogs /root/loadlogs -n ${PROJECT_CPD_INST_OPERANDS}
  2. After upgrading, run the following command to restore the load logs.
    oc cp /{$directory}/loadlogs ibm-dmc-{$dmc_instance_id}-admin-{$random-id}:/mnt/pv/unified_console_data/load/admin/loadlogs -n ${PROJECT_CPD_INST_OPERANDS}
    For example,
    oc cp /root/loadlogs ibm-dmc-1620274898619847-admin-7cf86d9cdb-jqns4:/mnt/pv/unified_console_data/load/admin/loadlogs -n ${PROJECT_CPD_INST_OPERANDS}