Migrating from MFP 8.0 (On-prem)
This topic is meant for existing IBM® MobileFirst Foundation 8.0 users that want to migrate to the PMF 10.0 on-prem deployment.
Prerequisites
-
See Java Development Kit (JDK) for the recommended JAVA version.
Note:
Javaandjava_homepath must be added to environment variables. - See WebSphere® Application Server Liberty for the recommended WebSphere® Application Server Liberty version.
PMF-PKG-<version>.zipfile (Provided by Persistent Systems) for PMF 10.0.-
Your mobile client applications (Android, iOS) and IBM MobileFirst Foundation 8.0 adapters are compatible with the recommended JAVA version.
- OpenSearch should be up and running. The Elasticsearch component has being replaced by OpenSearch in PMF 10.0. For more information, see Installing and configuring OpenSearch.
Jump to
Pre-installation tasks
Involves following steps.
- Check installed Java version.
-
Check
javaandjava_homepath by using the following command.java -v echo $JAVA_HOME
-
-
Upload PMF product to server.
a. Create a
10.0folder inside/opt/PSLdirectory.b. Upload
PMF-PKG-<version>.zipfile to the/opt/PSL/10.0and extract by using the following command.unzip PMF-PKG-<version>.zipc. Provide permissions by using the following command.
chmod 775 -R /opt/PSL/10.0 -
Backup WebSphere® Application Server.
a. Stop the server.
b. Backup the database.
c. Take WAS backup by using the following command.
tar -cvzf wlp.tar.gz wlp -
Migrate the Elasticsearch data to OpenSearch.
For more information, see Migrating Elasticsearch data to OpenSearch.
a. Go to
tools/elasticsearch-opensearch-migrationdirectory of the extracted package and install application prerequisites by running the following command.export PATH=/< extracted path>/tools/elasticsearch-opensearch-migration/node-linux-x64/bin:$PATH cd /<extracted path>/tools/elasticsearch-opensearch-migration/analytics-data-migration-tool npm install node -vb. Update the
config.jsonparameters as required.c. Export Elasticsearch data by using the following command.
cd /<extracted path>/tools/elasticsearch-opensearch-migration/analytics-data-migration-tool npm run export -- -b 100d. Migrate data to OpenSearch by using the following command.
npm run migrate -- -b 100e. Validate migration by using the following command.
npm run migrate -- -v
Procedure
Involves following steps.
-
Update PMF Analytics Receiver component configuration file.
a. Go to
/opt/PSL/10.0/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samplesand edit theconfigure-liberty-analytics-receiver.xmlfile to set the values of the JNDI properties.Note: You can use the IBM MobileFirst
configure-liberty-analytics-receiver.xmlfile as a reference.b. Save the file after the properties are defined.
c. Run the following commands to show a list of possible targets for the Ant file.
cd /opt/PSL/10.0/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples/configure-liberty-analytics-receiver.xmld. Migrate Analytics Receiver component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples/configure-liberty-analytics-receiver.xml update -
Update PMF Analytics component configuration file.
a. Go to
/opt/PSL/10.0/Persistent_Mobile_Foundation/Analytics/configuration-samplesand edit theconfigure-liberty-analytics.xmlfile to set the values of the JNDI properties.Note: You can use the IBM MobileFirst
configure-liberty-analytics.xmlfile as a reference.b. Save the file after the properties are defined.
c. Run the following commands to show a list of possible targets for the Ant file.
cd /opt/PSL/10.0/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/Analytics/configuration-samples/configure-liberty-analytics.xmld. Migrate Analytics component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/Analytics/configuration-samples/configure-liberty-analytics.xml updatee.Add the following properties to the
server.xmlfile.<jndiEntry jndiName="analytics/datastore_url" value="<OpenSearchURL>"/> <jndiEntry jndiName="analytics/datastore_username" value="OpenSearchUser"/> <jndiEntry jndiName="analytics/datastore_password" value="OpenSearchPassword"/> <jndiEntry jndiName="analytics/tenant" value="OpenSearchTenant"/>f. Edit
config.propertiesfile and whitelist your servers./…/wlp/usr/servers/<servername>/config.propertiesg. Start the server.
h. Go to browser and verify you can access the Analytics console.
http://<host>:<port>/analytics/console -
Update PMF Application Center component configuration file.
a. Go to
/opt/PSL/10.0/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samplesand edit theconfigure-appcenter-liberty-db2.xmlfile to set the values of the JNDI properties.Note: You can use the IBM MobileFirst
configure-appcenter-liberty-db2.xmlfile as a reference.b. Save the file after the properties are defined.
c. Run the following commands to show a list of possible targets for the Ant file.
cd /opt/PSL/10.0/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/ configure-appcenter-liberty-db2.xmld. Migrate AppCenter component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/configure-appcenter-liberty-db2.xml updatee. Edit
config.propertiesfile and whitelist your servers./…/wlp/usr/servers/<servername>/config.propertiesf. Start the server.
g. Go to browser and verify you can access the ApplicationCenter console.
http://<host>:<port>/appcenterconsole -
Update PMF Admin, Runtime, LiveUpdate, Push components configuration files.
a. Go to
/opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samplesand edit theconfigure-liberty-db2.xmlfile to set the values of the JNDI properties.Note: You can use the IBM MobileFirst
configure-liberty-db2.xmlfile as a reference.b. Save the file after the properties are defined.
c. Run the following commands to show a list of possible targets for the Ant file.
cd /opt/PSL/10.0/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xmld. Migrate Admin component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml admupdatee. Migrate Runtime component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml rtmupdatef. Migrate LiveUpdate component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml liveupdateupdateg. Migrate Push component by using the following command.
./ant -f /opt/PSL/10.0/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml pushupdateh. Edit
config.propertiesfile and whitelist your servers./…/wlp/usr/servers/<servername>/config.propertiesi. Start the server.
j. Go to browser and verify you can access the Admin console.
http://<host>:<port>/mfpconsole -
Deploy the compiled OpenJDK Adapters/apps and perform testing.
See Java Development Kit (JDK) for the recommended JAVA version.
Rolling back
You can roll back from PMF 10.0 to MFP 8.0 by using the backup you took in the Step#3 of Pre-installation tasks section.
Roll back the migration as follows.
- Stop server.
- Rollback the database.
- Rollback
javaandjava_homepath to point tojava 8. -
Rename the
wlpdirectory towlp_10.0by using the following command.mv wlp wlp_10.0 -
Revert
wlpdirectory to previous MFP stage by using the following command.tar -xvzf wlp.tar.gz - Ensure that Start server, services resume with MFP-8.0.