The first task to be done is to migrate the Production 188.8.131.52 into another server (184.108.40.206). This is an optional task, however, in my case it's required as my client does not want to touch the production server.
Prior to my task, Operations helped us export the Production 220.127.116.11 by doing the following :
- Run the following command : ./xmlaccess.sh –in ExportRelease.xml –user [username] -password [password]
-url http://[server] :9081/wps/config -out /tmp/release20090429/config.xml.
You can get the ExportRelease.xml HERE
- Backup the following files : PortalServer/installableApps, PortalServer/installedApps, AppServer/installedApps/[server]
/wps.ear ,PortalServer/shared, PortalServer/deployed.
- Once done, the Operations have passed to me the config.xml file. And I'm good to go to import the settings and files to the new 18.104.22.168 server.
The below contains some tips and tricks as you will find out.
For our import to work, the following is required :
- The Portal 5.1 must be setup as an empty portal. Portal Server 5.1 does not contain an "action-empty-portal" reference on WPConfig.sh (bat). So you have to install it as empty. However, there's a workaround on this as shown later.
- You need to install all the fixes on the following link (otherwise you will hit issues such as Import takes very slow, etc.). Download the files HERE. You need an IBM Login to download the files. Don't install as yet.
- For my case, since Portal 5.1 was not an empty portal when it was handed over to me, (as I forgot to let them know that I need an empty portal) I have to use Portal 6.0 scripts and modify them. These scripts are compatible. Let me explain.
action-empty-portal actually runs 3 XML Scripts via xmlaccess which are :
When you run wpsconfig.sh, it actually looks at the file called : wps_cfg.xml. This file maps the commands to the xml actions that needs to be run. For example, when you call action-empty-portal, the above scripts are run.
For my case, I copied these scripts from Portal 6.0 to my Portal 5.1 and modified CleanPortal (as shown HERE) in order for it to work with Portal 5.1. I don't need to use AddBasePortalResources.xml as I don't need to add the language resources. However, I need the SchedulerCleanupTask.xml (as shown HERE)
Now, I have to run these jobs individually. I ran it at this sequence :
- First, I ran this command : ./xmlaccess.sh -in
/config/work/CleanPortal.xml -user [username] -pwd [password] -out /tmp/xmlcleanportal.xml -url http://[server] :9081/wps/config
- And then, I ran this command : ./xmlaccess.sh -in
/config/work/SchedulerCleanupTask.xml -user [username] -pwd [password] -out /tmp/xmlcleanportal.xml -url http://[server] :9081/wps/config
- Before importing, I want to make sure that my credential-segment is added. So you need to run this command : WPSconfig.sh action-create-deployment-credentials
- After you run this commands, check that your portal is empty by restarting it and browsing it. You shoudl see an error something like VP Failed. This is normal for Portal 5.1.
- My portal 5.1 and the Production Portal 5.1 are of the same version so I copied everything fron the backedup installableApps and Deployed to the new Portal Server's installabeApps. After that, I copied the latest WAR files of our custom applications. If the Portal version is different, I would have just copied only the new WAR files from our custom applications
- Once done, Install the Fixes as specified in number 2.
- Copy your custom shared JAR files into the new PortalServer/shared folder.
- Copy your custom theme and skins to the new PortalServer
- Install any custom configurations and files that you may have. On my side, I configured my JDBC to the databases used by the applications. You can do whatever custom configuration and installation here (only on the WAS Side).
- Once done, I edited my config.xml (XML file backedup from the production server) to point to the correct WAR files. For information, check out THIS LINK.
- I imported my configuration by running the following : ./xmlaccess.sh -in /xmlaccessfiles/config.xml -out /tmp/import.xml -user [username]
-pwd [password]If you find that the import is running too slow (like one line per one minute), then you didn't install the fixes. Go back and check #2. -url http://[server] :9081/wps/config.
After doing so, I tested the portal server. You have to test the portal to make sure it works. For Portal 5.1, you need to take a look at your SystemOut.log and wps*.log under the PortalServer/log while testing to see if there's any portlet issues. Mine was the theme and skins due to a missing shared library I forgot to put in.
As I have tested it, my next task now is to dump this Portal using WPMigrate pre-upgrade task and import it ont he new Websphere Portal Server 6.1