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

getxattr for lustre.lov and trusted.lov sometimes wrong after mirror split

    XMLWordPrintable

Details

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

    Description

      4/10 times running the following I see the old layout returned from getfattr:

      rm -f f0
      echo XXX > f0
      lfs mirror extend -N -p fast f0
      cat f0
      lfs mirror split --delete --pool=fast f0
      getfattr -n trusted.lov -e text --only-values f0 | hexdump -C
      lfs getstripe f0
      
      # rm -f f0
      # echo XXX > f0
      # lfs mirror extend -N -p fast f0
      # cat f0
      XXX
      # lfs mirror split --delete --pool=fast f0
      # getfattr -n trusted.lov -e text --only-values f0 | hexdump -C
      00000000  d0 0b d6 0b 20 01 00 00  02 00 00 00 01 00 02 00  |.... ...........|
      00000010  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000020  01 00 01 00 10 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000030  ff ff ff ff ff ff ff ff  80 00 00 00 38 00 00 00  |............8...|
      00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000050  01 00 02 00 10 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000060  ff ff ff ff ff ff ff ff  b8 00 00 00 48 00 00 00  |............H...|
      00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000080  d0 0b d1 0b 01 00 00 00  00 00 00 00 00 00 00 00  |................|
      00000090  00 00 00 00 00 00 00 00  00 00 10 00 01 00 00 00  |................|
      000000a0  23 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |#...............|
      000000b0  00 00 00 00 01 00 00 00  d0 0b d3 0b 01 00 00 00  |................|
      000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      000000d0  00 00 10 00 01 00 00 00  66 61 73 74 00 00 00 00  |........fast....|
      000000e0  00 00 00 00 00 00 00 00  24 00 00 00 00 00 00 00  |........$.......|
      000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      *
      00000120
      # lfs getstripe f0
      f0
        lcm_layout_gen:    3
        lcm_mirror_count:  1
        lcm_entry_count:   1
          lcme_id:             65537
          lcme_mirror_id:      1
          lcme_flags:          init
          lcme_extent.e_start: 0
          lcme_extent.e_end:   EOF
            lmm_stripe_count:  1
            lmm_stripe_size:   1048576
            lmm_pattern:       raid0
            lmm_layout_gen:    0
            lmm_stripe_offset: 1
            lmm_objects:
            - 0: { l_ost_idx: 1, l_fid: [0x100010000:0x23:0x0] }
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: