Create a shell script for starting HiRDB (execute $PDDIR/bin/pdstart). Be sure to execute that shell script when you start the package (during package startup preprocessing). Set up the shell script for starting HiRDB so that the package control script for MC/ServiceGuard executes this shell script. Figure 25-46 shows the flow of HiRDB startup processing.
Figure 25-46 HiRDB startup processing flow (MC/ServiceGuard)
Examples of a shell script for starting HiRDB are shown below.
HiRDB/Single Server
#!/bin/sh |
HiRDB/Parallel Server
#!/bin/sh |
The following are possible causes of a pdstart command failure:
Items 1-4 can occur if the package is started before HiRDB has stopped. There is no means to accurately determine this timing. In such a case, the pdstart command error may be ignored, because it does not affect any other operations.
In the case of item 5, HiRDB cannot be started because the HiRDB environment setup is incorrect; correct the environment setup.
If no system RDAREAs have been created, an instruction to create system RDAREAs (execute the pdinit command) will be displayed during HiRDB startup (during execution of the pdstart command). The pdstart command started from MC/ServiceGuard is executed in the background, so it cannot respond to this instruction. Therefore, before starting operation of MC/ServiceGuard, execute the pdstart command and ensure that system RDAREAs have been created.