The following article describes the state of a given AA environment during the action to publish a schema change.
Throughout the course of applying a schema change, one may be interested to know the state of each server at a given point in the process.
This article defines the servers by name as "BG01", "SB01", and "App01". It is important to understand that a given server's state as a "background", "standby" or "Application" Server is NOT defined by the name of the server, but the result of running "pdm_server_control -t" on the given server.
At the end of each step, a review of the servers' state is given, where the server's status is given; is services up or down, identification of the server type through "pdm_server_control -t" command, and if any schema changes are present.
The scenario takes place in the above environment without any schema changes of any kind previously introduced, and the schema change to be introduced will be a table called "ztesttable1".
To test if a given server has received schema updates, one will need to do the following:
State Check:
a. BG01: make schema changes in Schema Designer (created table ztesttable1), save, publish
b. BG01: Stop SDM Services
c. BG01: run pdm_server_control -b
State Check after above is completed (assuming no errors):
a. BG01: run pdm_publish
b. BG01: Will be prompted "Do you want pdm_publish to start CA Service Desk Manager in this standby server and perform fail-over(Y/N)?". Say "Y"
State Check after above is completed (assuming no errors):
a. SB01: Services already stopped, start Services back up.
State Check after above is completed (assuming no errors):
a. App01: Restart services. Stop, then start Services.
State Check after above is completed (assuming no errors):
The key action when performing a schema update is to always use the SAME server to run Schema Designer and run "pdm_publish". This is because the given activity will read the wsp_schema.log file on the local server to keep track of schema changes. In the above, one will need to always start out schema changes on server BG01 to run Schema Designer and pdm_publish.