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.
- /etc/init.d/collabnet
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
-
Create
the runtime environment.
- /opt/collabnet/teamforge/installer/install.sh
-
Start TeamForge.
- /etc/init.d/collabnet start
all
Do this on the TeamForge Indexer
server.
-
Set up the server with an operating system supported by TeamForge
16.7.
-
Configure the installation repository package for the OS of
your choice.
-
Configure your TeamForge
16.7 installation
repository. See TeamForge installation repository configuration for Red Hat/CentOS.
-
Configure your TeamForge
16.7 installation
repository. See TeamForge installation repository configuration for SUSE.
-
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
-
Create
the runtime environment.
- /opt/collabnet/teamforge/installer/install.sh
-
Start the TeamForge Indexer.
- /etc/init.d/collabnet
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.
- /etc/init.d/collabnet status