In this task, we install the TeamForge
Indexer on a separate server.
Pre-requisite: Ensure that there is no firewall restriction
between the
TeamForge application server and the new
Indexer server.
Attention: Installing or upgrading
TeamForge
needs root privileges. You must log on as root or use a root shell to install or upgrade
TeamForge.
Do this on the TeamForge
Application
Server.
-
Stop TeamForge.
- /opt/collabnet/teamforge/bin/teamforge
stop
-
Move the Indexer directory [/opt/collabnet/teamforge/var/searchIndex]
to the new Indexer server.
Note: You can either use tar or NFS to back up and restore the searchIndex directory. Copy
or transfer the searchIndex backup to the Indexer server. See the example below.
- cd /opt/collabnet/teamforge/var
- tar -zcvf /tmp/searchIndex.tgz searchIndex
- scp /tmp/searchIndex.tgz user@indexer.box:/tmp/
-
Edit the site-options.conf file.
HOST_my.host.name=app etl database datamart subversion cvs gerrit
HOST_<domain/hostname of indexer box>=indexer
-
Deploy
services.
- /opt/collabnet/teamforge/bin/teamforge
provision
The "provision" command prompts for response before it bootstraps or migrates
data during TeamForge installation and upgrade respectively. Enter "Yes" or
"No" to proceed. For more information, see The teamforge script.
-
Start TeamForge.
- /opt/collabnet/teamforge/bin/teamforge
start
Do this on the TeamForge Indexer
Server.
-
Set up the server with an operating system supported by TeamForge
16.10.
-
Configure the installation repository
package.
-
Configure your TeamForge
16.10 installation
repository. See TeamForge installation repository configuration for Red Hat/CentOS.
-
Run the following command to install the TeamForge Indexer packages.
- yum install
teamforge-indexer
-
Copy the master site-options.conf file from the application server
and modify these tokens:
HOST_my.host.name=indexer
DOMAIN_my.host.name=<myindexerbox.domain.com>
HOST_<myappboxdomain.com>=app etl database datamart subversion cvs gerrit
Important:
- It is recommended to use a separate netapp volume for the Indexer server.
- The Indexer server should have the required permissions to access the NFS volume
of the application server.
-
Create the Indexer and filestorage directories.
- mkdir /opt/collabnet/teamforge/var/searchIndex -p
- mkdir /opt/collabnet/teamforge/var/filestorage -p
-
Restore the Indexer data.
Run the following command to restore the backup index data from the application
server.
- cd /opt/collabnet/teamforge/var/
- tar -zxvf /tmp/searchIndex.tgz
-
Deploy
services.
- /opt/collabnet/teamforge/bin/teamforge
provision
The "provision" command prompts for response before it bootstraps or migrates
data during TeamForge installation and upgrade respectively. Enter "Yes" or
"No" to proceed. For more information, see The teamforge script.
-
Start the TeamForge Indexer.
- /opt/collabnet/teamforge/bin/teamforge
start
-
Run the following command and ensure that app filestorage directory is exported to
indexer server.
-
Run the following command and ensure that the Indexer services are up and
running.
- /opt/collabnet/teamforge/bin/teamforge
status