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

osd stats are initialized too late

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.14.0
    • None
    • 3
    • 9223372036854775807

    Description

      Lustre crashes with the following stack trace:

      [<ffffffffc113cbac>] lprocfs_oh_tally_pcpu+0x2c/0x40 [obdclass]
      [<ffffffffc169719b>] record_start_io.part.14+0x2b/0x40 [osd_zfs]
      [<ffffffffc1698322>] osd_read+0xa2/0x180 [osd_zfs]
      [<ffffffffc1167dee>] dt_record_read+0x1e/0x70 [obdclass]
      [<ffffffffc1190997>] lustre_index_restore+0x527/0x1720 [obdclass]
      [<ffffffffc16b2564>] osd_initial_OI_scrub+0xa34/0xd50 [osd_zfs]
      [<ffffffffc16b34fd>] osd_scrub_setup+0x9ed/0xb90 [osd_zfs]
      [<ffffffffc168a97b>] osd_mount+0xf4b/0x1380 [osd_zfs]

      osd_procfs_init()/osd_stats_init() are called after
      osd_initial_OI_scrub(), so osd stats are not yet initialized
      when osd_read() first tries to update them.

      This issue was earlier reported as LU-10607 but was not properly
      fixed.

      Attachments

        Issue Links

          Activity

            People

              panda Andrew Perepechko
              panda Andrew Perepechko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: