Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
This is a reference document on how to move existing or fresh install ThingworxStorage location.
Note: As of Thingworx 7.0 the platform-settings.json file has changed and therefore the newest version needs to be used to change the location of the folders. Please refer to this guide pg.45-46 to see the new .json file.http://support.ptc.com/WCMS/files/170230/en/Installing_ThingWorx_7.1.pdf A sample json is attached at the bottom of this document.
Here are the main bullet points that need to be kept in mind when performing a migration process:
Note: if there is any data in the ThingworxStorage (see ThingworxStorageCopy and ThingworxBackupStorageCopy from step 2), stop the tomcat and place the contents of the original folders into the new ones or just replace the directories.
For Postgresql scenarios:
Ensure postgresql database is running. If fresh install/no need to preserve data, and in case of 401 error, clean the existing database via the script and run the two scripts to install and setup DB and Schema. Start tomcat and verify connection.
If data does need to be preserved, then run the schema update script to update from 6.5 to 6.6. then to 7.0 and 7.1 respectively, depending on which version you are starting with.
To change the location of where postgresql would write data, find the thingworxPostgresDBSetup.sh script open it to edit:
tablespace_location="/ThingworxPostgresqlStorage"
Then re-run the DBsetup and Schema setup while tomcat is stopped.
For assistance in resolving any difficulties related to the migration process, please contact Thingworx Technical Support.
The post ThingWorx 7 doesn't take into account storage location the same way as TWX6 said that there's a problem to move the folder ThingworxPlatform. I had all of this worked on TWX 6.5.6. Now I use the 7.1.2, I tried to move only the ThingworxPlatform and added "THINGWORX_PLATFORM_SETTINGS=/home/..." in "$CATALINA_HOME/bin/setenv.sh" but it didn't work.