ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: Lustre 2.14.0
    • 3
    • 9223372036854775807

      LU-7114 (https://review.whamcloud.com/16312, https://review.whamcloud.com/17374) backported the upstream ext4 "mark group corrupt" commits (163a203ddb36, 87a39389be3e, bdfb6ff4a255). These have been in upstream ext4 for a long time. The only thing the patch still adds is changing ext4_error() to ext4_warning() for bitmap and group descriptor corruption, so the filesystem stays read-write. This bypasses errors=remount-ro, which Lustre itself sets by default on ldiskfs targets.

      We saw this on a large system. After backend storage write errors, many OSTs came back with block bitmaps that did not match their group descriptors:

      LDISKFS-fs warning (device mdX): ldiskfs_mb_check_ondisk_bitmap:4794: on-disk bitmap for group 63436corrupted: 2048 blocks free in bitmap, 29696 - in gd
      

      Because these are only warnings, the OSTs stayed read-write and passed health_check, while writes to the corrupt groups failed with EIO. Later, some OSTs hit freeing already freed block. That means in-use blocks had been marked free and could be handed out again.

      A filesystem in this state should not stay in service. It should go read-only, and e2fsck should be run to bring the bitmaps, group descriptors and orphan/free space back to a consistent state. On an affected OST, e2fsck -fp repaired everything in about 90 seconds.

      Proposal:

      • Remove ext4-corrupted-inode-block-bitmaps-handling-patches.patch from all ldiskfs series and go back to upstream ext4 error handling.
      • On these errors, the target goes read-only, and the admin runs e2fsck before putting it back into service.
      • Sites that want the old behavior can mount with errors=continue.

            Assignee:
            WC Triage
            Reporter:
            Jinshan Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: