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

SoM xattr not updated after mirror split

    XMLWordPrintable

Details

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

    Description

      After mirror split, a file may have a "STRICT" size on MDT xattr which actually stale:

      # rm -f f0
      # dd if=/dev/zero of=f0 bs=1M count=100
      100+0 records in
      100+0 records out
      104857600 bytes (105 MB) copied, 0.802629 s, 131 MB/s
      # sync
      # du --block-size=512 f0
      204800  f0
      #
      # lfs mirror extend -N -c1 f0
      # sync
      # du --block-size=512 f0
      395264  f0
      #
      # lfs mirror split --delete --mirror-id=1 f0
      # sync
      # du --block-size=512 f0
      395264  f0
      #
      # # lfs getsom f0
      file: f0 size: 104857600 blocks: 395264 flags: 1
      # getfattr -n trusted.som --only-values f0 | hexdump -C
      00000000  01 00 00 00 00 00 00 00  00 00 40 06 00 00 00 00  |..........@.....|
      00000010  00 08 06 00 00 00 00 00                           |........|
      00000018
      #
      # echo $((0x060800))
      395264
      

      Attachments

        Issue Links

          Activity

            People

              bobijam Zhenyu Xu
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: