Perform these steps to test the geo-diverse failover script without installing any replication software.
-
Configure two separate Application servers.
Use the same passwords and passphrase while installing the second Application server.
-
Configure one Device server to the first Application server.
-
Add the second Application server using the vcgeoadmin.pl script on the first Application server.
-
Stop the services on the first Application server.
-
Create a tar file containing the data and database directories:
tar cf first_app_server.tar db data.
-
Copy the tar file to the [Product directory] on the second Application server.
-
Stop the services on the second Application server.
-
Rename the original data and database directories on the second Application server:
mv db db_save; mv data data_save
-
Extract the files from the tar file on the second Application server:
tar xvf first_app_server.tar
-
Unlock the lockbox on the second Application server using the commands:
-
source /etc/voyence.conf
-
[Product directory]/bin/cstdriver -lockbox [Product directory]/data/lockb.clb -passphrase <passphrase entered during the installation>
-
-
Update the second Application server IP address in the postgres.conf file in the first Application server at [Product directory]/db/controldb/data/postgresql.conf.
Search for listen_address and update the IP address.
-
Go to the vcgeo directory on the second Application server and run the command:
./vcgeoadmin.pl start -f
- Copy the bundle.p12 file at [Product directory]/conf/bundle.p12 from second Application server to the Device server.
-
Login to the Device server and perform the following tasks:
-
source /etc/voyence.conf
-
Backup the files [Product directory]/bin/demoCA/cacert.pem, [Product directory]/bin/demoCA/index.txt, and [Product directory]/conf/CA/voyenceca.crt.
-
perl [Product directory]/bin/importcertsintods.pl <certificate password during the installation> <location of the copied bundle.p12 in step 14]
Do not keep the backup in the same location.
-
Remove all the data in the [Product directory]/bin/demoCA/index.txt file.
Note:Be sure to remove blank lines, if any, from index.txt. The file must be completely empty.
- Delete all the files with .0 extension from [Product directory]/conf/CA/ directory.
- bash makekeys.sh
-
-
Change the IP address and FQDN in the following files and point to the second Application server.
-
source /etc/voyence.conf
-
[Product directory]/data/.rhttps
-
[Product directory]/data/devserver/master.addr
-
[Product directory]/bin/cstdriver -lockbox [Product directory]/data/lockb.clb -passphrase <passphrase entered during the installation>
-
Restart the services on the Device server.
-
-
Change the IP address and FQDN in the following files and point to the second Application server.
-
source /etc/voyence.conf
-
[Product directory]/web/conf/web.properties /etc/voyence.conf
-
[Product directory]/cstbin/cstdriver -lockbox [Product directory]/data/lockb.clb -passphrase <passphrase entered during the installation>
-
-
Restart vcmaster service on the second Application server.
Verify if the services have started on the second Application server and login to the Network Configuration Manager application on the second Application server.
-
Start an auto-discovery job.