Upgrading a schema version
This procedure describes how to introduce a new schema version to a HCL Compass MultiSite clan by synchronizing the new schema to all sites before upgrading any user databases. You must follow this procedure to help ensure a stable and reliable HCL Compass MultiSite environment.
About this task
In
addition to following this procedure, you must also not do the following when
using HCL Compass MultiSite:
- Delete record types and states
- Change the working master if all databases are not using the same schema version
- Change mastership of package-owned queries
To upgrade a schema version:
- Make the desired schema changes and test them against a local test database.
- Notify all users that maintenance has been scheduled and they must disconnect from all user databases in the HCL Compass MultiSite clan.
- Suspend automated synchronization between all user databases in the HCL Compass MultiSite clan.
- (Optional) Stop and restart your vendor database server to ensure that there are no open connections to the schema repository or user databases.
- Synchronize all sites in the HCL Compass MultiSite clan. After synchronization, check the incoming and outgoing storage bays to make sure that all packets were sent and imported. Run the lsepoch command at each site to verify that all replicas report the same epoch estimates.
- Back up all schema repositories and user databases in the HCL Compass MultiSite clan.
- Check in the new schema version at the master schema repository replica, but do not upgrade the user database.
- Export and send an update packet from the MASTR family only (not the user
database family) to all other sites in the clan.
multiutil syncreplica -export -clan DEMO -site SITEA -family MASTR
-u admin -p "" -out c:\cqms\syncA.xml SITEB
Multiutil: Packet file 'c:\cqms\syncA.xml' generated - Import the update packet at all sites.
multiutil syncreplica -import -clan DEMO -site SITEB -family MASTR
-u admin -p "" c:\cqms\syncA.xml
Multiutil: 1 transactions from SITEA have been replayed into the
MASTR database
Multiutil: Deleting packet c:\cqms\syncA.xmlNote: At this point, the schema version exists at all the sites in the clan, but the user databases have not been upgraded. - Upgrade the user databases by performing the following steps. This ensures
that all replicas in the family are running the same version of the schema
before you restart synchronization.
- Upgrade the user database at the working master site.
- Synchronize all sites.
- Upgrade the user databases at all remaining sites.
- Restart synchronization among the user databases at your sites.
- Confirm that all synchronizations are successful and that all user databases in the clan are using the same schema version.
- Notify users that the replicas are available.