16. Disaster Recovery : Master Node Recovery : Configuring the High Availability Option for Red Hat Cluster Suite
 
Share this page                  
Configuring the High Availability Option for Red Hat Cluster Suite
The mkrc utility can generate a service script, ha_actian-vectorhXX, that can be used to monitor and control the Vector instance in the cluster. The script is distributed as a template, ha.rc, in $II_SYSTEM/ingres/files/rcfiles.
Install the VectorH Service Script
To install the service script, follow these steps:
1. Log in as the instance owner and source the instance environment:
$ . ~/.ingXXsh
where XX is the VectorH instance ID.
2. Generate the VectorH service script:
$ mkrc
3. As root, install the VectorH service script under /etc/init.d:
$ su -c "$II_SYSTEM/ingres/utility/mkrc -i"
4. Disable the service:
$ su -c "chkconfig actian-vectorhXX off"
5. Verify the script has been installed correctly:
$ ls -l /etc/init.d/actian-vectorhXX
-rwxr-xr-x. 1 root root 1064 May 29 19:34 /etc/init.d/actian-vectorhXX
$ chkconfig ha_actian-vectorhXX --list
ha_actian-vectorhXX 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Note:  It should be off by default.
6. (Optional) Install the Management Server service for Actian Director
$ source ~/.ingXXsh
$ mkrc -s iimgmtsvc
$ su -c "$II_SYSTEM/ingres/utility/mkrc -s iimgmtsvc -i"
$ su –c "chkconfig iimgmtsvrXX off"
7. Repeat steps 1 through 5 on the secondary master node.
Install the Cluster Service Script
To install the service script, follow these steps:
1. Log in as the instance owner and source the instance environment:
$ . ~/.ingXXsh
where XX is the Vector instance ID.
2. Generate the HA service script:
$ mkrc -s ha
3. As root, install the HA service script under /etc/init.d:
$ su -c "$II_SYSTEM/ingres/utility/mkrc -s ha -i"
4. Verify the script has been installed correctly:
$ ls -l /etc/init.d/ha_actian-vectorXX
-rwxr-xr-x. 1 root root 1064 May 29 19:34 /etc/init.d/ha_actian-vectorXX
$ chkconfig ha_actian-vectorXX --list
ha_actian-vectorXX 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Note:  It should be off by default.
5. Repeat steps 1 through 4 on the secondary master node.
Set Up the Cluster Service
To set up the cluster service for the VectorH database, follow these steps:
1. As root, use the cluster service script to configure failover:
$ sudo service ha_actian-vectorhXX configure
where XX is the VectorH instance ID.
2. Follow the prompts to configure the Secondary Master Node.
Setting up Actian Vector H HDFS Support...
 
Setting up High Availability (HA) for the
Actian Vector H Master node requires
that the installation location pointed to by:
 
    $II_SYSTEM
 
and data locations, pointed to by:
 
    II_DATABASE
    II_CHECKPOINT
    II_JOURNAL
    II_WORK
  & II_DUMP
 
be located on a shared file system. This must be mounted
on the secondary master node under the same location as
the master node in order for HA Failover to work correctly.
 
The secondary master node must be an existing slave node.
 
Do you wish to continue? (y/n) [y] 
 
Select the slave node to be used as the secondary master node.
 
    1) nodename
    q) quit
 
[1]: 
 
'nodename' configured as secondary Master node
 
After failover, most HDFS data will no longer be available locally,
which can result in a significant performance overhead. To resolve
this a 'rewrite' operation can be run as part of the failover
process to re-locate the data.
 
Doing so, however, can take a significant amount of time and
will increase the total amount of time Actian Vector H
is down.
 
Do you wish to run a 'rewrite' operation during failover? (y/n) [n] y
 
The Actian Vector H HDFS setup program has successfully completed.