Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-4701 LFSCK phase II technical debts
  3. LU-4610

LFSCK needs to log all changes and errors found

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • Critical
    • Lustre 2.6.0
    • Lustre 2.6.0
    • None
    • 12614

    Description

      LFSCK needs to log with D_LFSCK all fixes that it makes and any inconsistencies that it finds that it does not repair (e.g. unknown LOV magic layouts). Otherwise it will be making secret changes to the filesystem and when there are problems they will be impossible to debug.

      Also, if LFSCK is fining inconsistencies in the filesystem it is important for administrators and developers to know this in case they are being caused by bugs in the Lustre code or due to hardware or other problems.

      I think logging inconsistencies (whether repaired or not) via D_LFSCK is the best way to do this. It would be useful to have a common format for such messages, so they could be parsed later to generate pathnames from the FIDs in the log messages. We should avoid pruning D_LFSCK messages that are not related to problems in the filesystem, except for limited start and stop messages. It might be necessary to quiet messages about adding individual FIDs to the OI file if the file was removed, since that will be too many messages on a large filesystem.

      The D_LFSCK flag should be added to the default flags that are enabled all the time, since this should not normally generate any log messages on a correct filesystem (except limited start/stop messages).

      Attachments

        Issue Links

          Activity

            People

              yong.fan nasf (Inactive)
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: