Migrate iplm-backend-redis package to Redis open source package

Overview

You can migrate your old Redis dump file to the new Redis environment if you already have the iplm-backend-redis package installed.

Though both packages can be installed at the same time, unless the port number of one of the servers has changed from the default they will not be able to both run simultaneously.

The version of Redis shipped with iplm-backend-redis is no longer supported by the Redis community.

Considerations

  • iplm-backend-redis stores its database file at /var/log/mdx-backend-redis/redis.rdb. This file is saved when redis is shutdown, or when a save command is issued within the redis-cli.

  • If you are only using redis for IPLM Server, using the old style pubsub events, then moving the old dump file to the new redis server isn’t necessary.

  • If you are using stream events and want to keep event history, or are using Redis with IPLM Cache, then migrating the old data to preserve status is required.

  • If you are running Redis in a cluster environment, then this should be done on the master server.

Migrate Redis

The format of the Redis dump file is the same between versions, so migrating from iplm-backend-redis to open source Redis is a straight forward process.

Run the following commands Redis:

Copy
sudo systemctl stop mdx-backend-redis
sudo cp /var/log/mdx-backend-redis/redis.rdb /var/lib/redis/dump.rdb
sudo chown redis:redis /var/lib/redis/dump.rdb
sudo systemctl start redis

This shuts down the old Redis instance, which forces it to write out the database contents. The dump file is then copied to the new location and permissions set on it, and finally the new Redis is started and it will pick up the copied database file and start using that.