Created on 01-13-2021 10:05 AM Edited on 07-13-2022 12:36 PM By Anonymous
Description
This article describes how to refresh database replication in case this error message in the GUI Events appears 'Database Replication Error' or 'slave is inactive' when executing hsIsSlaveActive on the Secondary Server.
Scope
FortiNAC.
Solution
1) Login to secondary (not the virtual IP) FortiNAC with SSH client using 'root' account.
2) Type in the following command:
# reboot
3) Wait for the secondary server to come back online and all services are started, it can take up to 10 minutes, depending on the size of a database.
4) Check if database replication is active with the following command (executed on secondary node):
# hsIsSlaveActive
Expected output:
Host fortinac
SQL version 5.6.39,
slave is active <-- This indicates that database replication is active.
5) Verify the logs to confirm that database replication started and finished successfully:
# cd /bsc/logs
Open 'output.processManager' with the favorite text editor or use 'less' for example:
# less output.processManager
Search for strings 'Database replication starting' and 'Database replication finished: SUCCESS'.
If Database replication continues to fail:
1) Gather logs from both the Primary and Secondary Servers using the grab-log-snapshot script. For instructions see KB article 190755.
2) Open a support ticket and provide the following:
- Logs from step 1.
- Output of hsIsSlaveActive command from the Secondary Server.
Related links.
https://docs.fortinet.com/document/fortinac/8.8.0/high-availability
https://docs.fortinet.com/document/fortinac/9.2.0/high-availability
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.