Steps to upgrade using tpm
When you are ready to perform the upgrade, the following steps should be followed:
Ensure you place your cluster(s) into MAINTENANCE mode
If no additional steps taken, and you wish to maintain the same level of security, skip the next step.
Update your
/etc/tungsten/tungsten.iniand include some, or all, of the options below depending on which steps you took earlier. All entries should be placed within the[defaults]stanza.disable-security-controls=falseconnector-rest-api-ssl=truemanager-rest-api-ssl=truereplicator-rest-api-ssl=truejava-jgroups-keystore-path=/etc/tungsten/secure/jgroups.jceksIf "Tungsten to Database Encryption" IS configured, also add:
datasource-enable-ssl=truejava-truststore-path=/etc/tungsten/secure/truststore.tsjava-truststore-password=tungstenjava-keystore-path=/etc/tungsten/secure/keystore.jksjava-keystore-password=tungstendatasource-mysql-ssl-cert=/etc/mysql/certs/client-cert.pemdatasource-mysql-ssl-key=/etc/mysql/certs/client-key.pemdatasource-mysql-ssl-ca=/etc/mysql/certs/ca.pemIf "Tungsten to Database Encryption" IS NOT configured, also add:
datasource-enable-ssl=falseIf "Application (Connector) to Database Encryption" IS configured, also add:
enable-connector-ssl=truejava-connector-keystore-path=/etc/tungsten/secure/tungsten_connector_keystore.jksjava-connector-keystore-password=tungstenjava-connector-truststore-path=/etc/tungsten/secure/tungsten_connector_truststore.tsjava-connector-truststore-password=tungstenIf "Application (Connector) to Database Encryption" IS NOT configured, also add:
enable-connector-ssl=falseImportantIf
start-and-reportis set, remove this value or set tofalseObtain the TAR or RPM package for your installation. If using a TAR file unpack this into your software staging tree on every host, typically
/opt/continuent/software.Change into the directory for the software
shell> cd /opt/continuent/software/tungsten-clustering-8.0.4-132Issue the following command on all hosts.
shell> tools/tpm update --replace-releaseWhen upgrading the connectors, you could include the optional
--no-connectorsoption if you wish to control the restart of the connectors manuallyFor Multi-Site/Active-Active topologies, you will also need to repeat the steps for the cross-site replicators
Finally, before returning the cluster(s) to AUTOMATIC, you will need to sync the new certificates, created by the upgrade, to all hosts. This step will be required even if you have disabled security as these files will be used by the API and also, if you choose to enable it, THL Encryption.
From one host, copy the certificate and keystore files to ALL other hosts in your topology. The following scp command is an example assuming you are issuing from db1, and the install directory is /opt/continuent:
db1> for host in db2 db3 db4 db5 db6; doscp /opt/continuent/share/[jpt]* ${host}:/opt/continuent/sharescp /opt/continuent/share/.[jpt]* ${host}:/opt/continuent/sharedoneNoteThe examples assume you have the ability to scp between hosts as the tungsten OS user. If your security restrictions do not permit this, you will need to use alternative procedures appropriate to your environment to ensure these files are in sync across all hosts before continuing.
If the files are not in sync between hosts, the software will fail to start!
You will also need to repeat this if you have a &msmm_name; topology for the cross-site replicators:
db1> for host in db2 db3 db4 db5 db6; doscp /opt/replicator/share/[jpt]* ${host}:/opt/replicator/sharescp /opt/replicator/share/.[jpt]* ${host}:/opt/replicator/sharedoneRestart all tungsten components, one host at a time
shell> manager restartshell> replicator restartshell> connector restartReturn the cluster(s) to AUTOMATIC mode