Upgrading PMF 9.0.x/9.x/10.0 to latest PMF release (On-prem)
This topic is meant for upgrading 9.0.x/9.x/10.x to the latest PMF release.
Prerequisites
PMF-PKG-<version>.zipfile (Provided by Persistent Systems) for PMF 10.x.- OpenSearch should be up and running. The Elasticsearch component has being replaced by OpenSearch in PMF 10.x. For more information, see Installing and configuring OpenSearch.
Jump to
Pre-installation tasks
- Release 10.1 (Beta) Ensure that the application is updated to use Jakarta libraries.For more information on details to update the adapters, see Adapter readiness checklist.
-
Check installed Java version.
a. Check
javaandjava_homepath by using the following command.Java -version echo $JAVA_HOME -
Upload PMF product to server.
a. Create a
10.xfolder inside/opt/PSLdirectory.b. Upload
PMF-PKG-<version>.zipfile to the/opt/PSL/10.xand extract by using the following command.unzip PMF-PKG-<version>.zipc. Provide permissions by using the following command.
chmod 775 -R /opt/PSL/10.x -
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 exportd. Migrate data to OpenSearch by using the following command.
npm run migratee. Validate migration by using the following command.
npm run migrate -- -v
Procedure
-
Update PMF Analytics Receiver component configuration file.
a. Go to
/opt/PSL/10.x/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 PMF 9.x
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.x/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.x/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.x/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples/configure-liberty-analytics-receiver.xml update -
Update PMF Analytics component configuration file.
a. Go to
/opt/PSL/10.x/Persistent_Mobile_Foundation/Analytics/configuration-samplesand edit theconfigure-liberty-analytics.xmlfile to set the values of the JNDI properties.Note: You can use the PMF 9.x
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.x/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/Analytics/configuration-samples/configure-liberty-analytics.xmld. Migrate Analytics component by using the following command.
./ant -f /opt/PSL/10.x/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. Release 10.1 (Beta) Update the Application server features.
h. Release 10.1 (Beta) To enable secure connections, see Configuring secure connections.
i. Start the server.
j. 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.x/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 PMF 9.x
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.x/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/ configure-appcenter-liberty-db2.xmld. Migrate AppCenter component by using the following command.
./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/configure-appcenter-liberty-db2.xml updatee. Release 10.1 (Beta) Update the Application server features.
f. Release 10.1 (Beta) To enable secure connections, see Configuring secure connections.
g. Start the server.
h. 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.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samplesand edit theconfigure-liberty-db2.xmlfile to set the values of the JNDI properties.Note: You can use the PMF 9.x
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.x/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xmld. Migrate Admin component by using the following command.
./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml admupdatee. Migrate Runtime component by using the following command.
./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml rtmupdatef. Migrate LiveUpdate component by using the following command.
./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml liveupdateupdateg. Migrate Push component by using the following command.
./ant -f /opt/PSL/10.x/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml pushupdateh. Edit
config.propertiesfile and whitelist your servers./…/wlp/usr/servers/<servername>/config.propertiesi. Release 10.1 (Beta) Update the Application server features.
j. Release 10.1 (Beta) To enable secure connections, see Configuring secure connections.
k. Start the server.
l. Go to browser and verify you can access the Admin console.
http://<host>:<port>/mfpconsole -
Release 10.1 (Beta) Redeploy the Adapters.
If there are any adapters that need migration, the PMF Admin console on the left pane shows a warning symbol against Runtime and Adapters sections.
A sample image of PMF Operation console showing Need Migration section lists Adapters that are pending to be redeployed by using "jakarta-compliant" libraries. Functional adapters section lists Adapters that are functional. - Click Adapters tab to see a list of all the adapters that need migration.
- Rebuild the adapters with updated libraries and redeploy them. Redeploy adapters that were built during Adapter readiness checklist phase.
- Verify and test adapter functionality post redeployment.
Rolling back
You can roll back from PMF 10.x to PMF 9.x by using the backup you took in the Step#4 of Pre-installation tasks section.
Roll back the migration as follows.
- Stop server.
- Rollback the database.
-
Rename the
wlpdirectory towlp_10.xby using the following command.mv wlp wlp_10.x -
Revert
wlpdirectory to previous PMF 9.x stage by using the following command.tar -xvzf wlp.tar.gz - Start server, services resume with PMF 9.x.