Created on 08-04-2022 08:34 AM Edited on 10-10-2024 05:23 AM By Jean-Philippe_P
Description
This article describes how to configure and troubleshoot issues with FortiAnalyzer HA.
Scope
FortiAnalyzer.
Solution
Pre-request:
Sample Diagram with Port and IP Configuration:
Note:
Virtual IP should be the same in both Primary and Secondary devices.
On FortiAnalyzer-Primary device: under System Settings -> HA -> Operation mode select 'High Availability'.
In new v7.4.x and forward.
System Settings -> HA -> Operation mode select 'Active Active' for georedundant as The active-active mode for FortiAnalyzer HA helps to create a geo-redundant solution or select 'Active Passive' Where In FortiAnalyzer HA active-passive mode, a layer 2 connection is required between HA members to set up the HA cluster virtual IP. In active-active mode, however, a layer 2 connection is not required between data centers at different locations.
Configure the following details:
Preferred Role: Primary.
Cluster Virtual IP:
Cluster Settings:
Group Name: HA (Any name can be given, but should be the same on Pri & Sec).
Group ID: 9 (Any number (1-255) can be given, should be the same on Pri & Sec).
Password: Fortinet@123 (Can give any password, but should be the same on Pri & Sec).
Heart Beat Interval: 1.
Priority: 120 (Higher Value states as Primary device).
Log Data Sync: Enable the toggle option.
On FortiAnalyzer-Secondary device: under System Settings -> HA -> Operation mode select 'High Availability'.
Configure the following details:
Preferred Role: Secondary.
Cluster Virtual IP:
Cluster Settings:
Group Name: HA (Any name can be given, but should be the same on Pri & Sec).
Group ID: 9 (Any number (1-255) can be given, should be the same on Pri & Sec).
Password: Fortinet@123 (Can give any password, but should be the same on Pri & Sec).
Heart Beat Interval: 1.
Priority: 100 (Lower Value states as Secondary device).
Log Data Sync: Enable the toggle option.
After configuring Primary and Secondary this output on GUI can be seen.
Troubleshooting Commands:
On Primary-FortiAnalyzer:
diag ha status
get system ha
On Secondary-FortiAnalyzer:
diag ha status
get system ha
With these 2 commands, troubleshoot the status and the configured values for FortiAnalyzer-HA.
Restart the Cluster Process and collect its debug output:
After checking the configuration settings, restart the clustering process on both Primary & Secondary devices.
diagnose test application clusterd 1
diagnose test application clusterd 99
If the HA location is on different sites, it is possible to perform the below command to enable the unicast HA.
config sys ha
set unicast enable
end
Then if the initial logs sync has synced but the configuration has not synced, run the below command to sync the config:
diag ha force-resync from secondary and Primary
Also, collect the cluster debug output on both Primary & Secondary devices.
diagnose debug application clusterd 255
diagnose debug enable
Also, the below command will show the HA live connection status like (keep-alive messages).
Troubleshooting commands:
diag ha status
diag ha stats
diag test app cluster 1
diag test app cluster 3 conn
diag test app cluster 3 log
diag test app cluster 97 status
execute shell
cat /etc/keepalived/keepalived.cfg
cat /drive0/private/clusterd/faz-ha.log
cat /drive0/private/clusterd/keepalived.log
diag sniff packet portX "vrrp" 3
Related documents:
Setting up a FortiAnalyzer HA cluster
Technical Tip: How to configure FortiAnalyzer HA instance in Google Cloud Platform (GCP)
Technical Tip: File system check on FortiAnalyzer in a High Availability (HA) setup
Troubleshooting Tip: FortiAnalyzer HA configurations that will not synchronize
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.