Die BPC Version 4.1 wird nicht mehr gewartet.

Sollten Sie diese BPC Version nutzen, empfehlen wir Ihnen eine Migration auf eine aktuelle Version. Die Dokumentation zur neusten BPC Version finden Sie hier. Sollten Sie Fragen haben, wenden Sie sich bitte an unseren Support.

Migration from BPC 4.0 to BPC 4.1

This page describes how to migrate an existing BPC 4.0 installation to BPC 4.1.

If you are planning a migration from BPC 3.*, please first perform the Migration from BPC 3.* to BPC 4.1.

Please also note the breaking changes at Changelog. Be sure to review all entries between your current version and the target version. This may mean that you need to consider the Changelog of multiple versions.

Initial Situation

You have installed BPC 4.0 and it is running.

The INSTALLATIONSVERZEICHNIS looks something like this:

Diagram

Backup

The existing installation will not be modified during the migration; however, it is recommended that you create a backup of the existing installation.

Preparation

Install BPC 4.1 as described in the Installation, without changing any existing symlinks and without starting the newly installed components (OpenSearch and Karaf).

The INSTALLATIONSVERZEICHNIS looks something like this:

Diagram

Migration

The migration involves transferring the existing data (including the configuration) from Elasticsearch to OpenSearch.

Proceed as follows:

  1. Stop Karaf (Elasticsearch must continue to run)

    e.g., via karaf/bin/stop

  2. Create a snapshot of all indices in Elasticsearch:

    • Unix systems

    • Windows systems

    curl -X PUT 'localhost:9200/_snapshot/bpc_backup/migration?wait_for_completion=true'
    curl -X PUT "localhost:9200/_snapshot/bpc_backup/migration?wait_for_completion=true"

    You can also specify a selection of indices at this point. For the exact syntax and all options, see https://www.elastic.co/guide/en/elasticsearch/reference/7.10/snapshots-take-snapshot.html. You must include at least the index bpc-configuration.

  3. Stop Elasticsearch

  4. Start OpenSearch

  5. Create a backup repository

    • Unix systems

    • Windows systems

    curl -X PUT -H 'Content-Type: application/json' -k -u admin:admin 'https://localhost:9200/_snapshot/bpc_backup' -d '{ "type": "fs", "settings": { "location": "bpc_backup" } }'
    curl -X PUT -H "Content-Type: application/json" -k -u admin:admin "https://localhost:9200/_snapshot/bpc_backup" -d "{ ""type"": ""fs"", ""settings"": { ""location"": ""bpc_backup"" } }"
  6. Stop OpenSearch

  7. Copy the Elasticsearch backup to OpenSearch

    Copy the directory INSTALLATIONSVERZEICHNIS/elasticsearch/data/bpc_backup to INSTALLATIONSVERZEICHNIS/opensearch_data/bpc_backup

  8. Start OpenSearch

  9. Load backups

    • Unix systems

    • Windows systems

    curl -X POST -H "Content-Type: application/json" -k -u admin:admin 'https://localhost:9200/_snapshot/bpc_backup/migration/_restore' -d '{ "indices": "*,-.opendistro_security", "include_global_state": false }'
    curl -X POST -H "Content-Type: application/json" -k -u admin:admin "https://localhost:9200/_snapshot/bpc_backup/migration/_restore" -d "{ ""indices"": ""*,-.opendistro_security"", ""include_global_state"": false }"
  10. Delete snapshots that are no longer needed

    • Unix systems

    • Windows systems

    curl -X DELETE -k -u admin:admin 'https://localhost:9200/_snapshot/bpc_backup/migration'
    curl -X DELETE -k -u admin:admin "https://localhost:9200/_snapshot/bpc_backup/migration"

Follow-up

  1. The symlinks _jvm and karaf should now be updated to point to the new directories.

    BPC 4.1 remains compatible with Java 11. However, support for Java 11 expired in 2023. A migration to Java 17 is recommended.

    When used in conjunction with INUBIT, you can continue to use the Java version shipped with INUBIT.

  2. The existing BPC license must be copied to the directory INSTALLATIONSVERZEICHNIS/karaf/deploy.

  3. The required database drivers must be installed.

  4. The new Karaf and OpenSearch (if not already done) can now be started.

Please note that the old BPC installation is no longer started automatically (e.g., via systemd).

The INSTALLATIONSVERZEICHNIS looks something like this:

Diagram

The old installation can now be deleted if necessary.


Keywords: