[Contents] [Prev] [Next] [Index] [Report an Error]

Validating and Recovering Redundant SRP File Integrity

Note: The information in this section does not apply to the ERX-310 router, which does not support SRP module redundancy.

Even when flash cards on the primary and redundant SRP modules are synchronized, differences can exist in the content of files that reside on the primary flash card and the redundant flash card. You can use the flash-disk compare command to detect these differences so you can validate and, if necessary, recover the file integrity of the redundant SRP module.

The flash-disk compare command validates only those files that are synchronized between the primary and redundant SRP modules. It does not compare files that are normally excluded from the synchronization process, such as log files and core dump files. The command uses a simple checksum error detection algorithm to compare the contents of a file residing on the flash card of the primary SRP module with the contents of the same file residing on the flash card of the redundant SRP module.

To validate and recover redundant SRP file integrity:

  1. Ensure that the file systems on the primary flash card and the redundant flash card are synchronized. (See Synchronizing Flash Cards for details.)
  2. Issue the flash-disk compare command, specifying whether to perform the checksum validation for all files in NVS or only for configuration files.
    host1#flash-disk compare all
    host1#flash-disk compare configuration

    The flash-disk compare configuration command, which validates only configuration files, excludes larger files such as software releases and scripts from the validation process. As a result, this command takes less time to complete than the flash-disk compare all command, which validates all NVS files.

  3. Review the flash-disk compare output to determine whether any files failed the checksum validation.

    If the flash-disk compare command detects differences in the content of one or more files, the router reports a checksum test failure.

  4. If one or more files failed the checksum validation, determine whether the corrupted files reside on the primary SRP module or on the redundant SRP module.
  5. If the corrupted file resides on the primary SRP module, issue the srp switch command to force a switch from the primary SRP module to the redundant SRP module.

    This action ensures that the error-free version of the file will be on the SRP module that takes control after the switch.

  6. Issue the synchronize command with the low-level-check keyword to force the router to:

flash-disk compare

synchronize


[Contents] [Prev] [Next] [Index] [Report an Error]