Imsva 9.1 Patch3 High Availability Guide
Imsva 9.1 Patch3 High Availability Guide
the product described herein without notice. Before installing and using the product,
please review the readme files, release notes, and/or the latest version of the applicable
documentation, which are available from the Trend Micro website at:
http://docs.trendmicro.com/en-us/enterprise/interscan-messaging-security.aspx
Trend Micro, the Trend Micro t-ball logo, Control Manager, eManager, InterScan, and
TrendLabs are trademarks or registered trademarks of Trend Micro Incorporated. All
other product or company names may be trademarks or registered trademarks of their
owners.
© 2019. Trend Micro Incorporated. All Rights Reserved.
Document Part No.: MSEM98517/181030
Release Date: January 2019
Protected by U.S. Patent No.: Patents pending
This documentation introduces the main features of the product and/or provides
installation instructions for a production environment. Read through the documentation
before installing or using the product.
Detailed information about how to use specific features within the product may be
available in the Trend Micro Online Help and/or the Trend Micro Knowledge Base at
the Trend Micro website.
Trend Micro always seeks to improve its documentation. If you have questions,
comments, or suggestions about this or any Trend Micro document, please contact us at
[email protected].
Evaluate this documentation on the following site:
http://www.trendmicro.com/download/documentation/rating.asp
Table of Contents
IMSVA High Availability Guide ...................................................................... 1
Background ................................................................................................. 1
IMSVA Deployment ......................................................................... 1
Components in the Parent-Child Deployment ............................. 2
High Availability Support ......................................................................... 3
Goals for High Availability .............................................................. 3
Deployment Diagram (High Availability Not Supported) .......... 4
Deployment Diagram (High Availability Supported) .................. 6
Considerations for High Availability .............................................. 7
Optional Operations .................................................................................. 9
Adding a Hard Disk to a Child Device .......................................... 9
Connecting Child Devices to a New Parent Device .................. 13
Restarting the Deep Discovery Advisor Agent ........................... 23
Restarting the MCP Agent ............................................................. 23
Frequently Asked Questions .................................................................. 23
What do services running on child devices do when the parent
device fails? ....................................................................................... 23
i
IMSVA High Availability Guide
High availability is a top priority for many business operations. From small, specialized
businesses to global enterprises, competition requires more and more companies to
service customers, partners, and endpoints around the clock. The increased reliance on
server-based systems to power business requires that server services are continuously
running. Mission-critical applications, such as corporate databases and email, must often
reside on systems and network structures that are designed for high availability.
Organizations find that they have to plan and configure their systems with high
availability in mind, so that they can rely on them for continuous service.
This document describes high availability support that Trend Micro™ InterScan™
Messaging Security Virtual Appliance (IMSVA) provides in version 8.5 Service Pack 1
and later.
Topics include:
• Background on page 1
• High Availability Support on page 3
• Optional Operations on page 9
• Frequently Asked Questions on page 23
Background
This section describes the parent-child deployment for IMSVA and the IMSVA
components in the deployment.
IMSVA Deployment
IMSVA can be deployed in a geographically distributed enterprise environment, which is
known as a parent-child deployment.
In a parent-child deployment, the parent device assumes the roles of central controller
and data repository. All configuration information including policy data is stored in a
database hosted on the parent device in the IMSVA deployment. All child devices
1
IMSVA High Availability Guide
communicate with the parent device directly or indirectly for system and policy
configurations.
For performance considerations, the parent device usually does not process email
messages, but works as a configurable central controller. The child devices process
received email messages.
• Policies
• System configuration
• Report statistics
• IP Profiler statistics
Implemented with Berkeley Internet Name Domain (BIND) to provide the DNS
service for the IP Profiler function.
Implemented with OpenLDAP to provide a consolidated view for more than one
LDAP server. The data in this cache can be used in policy enforcement.
2
IMSVA High Availability Guide
Note
The LDAP cache takes effect only when multiple on-premises LDAP servers are
chosen.
Note
When connecting child devices to the LDAP server, make sure that at least one LDAP
server is connected. If only one on-premises LDAP server is connected, child devices
query the LDAP server. If multiple on-premises LDAP servers are connected, child devices
query the local LDAP cache.
3
IMSVA High Availability Guide
Note
Depending on the size of logs and the length of the outage, it may take hours to days
to upload delayed logs to the parent device.
Note
High availability support is available in IMSVA version 8.5 Service Pack 1 and later.
4
IMSVA High Availability Guide
5
IMSVA High Availability Guide
To achieve the goals defined in Goals for High Availability on page 3, a child device is
enhanced to:
• Prevent policies and other configurations stored on local policy servers from being
lost.
6
IMSVA High Availability Guide
• Query the local DNS server when a DNS query is requested from IP Profiler.
Note
The DNS query requires a synchronization between the local DNS server on the
child device and the DNS server hosted on the parent device.
• Query the local LDAP server (or the on-premises LDAP server if only one LDAP
server is configured) when an LDAP query is requested.
Although email messages are continuously flowing through the network, you
temporarily lose the ability to access the management console and trace email
routing during the outage. In addition, logs generated during the outage are stored
on child devices and are not uploaded to the parent device until it recovers. To
guarantee high availability, it is necessary to calculate the maximum parent device
outage.
Note
For details about how to calculate the maximum outage based on the number of
received email messages, see Calculating Downtime of the Parent Device on page
8.
Frequent backups help shorten the time for recovering the parent device. For the
detailed steps of automating an export action, see Enabling the Automatic Export
and Import Function on page 20.
• Use the same IP address that was previously allocated to the parent device.
7
IMSVA High Availability Guide
If you cannot recover the failed parent device, use the hot standby for the device
instead. Use the same IP address as the original parent device to avoid potential
communication issues among IMSVA components.
For details about how to connect to a new parent device, see Connecting Child
Devices to a New Parent Device on page 13.
8
IMSVA High Availability Guide
the maximum number of email messages is 66,240 per day per IMSVA server. After
calculation, these email messages produce 13 MB of logs every day. With its internal log
cache, the IMSVA server can store these logs for approximately 150 days. However,
IMSVA automatically purges logs older than 90 days. As a result, a 90-day retention
period is available.
Company B has twice the average message traffic as A and an even higher peak number
of email messages during peak hours. The average message traffic is 110,000 email
messages per day, and the peak number of email messages is 9,000 per hour. Based on
the peak value, the maximum number of email messages is 220,000 per day per IMSVA
server. After calculation, these email messages produce 44 MB of logs every day.
IMSVA can store these logs for approximately 45 days in its internal log cache.
Note
The data for IP Profiler cannot be updated during the downtime of the parent device.
The Trend Micro Virtual Analyzer agent is suspended during the downtime. When the
parent device recovers, restart the Virtual Analyzer agent manually. For details, see
Restarting the Deep Discovery Advisor Agent on page 23.
The Trend Micro Management Communication Protocol (MCP) agent is suspended during
the downtime. When the parent device recovers, restart the MCP agent manually. For
details, see Restarting the MCP Agent on page 23.
Email messages are not encrypted during the downtime. Outgoing email messages that
match encryption policies are considered as exceptions, and the default scan action is
“Quarantine and Notify”.
If your client uses POP3 to receive email messages, change the client's POP3 server from
the parent device to the child device.
Optional Operations
This section describes the operations that you can choose to perform when the parent
device goes offline.
9
IMSVA High Availability Guide
Procedure
1. Start a shell window and log on as the root user.
2. Check disk partitions under /dev:
ls /dev/sd*
Note
By default, you can find sda, sda1, sda2 disk partitions.
In the output, you can find the new disk, for example, sdb.
Note
The following commands use sdb as the disk name if it is not changed.
b. Type m and press Enter to display the primary command action menu.
Note
For available actions, see Command Actions on page 12.
10
IMSVA High Availability Guide
Syncing disks.
6. Format the new hard disk with the ext3 file system:
mkfs.ext3 /dev/sdb1
11
IMSVA High Availability Guide
Note
app_data is the directory where IMSVA stores mail areas and queues.
e2fsck -f /dev/mapper/IMSVA-App_data
resize2fs /dev/mapper/IMSVA-App_data
Note
In the preceding commands, 100G means 100 GB. It is the size of space
needed to allocate to app_data.
Command Actions
a toggle a bootable flag
12
IMSVA High Availability Guide
d delete a partition
Before proceeding with the following procedure, make sure that you have imported
configurations from the original parent device to the new parent device. For details
about how to automatically export and import configurations, see Enabling the
Automatic Export and Import Function on page 20.
13
IMSVA High Availability Guide
Note
In the following steps, 10.204.168.98 is an example of the new parent device's IP address,
and 10.204.168.100 is an example of a child device's IP address.
Note that all the logs and quarantined messages on the original parent device cannot be
found on the management console of the new parent device.
Procedure
1. Install a new parent device that uses a different IP address from the original parent
device.
a. Install the same build as the original parent device on the new parent device.
Note
Use a different IP address for the new parent device to prevent services on
child devices from malfunctioning if the child devices connect to the new
parent device before it is available.
e. Click >>.
f. Click Save.
14
IMSVA High Availability Guide
a. Open the imss.ini file and find scanner_id as shown in the following
figure:
# vi /opt/trend/imss/config/imss.ini
Note
All figures in this section are provided as examples for your reference.
c. Obtain the device IP address and MAC address and use them as ip_addr and
mac_addr respectively:
15
IMSVA High Availability Guide
# ifconfig
16
IMSVA High Availability Guide
Note
The components and processes shown in the preceding figure include:
• ipprofiler: IP Profiler
The value 1 means the component or process is not running, and the value 2
means it is running.
Note
• Replace the preceding values in bold with the information you obtained in
Step 3 on page 14.
• Make sure that other string values are consistent with those on the parent
device.
# /opt/trend/imss/PostgreSQL/bin/psql imss sa
17
IMSVA High Availability Guide
Note
If the value for scanner_id is different from the value obtained in Step 3 on
page 14, go to the next step. If they are the same, skip the next step.
Note
The value for scanner_id is replaced by that obtained in Step 3 on page 14.
6. Optional: Manually complete the following settings on the new parent device if you
have configured them before:
• TMCM settings
• Encryption settings
18
IMSVA High Availability Guide
Note
If you have configured two LDAP servers, some features may be disabled during
import. Check features in the following paths and enable them if they were disabled:
• Administration > Connections > LDAP
• Cloud Pre-Filter > Policy List > Policy > Conditions > Valid Recipient >
Scheduled maintenance
• Administration > SMTP Routing > Message Rule > Relay Control > Reject
unknown recipients
7. Replace the current parent device's IP address with the original parent device's IP
address.
a. Go to Administration > IMSVA Configuration > Configuration Wizard.
b. Click Next.
The Local System Settings screen appears.
c. Change the parent device's IP address.
8. Use the following command on both the parent and child devices to restart all
services:
# imssctl.sh restart
9. Verify that services are in “Start” state on the System Status screen.
Note
If the End-User Quarantine (EUQ) service is enabled, proceed to Step 10 on page
19 to Step 13 on page 20. Otherwise, skip these steps.
19
IMSVA High Availability Guide
e. Use the server IP address that you obtained in Step 3 on page 14 and specify
other information as required.
f. Click OK.
c. Clear the Enable End-User Quarantine check box and click Save.
d. Select the Enable End-User Quarantine check box and click Save.
12. Go to System Status and verify that the EUQ services are started.
13. Go to Administration > End User Quarantine. Click Redistribute all (approved
senders and spam) and click Redistribute.
Procedure
20
IMSVA High Availability Guide
2. Enable the automatic export and import function on both the original and new
parent devices.
# vi /opt/trend/imss/config/imss.ini
[AutoImportExport]
AutoImpExpEnable=on
AutoImpExpDirection=export
AutoImpExpFTPServer=192.168.0.1
AutoImpExpFTPPort=21
AutoImptExpFTPDir=/home/export
AutoImptExpFTPUser=test
AutoImpExpFTPPwd=test
Note
The preceding key values in bold are only examples. Replace them with
your real settings. For details about those keys, see Keys and Settings on
page 22.
# vi /opt/trend/imss/config/imss.ini
[AutoImportExport]
AutoImpExpEnable=on
AutoImpExpDirection=import
AutoImpExpFTPServer=192.168.0.1
AutoImpExpFTPPort=21
AutoImptExpFTPDir=/home/export
AutoImptExpFTPUser=test
AutoImpExpFTPPwd=test
21
IMSVA High Availability Guide
Note
The preceding key values in bold are only examples. Replace them with
your real settings. For details about those keys, see Keys and Settings on
page 22.
The import function fails if the FTP server has more than one IP address.
ACCEPTED
KEY NAME DEFAULT VALUE DESCRIPTION
VALUE
22
IMSVA High Availability Guide
Procedure
# S99DTASAGENT restart
Procedure
# S99CMAGENT restart
23