Scalable Database Server, HiRDB Version 8 System Operation Guide
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
PDDIR=/HiRDB_S
PDCONFPATH=${PDDIR}/conf
SHLIB_PATH=${PDDIR}/lib
PATH=${PATH}:${PDDIR}/bin
export PDDIR PDCONFPATH SHLIB_PATH PATH
${PDDIR}/bin/pdstart>/dev/null 2>&1
|
HiRDB/Parallel Server
#!/bin/sh
PDDIR=/HiRDB_P
PDCONFPATH=${PDDIR}/conf
SHLIB_PATH=${PDDIR}/lib
PATH=${PATH}:${PDDIR}/bin
export PDDIR PDCONFPATH SHLIB_PATH PATH
${PDDIR}/bin/pdstart -q>/dev/null 2>&1
|
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.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.