Created on 02-24-2015 05:33 PM Edited on 11-26-2024 12:38 AM By gmachavariani
Description
To identify which object(s) are not synchronized, it is typically most efficient to find the first out-of-sync object and correct it. Checksums are cumulative and so all checksums which follow the first out-of-sync object will also be incorrect.
exec ha synchronize start
Verify the cluster-csum as mentioned above to see if the cluster is synchronized.
diagnose system ha showcsum 1
Example output:
system.global: d6c216d8449d75b2cd80110fa02a84e5
system.accprofile: 7df6f055a28e5d5216c4d2c2b3ee77d1
system.npu: 7df6f055a28e5d5216c4d2c2b3ee77d1
system.vdom-link: 7df6f055a28e5d5216c4d2c2b3ee77d1
wireless-controller.global: 7df6f055a28e5d5216c4d2c2b3ee77d1
wireless-controller.vap: cda65c180c25050eb83398fa23ab7fd1
system.switch-interface: cda65c180c25050eb83398fa23ab7fd1
system.interface: 56f2362fd69f51a2b6fc22a008c0c755
system.password-policy: 56f2362fd69f51a2b6fc22a008c0c755
system.sms-server: 56f2362fd69f51a2b6fc22a008c0c755
system.admin: af9c2b4f63e40551e33eabd64436fb3e
system.fsso-polling: af9c2b4f63e40551e33eabd64436fb3e
system.ha: ddfeff2ae037f615fbd83110169b70d2
FortiGate 1 |
FortiGate 2 |
diagnose system ha showcsum 1 system.global: d6c216d8449d75b2cd80110fa02a84e5 system.accprofile: 7df6f055a28e5d5216c4d2c2b3ee77d1 system.npu: 7df6f055a28e5d5216c4d2c2b3ee77d1 system.vdom-link: 7df6f055a28e5d5216c4d2c2b3ee77d1 wireless-controller.global: 7df6f055a28e5d5216c4d2c2b3ee77d1 wireless-controller.vap: cda65c180c25050eb83398fa23ab7fd1 system.switch-interface: cda65c180c25050eb83398fa23ab7fd1 system.interface: 56f2362fd69f51a2b6fc22a008c0c755 system.password-policy: 56f2362fd69f51a2b6fc22a008c0c755 system.sms-server: 56f2362fd69f51a2b6fc22a008c0c755 system.admin: af9c2b4f63e40551e33eabd64436fb3e system.fsso-polling: af9c2b4f63e40551e33eabd64436fb3e system.ha: ddfeff2ae037f615fbd83110169b70d2 |
diagnose system ha showcsum 1 system.global: d6c216d8449d75b2cd80110fa02a84e5 system.accprofile: 7df6f055a28e5d5216c4d2c2b3ee77d1 system.npu: 7df6f055a28e5d5216c4d2c2b3ee77d1 system.vdom-link: 7df6f055a28e5d5216c4d2c2b3ee77d1 wireless-controller.global: 7df6f055a28e5d5216c4d2c2b3ee77d1 wireless-controller.vap: cda65c180c25050eb83398fa23ab7fd1 system.switch-interface: cda65c180c25050eb83398fa23ab7fd1 system.interface: 56f2362fd69f51a2b6fc22a008c0c755 system.password-policy: 56f2362fd69f51a2b6fc22a008c0c755 system.sms-server: 56f2362fd69f51a2b6fc22a008c0c755 system.admin: 18c534445cb4e9f6fccdd0a101e31e69 system.fsso-polling: 18c534445cb4e9f6fccdd0a101e31e69 system.ha: a4de1e0fcd4add6c764ed10a61b9d022 |
Check the configuration parameter where the checksum mismatches. In the above example, the configuration checksum is mismatched in 'Admin Settings'.
To find out what exactly in the admin settings is causing the issue, repeat the command diagnose system ha showcsum with value 2 as shown below:
FortiGate 1 |
FortiGate 2 |
diag sys ha showcsum 2 admin.admin: vdom.root: 161f1834e4f7d7cefdc65f602f8116f5 dashboard-tabs.1: 0ce0ad276cc2a7f002ce9ac0b9ad073d dashboard-tabs.2: cb109689bf46e400e01aa1778d217523 dashboard-tabs.3: bc78e6c29c05fb268094e3ac06a6d507 dashboard-tabs.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.1: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.2: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.3: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.21: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.31: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.41: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.51: 5263dd1339cc964e43ea5e2799e53faa |
diag sys ha showcsum 2 admin.admin: vdom.root: 161f1834e4f7d7cefdc65f602f8116f5 dashboard-tabs.1: 0ce0ad276cc2a7f002ce9ac0b9ad073d dashboard-tabs.2: cb109689bf46e400e01aa1778d217523 dashboard-tabs.3: bc78e6c29c05fb268094e3ac06a6d507 dashboard-tabs.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.1: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.2: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.3: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.21: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.31: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.41: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.51: 7d9d58ccb29e38e5ff6c89483effd00ca |
As shown in the snippet above, an additional dashboard was configured in the 'admin' user configuration which caused the configuration to go out-of-sync. Removing that dashboard from admin user configuration will cause the HA checksum to sync again.
Alternatively, use the command 'diagnose system ha showcsum <path.object>' to find out the source of the mismatch in the admin section. This will also show the root cause of the mismatch as shown below:
(Note: As of 5.6 and above, the command is 'diag sys ha checksum show global system.admin'.)
FortiGate 1 |
FortiGate 2 |
diag sys ha showcsum system.admin admin.admin: vdom.root: 161f1834e4f7d7cefdc65f602f8116f5 dashboard-tabs.1: 0ce0ad276cc2a7f002ce9ac0b9ad073d dashboard-tabs.2: cb109689bf46e400e01aa1778d217523 dashboard-tabs.3: bc78e6c29c05fb268094e3ac06a6d507 dashboard-tabs.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.1: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.2: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.3: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.21: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.31: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.41: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.51: 5263dd1339cc964e43ea5e2799e53faa |
diag sys ha showcsum system.admin admin.admin: vdom.root: 161f1834e4f7d7cefdc65f602f8116f5 dashboard-tabs.1: 0ce0ad276cc2a7f002ce9ac0b9ad073d dashboard-tabs.2: cb109689bf46e400e01aa1778d217523 dashboard-tabs.3: bc78e6c29c05fb268094e3ac06a6d507 dashboard-tabs.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.1: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.2: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.3: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.4: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.21: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.31: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.41: 7d9d58ccb29e38e5ff6b29c96e650b3c dashboard.51: 7d9d58ccb29e38e5ff6c89483effd00ca |
In a multi-VDOM environment, the above commands can be executed on a global level and for each VDOM. The following is the syntax for the command for individual VDOMs:
diagnose system ha showcsum <level> <vdom>
<level> can be any value from 01 to 04 (the leading zero is important). For example:
diagnose system ha showcsum 01 root
(NOTE: From 5.6 and above, levels no longer exist. The command is 'diag sys ha checksum show <VDOM>'.)
Other tips:
Manually reconfiguring the object that is out of sync should trigger re-synchronization automatically. If necessary, manually trigger the start of synchronization with the following command:
execute ha synchronize start
This should cause the units to synchronize.
If the object in question is identical on all cluster members, it may just be the checksum that needs recalculating:
diag sys ha csum-recalculate
For newer versions, the command is:
diagnose sys ha checksum recalculate
Verify the checksum of the two units is synchronized as below:
For newer versions the command is:
diagnose sys ha checksum cluster
FortiGate 1 | FortiGate 2 |
diagnose sys ha checksum cluster
|
di sys ha checksum cluster
================== FG100D3G12xxxxxx ================== |
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.