Description
This article describes how to restore control to the Primary Server(s) using the CLI. For instructions on resuming control using the Administration UI, see the related KB article below.
Scope
FortiNAC.
Solution
Contact the support if assistance is needed.
Establish SSH sessions to all Appliances (2 if NS500/550's). All SSH sessions should be open at once.
- Change the Status from 2 to 1 on all appliances.
- Type: vi /bsc/campusMgr/bin/.networkConfig
- Find and change the line from Status=2 to Status=1
- Save changes and exit the file (:wq).
- Repeat this on all 4 appliances.
- Shutdown the management processes on all appliances.
- Type: shutdownNAC
- Wait 30 seconds.
- Type: shutdownNAC ‐kill
- Repeat this on all 4 appliances.
- (Optional) Restore the DataBase to the Primary from the Secondary Server. If this is not necessary, skip to step 4.
On the Secondary Control Server:
- Type: cd /bsc/campusMgr/master_loader/mysql
- Type: ydb_dated_backup
- Type: cd backup
- Locate the latest Database backup file.
- Copy database backup to Primary Control Server, Type:
scp <filename of backup> cm1/bsc/campusMgr/master_loader/mysql/backup
On Primary Control Server:
- Type: cd /bsc/campusMgr/master_loader/mysql
- Type: ydb_restore_full_backup <filename of backup>
- Start services on the Primary system.
- On Primary Control Server type: startupNAC
- Allow about 10 minutes for the system to start up.
On the Primary Control and Application Server the following commands can be run to monitor logs.
cd /bsc/log
tail -f output.processManager
Look for the following line to appear (may take a minute before it shows up):
<hostname>(Master) Master In Control Idle(false) Total Memory………
-
Start services on the Secondary system (will be in standby).
On the Secondary Control Server, run the following commands:
startupNAC
cd /bsc/logs
tail –f output.processManager
Look for the following line to appear (it may take a few minutes before it shows up):
<hostname>(Slave) Master In Control Idle(false) Total Memory………
- Log into the UI on the Primary system.
On the Dashboard screen confirm, the
Summary panel shows: Primary Servers as 'Running - In Control'. Secondary Servers as 'Running - Not In Control'.
If the database backup restore, as mentioned in step 3, is not required/necessary, then proceed to step 4 and start the services on the primary appliance.
Note:
In later versions of FortiNAC that are running FortiNAC-OS, the editor can be used with the (-N) flag as follows:
vi -N /bsc/campusMgr/bin/.networkConfig
And the database backup file path has changed to: /bsc/backups/database/
Related articles: