Nonstop Database, HiRDB Version 9 System Operation Guide
We recommend that you read this subsection if you are using ClusterPerfect as your cluster software.
For details about how to set up a ClusterPerfect environment, see the ClusterPerfect documentation.
The conditions for the system switchover facility when ClusterPerfect is used are as follows:
The following figure shows a system configuration that can perform system switchovers.
Figure 26-42 System configuration able to perform system switchovers
Figure 26-43 A system configuration unable to perform system switchovers (1/2) and Figure 26-44 A system configuration unable to perform system switchovers (2/2) show system configurations that cannot perform system switchovers.
Figure 26-43 A system configuration unable to perform system switchovers (1/2)
Figure 26-44 A system configuration unable to perform system switchovers (2/2)
When IP addresses are inherited, set a logical IP address and host name that correspond to the logical IP address (host name of the IP address that is set in the IP type resource). Also, set up this logical IP address so it can be replaced on multiple server machines using the system switchover facility. The following figure shows a network configuration example for inheriting IP addresses.
Figure 26-45 Network configuration example when IP addresses are inherited (using ClusterPerfect)
When IP addresses are not inherited, set a different IP address and host name in the primary system and secondary system. To do this, you must specify the host name of the secondary system in the pdunit -c operand of the HiRDB system common definition. The following figure shows a network configuration example for when IP addresses are not inherited.
Figure 26-46 Network configuration example when IP addresses are not inherited (using ClusterPerfect)
Use the DNCWARE design support system in ClusterPerfect to create and register abnormal termination, startup, termination, and takeover scenarios. For details about creating and registering scenarios, see the ClusterPerfect documentation. The content of each scenario is described below.
The actions of the abnormal termination scenario are as follows:
1: Asynchronously call process 4 (enddb). 2: Disconnect disk 1 (CR80). 3: Disconnect service IP1 (serviceIP). |
The actions of the startup scenario are as follows:
1: Embed service IP1 (serviceIP). 2: Embed disk 1 (CR80). 3: Asynchronously call process 3 (startdb). |
The actions of the termination scenario are as follows:
1: Asynchronously call process 4 (enddb). 2: Disconnect disk 1 (CR80). 3: Disconnect service IP1 (serviceIP). |
The actions of the takeover scenario are as follows:
1: Embed service IP1 (serviceIP). 2: Asynchronously call process 10 (mount1). 3: Asynchronously call process 3 (startdb). |
This subsection provides examples of shells used to set up HiRDB scenarios.
The following examples show shells used to set up HiRDB single server configuration scenarios.
Start
#!/bin/sh PDDIR=/hirdb_x PATH=/bin:/usr/bin:/usr/ucb:$PDDIR/bin PDCONFPATH=$PDDIR/conf SHLIB_PATH=$PDDIR/lib LD_LIBRARY_PATH=$PDDIR/lib export PATH PDDIR PDCONFPATH SHLIB_PATH LD_LIBRARY_PATH # single $PDDIR/bin/pdstart exit 0 |
Terminate
#!/bin/sh PDDIR=/hirdb_x PATH=/bin:/usr/bin:/usr/ucb:$PDDIR/bin PDCONFPATH=$PDDIR/conf SHLIB_PATH=$PDDIR/lib LD_LIBRARY_PATH=$PDDIR/lib export PATH PDDIR PDCONFPATH SHLIB_PATH LD_LIBRARY_PATH # single $PDDIR/bin/pdstop -f exit 0 |
Mount the shared disk
#!/bin/sh /usr/local/DNCWARE/bin/genresv /dev/sdb sleep 10 /usr/local/DNCWARE/bin/hadkresv /dev/sdb mount /mirror1 |
The following examples show shells used to set up HiRDB parallel server configuration scenarios.
Start
#!/bin/sh PDDIR=/hirdb_x PATH=/bin:/usr/bin:/usr/ucb:$PDDIR/bin PDCONFPATH=$PDDIR/conf SHLIB_PATH=$PDDIR/lib LD_LIBRARY_PATH=$PDDIR/lib export PATH PDDIR PDCONFPATH SHLIB_PATH LD_LIBRARY_PATH # parallel $PDDIR/bin/pdstart -q exit 0 |
Terminate
#!/bin/sh PDDIR=/hirdb_x PATH=/bin:/usr/bin:/usr/ucb:$PDDIR/bin PDCONFPATH=$PDDIR/conf SHLIB_PATH=$PDDIR/lib LD_LIBRARY_PATH=$PDDIR/lib export PATH PDDIR PDCONFPATH SHLIB_PATH LD_LIBRARY_PATH # parallel $PDDIR/bin/pdstop -z exit 0 |
Mount the shared disk
#!/bin/sh /usr/local/DNCWARE/bin/genresv /dev/sdb sleep 10 /usr/local/DNCWARE/bin/hadkresv /dev/sdb mount /mirror1 |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.