Retain Windows Install
Retain Install on a Windows Server
Contents |
Windows Server 2012 R2
Create Data Volumes
It is recommended to create data volumes so it is easier to recover. In a test system this isn't necessary but on a customer system it is recommended. Create 4 data disks:
- Create the disks in the VM manager
- Mount and initialize the volumes in Disk Manager
- ARCHIVE: for the storage directory. Required to have at least 20GB free for normal operation, warnings will appear when <20GB free, Retain will go into maintenance mode if free space drops below 10GB. (64GB is good for a test system)
- INDEX: for the indexes, and their backups. Required to have at least 20GB free for normal operation, warnings will appear when <20GB free, Retain will go into maintenance mode if free space drops below 10GB.(32GB is good for a test system)
- DATABASE: for the database. (24GB is good for a test system)
- LOGS: for the logs of the system (Logs can be up to 30GB/day/worker during large migrations) Required to have at least 20GB free for normal operation, warnings will appear when <20GB free, Retain will go into maintenance mode if free space drops below 10GB. (32GB is good for a test system)
In Windows, it is easiest to install Retain to a data drive, which will also place the logs there by default. Otherwise, you have to go into Configure Tomcat and change the logging location manually.
Disk Management
Use Disk Management to mount and format disk partitions and volumes
- Right-click on the Disk# and bring the disk Online
- Right-click to Initialize Disk, MBR style
- Right-click on the space of the disk and select New Simple Volume
- Choose size
- Assign a drive letter
- Select file system (NTFS), name and quick format
- Finish
The volume will appear in File Explorer.
Prerequisites for Retain
Retain needs a web server and a database server preinstalled before it will run successfully. The database may be installed on a separate server but for a test system installing the database locally is recommended. You also want the Retain server to point at the same DNS the Exchange server is using.
DNS
Set the Retain Server to point at the same DNS is pointing to as the Exchange server
- Server Manager/ Local Server
- Ethernet0, opens a new windows
- Ethernet0, right-click and choose Properties
- IP4/Properties
- Set "Use the following IP address" and "Use the following DNS server addresses" to what is assigned to the system.
Retain 3.x Prerequisite Install Java
Older versions of Retain needed to install Java manually.
- Install Java 1.6 aka Java 6. [1] (Retain 3.5.1 asks to download/install)
- System/Change settings/Advanced/Environmental Variables (new system variable JAVA_HOME point to the installed directory c:\Program Files\Java\jdk1.6.0_38)
Setup the Web Server
While you could install apache, IIS just needs to be activated on a Windows server. Install IIS by adding the role in Server Manager:
- Add WebServer
- Under Role Services, open Application Development and enable:
- ISAPI Extensions
- ISAPI Filters
- Restart
Database Install
While Retain 4.x on SLES will download, install and configure MySQL for you, Windows and older versions of Retain require this to be done manually. Retain uses a translation library called hibernate in the logs to support MySQL, MS SQL Server, Oracle and Postgres. [2]
Install MySQL
MySQL is free and our default database
MySQL 5.5
- Install MySQL 5.5 [3] from the .msi with the following setting:
- Install as Typical, take defaults and allow to start MySQL Instance Configuration Wizard
- Detailed Configuration
- Server Machine
- Transactional Database only
- Give it a storage path
- Manual Setting (100)
- Enable TCP/IP networking (port 3306) add firewall exception, Enable Strict mode
- Best Support for Multilingualism
- Install MySQL as a Service and select Include the Bin directory in the Windows PATH.
- Enter root password
MySQL 5.6
MySQL 5.6 has an install bug on Windows that only allows it to use the boot drive for data. It works fine under Linux.
- Download the MySQL Installer [4]
- Run the Installer to configure
- Accept the license
- Server Only
- Choose the product (e.g. MySQL Server 5.6.28)
- Configure
- Server Machine
- Root password
- Configure as a Windows Service that starts at system startup
- Execute and Finish
Configure Database
Create database and user on the C:\ drive with the Command line client:
- Start the Command Line Client and login as root.
- Create a database (for example: retain)
-
CREATE DATABASE retain DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_bin';
-
- Add the retain user to the database (for example: retain with password: password1)
-
GRANT ALL PRIVILEGES ON retain.* TO 'retain'@'%' IDENTIFIED BY 'password1';
-
- Replace the % with an IP address if you want logins restricted to a particular IP address.
-
GRANT ALL PRIVILEGES ON retain.* TO 'retain'@'localhost' IDENTIFIED BY 'password1';
-
- Type 'exit' to end the session
To setup a database on a different volume [5]
Install MS SQL
SQL Server is another favorite for customers.
- Install as default instance, with Unicode, UTF-8 or Latin 1_General_C1_AS as standard encoding.
- Enable SQL Server Authentication in addition to Windows Authentication
- Once installed, Verify server is listening on port 1433 (telnet [ip address]:1433)
- Ensure TCP/IP is enabled - Run SQL Server Configuration Manager
- Expand SQL Server Network Configuration
- Protocols for MSSQLSERVER
- Enable TCP/IP
- Run SQL Server Management Studio, connect to Server
- Under Security/Logins, right click and select "create Login, (for example retaindbuser) that uses SQL Server authentication.
- Assign a password.
- Right click on Databases, and create a new database named retain and assign retaindbuser as the owner.(There are other ways to grant the permissions but this is easiest)
Download Retain
Install JDBC
- If using MySQL, download the MySQL Connector/J (JDBC driver for MySQL) driver
- Download the zip file from the MySQL site [8] version 5.1.24 or greater
- Copy mysql-connector-java-5.1.39-bin.jar into C:\Program Files\Beginfinite\Retain\RetainServer\WEB-INF\lib
- You'll need to restart tomcat once the file is in place.
- Post install configuration [9]
- Retain Server Setup [10]
- Install the license, the trial license is unlimited for 30 days.
To change the log location run the Configure Tomcat program and change the log location under the Logging tab.
Return to Retain Training