Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7109

Update OST-index in IDIF inside osd-ldiskfs

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Old IDIF used "0" as the OST index, that may cause compatibility issues when update. There is switch inside osd-ldiskfs for controlling whether convert old IDIF to new one. Once the real OST index became part of the IDIF and stored on disk (in LMA EA), then the OST cannot be downgraded.

      Because the conversion switch is inside osd-ldiskfs, the LFSCK should not update the IDIF-in-LMA, instead, leave it to be handled by OSD to avoid downgrading trouble.

      Attachments

        Activity

          [LU-7109] Update OST-index in IDIF inside osd-ldiskfs

          Landed for 2.8

          jgmitter Joseph Gmitter (Inactive) added a comment - Landed for 2.8

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16282/
          Subject: LU-7109 lfsck: update OST-index in IDIF inside OSD
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 140b897187cdbbdbc593b85dbb8a3322a9c28c9c

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16282/ Subject: LU-7109 lfsck: update OST-index in IDIF inside OSD Project: fs/lustre-release Branch: master Current Patch Set: Commit: 140b897187cdbbdbc593b85dbb8a3322a9c28c9c

          It is the OST's duty to decide whether the OST index is finally stored inside the IDIF-in-LMA, similar as "dirdata" feature. Once the feature of "OST index in IDIF-in-LMA" is enabled, then the on-disk format will be changed, and then the OST cannot be downgraded to old version. Current LFSCK will store the OST index in IDIF and update the LMA by force, such improper behaviour will affect the downgrade. As for memory corruption, I do NOT think there is any relationship.

          yong.fan nasf (Inactive) added a comment - It is the OST's duty to decide whether the OST index is finally stored inside the IDIF-in-LMA, similar as "dirdata" feature. Once the feature of "OST index in IDIF-in-LMA" is enabled, then the on-disk format will be changed, and then the OST cannot be downgraded to old version. Current LFSCK will store the OST index in IDIF and update the LMA by force, such improper behaviour will affect the downgrade. As for memory corruption, I do NOT think there is any relationship.

          Fan Yong, what is the impact of this bug? Does the OSS or LFSCK crash or hang without the patch? Is there memory corruption?

          adilger Andreas Dilger added a comment - Fan Yong, what is the impact of this bug? Does the OSS or LFSCK crash or hang without the patch? Is there memory corruption?

          Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/16282
          Subject: LU-7109 lfsck: update OST-index in IDIF inside OSD
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 2
          Commit: de716e1c8c5daba240ef320f52cf5c5cfbf41ace

          yong.fan nasf (Inactive) added a comment - Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/16282 Subject: LU-7109 lfsck: update OST-index in IDIF inside OSD Project: fs/lustre-release Branch: master Current Patch Set: 2 Commit: de716e1c8c5daba240ef320f52cf5c5cfbf41ace

          People

            yong.fan nasf (Inactive)
            yong.fan nasf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: