Skip to main content
jjahanshahi
Staff
Staff
Sep 28, 2016 11:00 AM UTC

Collecting information for HA issues

Description

This article describes the debugs that should be collected when troubleshooting HA issues.

Scope

FortiGate.

Solution

 

  1. The output of the following debug commands should be collected for any HA-related issues:

diagnose debug enable
diagnose debug console timestamp enable
diagnose debug application hatalk -1 
diagnose debug application hasync -1   
execute ha synchronize start          


Explanation of commands:

HA formation issues:

diagnose debug application hatalk -1


HA Sync issues:

diagnose debug application hasync -1


Start HA Sync:

execute ha synchronize start


To disable debug:

diagnose debug disable

 

The HA framework consists of two daemons: hatalk and hasync. The 'hatalk' process monitors cluster management and failure monitoring. The 'hasync' process handles the synchronization of configuration files, the upgrade process, IKE notifications, external files, the ARP table, and the forwarding information base (FIB). 

 

If no output is generated in the hasync or hatalk debugs, restarting the daemons may be necessary. This can be done by running the following commands on each unit.

 

To determine the process IDs running for hasync and hatalk:

diagnose sys process pidof hasync
diagnose sys process pidof hatalk


To restart the process:

 diagnose system kill 11 <process_id>


Alternatively, to kill all simultaneously running HA processes, execute the following with super admin rights:

fnsysctl killall hatalk
fnsysctl killall hasync


  1. Run the following on both Primary/Secondary units and collect the info:

get system performance status
get system status
get system ha status
diagnose sys ha status
diagnose sys ha history read
diagnose debug crashlog read
diagnose sys ha checksum show
diagnose sys ha dump 5


diagnose sys ha dump-by group 
execute ha synchronize stop   
execute ha synchronize start
diagnose sys ha checksum recalculate 


To access the secondary device in the CLI, run the following:

execute ha manage <Index-ID> <Admin-Username>


See this article for more information:
Technical Tip: How to access the secondary unit from the primary with the 'execute ha manage' command

 

  1. Packet captures for seeing communication between HA ports:

diagnose hardware device nic <heartbeat interface>
diagnose sniffer packet port_ha "" 4 0 l   

 

To capture only the heartbeat packets:

diagnose sniffer packet any 'ether proto 0x8890' 4 0 l

 

There are three EtherType configurations in HA:

  1. ha-eth-type: 8890 - Standard NAT/Route mode heartbeat.

  2. hc-eth-type: 8892 - Transparent mode heartbeat or session sync.

  3. l2ep-eth-type: 8893 - HA configuration synchronization (Layer 2 Endpoint).

 

Configuration parameters can be verified with the following commands:

get system ha
show full sys ha | grep -f eth


  1. Collect the FortiGate's HA and System Event logs for both units downloaded from the GUI/FortiAnalyzer or syslog (remote) server.

Additional note : in rare instances where debug does not stop despite disabling debug. It may be necessary to stop the debug loop by killing all simultaneously running HA processes, execute the following with super admin rights:

fnsysctl killall hatalk
fnsysctl killall hasync 


Related articles:

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT