Upgrading a Cluster with Spatial
When a common repository database is used for clustering, these additional steps are required before and after the Spectrum Technology Platform upgrade process. This upgrade process must be followed even if you have a single node with a common repository database.
Before the upgrade, you must move to a local database setup; after the upgrade, you then change back to the cluster setup by pointing repository.xml to the external database.
Note: To preserve access control settings, use the Administration Utility instead of WebDAV. See the Administration section of the Spectrum Spatial Guide for instructions on using the limrepo commands in the Administration Utility.
-
Before upgrading Spectrum Technology Platform, back up the repository by
following these steps.
- Select a node from the cluster. This will be the seed node (see Installing a Cluster).
- Back up the repository content using the Administration Utility's limrepo export command with ACL, pointing to the seed node.
- Back up the Spectrum\server\modules\spatial\jackrabbit folder to a location outside the installation folder.
-
Switch the common repository database to a local database (temporarily, just
for upgrade purposes). Apply these steps to all nodes in the cluster.
- Stop the Spectrum Technology Platform server on all nodes (for instructions, see Stopping a Cluster).
- Delete the repository, version, workspaces folders and the lock.properties file (if available) from the jackrabbit folder (Spectrum\server\modules\spatial\jackrabbit).
- Create a backup copy of repository.xml and name it repository-Copy.xml for example.
- Copy the contents of repository.standalone.xml to repository.xml.
- Start the Spectrum Technology Platform server on all nodes (for instructions, see Starting a Cluster).
- Import the repository content (backed up in Step 1b) into the repository using the limrepo import command with ACL for all nodes.
- Stop the Spectrum Technology Platform server.
- Follow normal procedures in Upgrading a Cluster to upgrade Spectrum Technology Platform to the new version on all nodes.
-
For the seed node only, after the Spectrum Technology Platform upgrade is
complete, back up the upgraded content by following these steps.
- Start the upgraded Spectrum Technology Platform server on the seed node and download the Administration Utility.
- Back up the content from the repository using the limrepo export command with ACL by pointing to the seed node.
- Stop the Spectrum Technology Platform server on all nodes (for instructions, see Stopping a Cluster).
- On all nodes, back up the upgraded Spectrum\server\modules\spatial\jackrabbit folder to a location outside the installation folder.
-
On all nodes of the Spectrum Technology Platform modify the configuration to specify the common database.
- Restore the backup repository-Copy.xml file to repository.xml.
- Remove these folders from the /server/modules/spatial/jackrabbit folder: repository, version, workspaces.
-
If your database has previously contained any repository content, you must
remove these tables to create a clean repository:
- default_binval
- default_bundle
- default_names
- default_refs
- rep_fsentry
- rep_global_revision
- rep_journal
- rep_local_revisions
- security_binval
- security_bundle
- security_names
- security_refs
- version_binval
- version_bundle
- version_names
- version_refs
version_seq_names_id, security_seq_names_id
, anddefault_seq_names_id
. -
On the seed node only, import the backed up repository content.
-
Start the Spectrum Technology Platform server.
For instructions, see Starting a Cluster.
- Import the contents using the limrepo import command, pointing to the seed node.
-
Start the Spectrum Technology Platform server.
-
Start the remaining nodes in the cluster.
For instructions, see Starting a Cluster.