This procedure is for sites running the APEL regional server. Sites running the APEL client are not affected by the schema change described in this document.
Version 1.3 of the APEL server software uses a different database schema to version 1.2. This change was made to allow normalised summary records to be sent to APEL servers which necessitated altering one table among other changes. This requires extra steps to be performed during an upgrade.
The outline of this procedure is to export all the data from the database except for the super-summaries that are compiled from job recrods and received summaries. The super-summaries are then recreated after importing the data once the schema has been updated.
- Stop any APEL services that use the database (dbloader, dbunloader, summariser). SSM can continue to run.
- Do a full database backup.
- Export all data except for the SuperSummaries table. (Assuming the database is named
apel
.)
mysqldump -u root -p --no-create-info --ignore-table=apel.SuperSummaries apel | gzip > upgrade_data.sql.gz
- Log into MySQL and drop the database.
- Upgrade the RPMs. (Assuming v1.3.1 packages for SL5 are used.)
rpm -U apel-lib-1.3.1-1.el5.noarch.rpm apel-server-1.3.1-1.el5.noarch.rpm
- Log into MySQL and create a new empty database.
- Load the new server schema.
mysql -u root -p apel < /usr/share/apel/server.sql
- Import data.
zcat upgrade_data.sql.gz | mysql -u root -p apel
- Run the summarising process to rebuild the super-summaries.
- Restart all APEL services.
Support with this procedure is available through GGUS.