Solution |
A file system check, also known as fsck, is a utility used to verify and repair the consistency of a file system on a storage device. When a file system check is performed, it scans the disk for errors, inconsistencies, and corruption in the file system structure.
The main purposes of a file system check are:
- Detecting and repairing errors: It identifies and fixes issues such as bad sectors, lost clusters, and directory errors that can cause data loss or system instability.
- Ensuring data integrity: Checking the file system structure, helps maintain the integrity of data stored on the disk.
- Optimizing performance: Resolving file system errors can improve the overall performance of the storage device.
- Preventing future problems: Regular file system checks can help prevent more serious issues from occurring in the future. Performing periodic file system checks is essential for maintaining the health and reliability of storage devices and ensuring the integrity of data stored on them.
Follow the steps below to perform a file system check on FortiAnalyzer units.
Verification Process (Pre-check):
- Verify HA Status: Ensure both units are synced and operational in the High Availability (HA) cluster.
- Check Log Synchronization: Confirm that logs between both units are fully synced.
File System Check Process:
FortiAnalyzer A – Primary Unit
- Access the primary unit of the FortiAnalyzer HA cluster.
- Run the following command to initiate the file system check:
diagnose system fsck harddisk
- When prompted, type ‘y’ to confirm the operation.
- The system will automatically reboot.
- During the reboot, FortiAnalyzer B will be promoted to primary status and will begin collecting logs.
- While FortiAnalyzer A is offline, it will check and repair its file system.
- Once the file system check is completed, FortiAnalyzer A will come back online as the secondary unit.
- Allow enough time for the log synchronization process to complete.
- Perform the verification steps outlined above to confirm HA status and log synchronization.
- After confirming that FortiAnalyzer A is fully synced and operational, proceed with the file system check on FortiAnalyzer B using the same steps.
Related document:
High Availability
|