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

filter_fid on OST not updated during layout swap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Lustre 2.4.0
    • 3
    • 7599

    Description

      LMA on OST is not updated during layout swap.

      # llmount.sh 
      ...
      # cd /mnt/lustre
      # lfs setstripe -c2 f0
      # dd if=/dev/zero bs=1M count=2 | tr '\0' 'X' > f0
      2+0 records in
      2+0 records out
      2097152 bytes (2.1 MB) copied, 0.0201865 s, 104 MB/s
      # lfs getstripe f0
      f0
      lmm_stripe_count:   2
      lmm_stripe_size:    1048576
      lmm_layout_gen:     0
      lmm_stripe_offset:  0
      	obdidx		 objid		 objid		 group
      	     0	             1	          0x1	             0
      	     1	             1	          0x1	             0
      
      # touch f1
      # ls -lh
      total 2.0M
      -rw-r--r-- 1 root root 2.0M Apr  8 13:54 f0
      -rw-r--r-- 1 root root    0 Apr  8 13:54 f1
      # lfs path2fid f0
      [0x200000400:0x1:0x0]
      # lfs path2fid f1
      [0x200000400:0x3:0x0]
      # umount /mnt/ost1
      # mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
      # ls -lh /mnt/ost1/O/0/d1/1
      -rw-rw-rw- 1 root root 1.0M Apr  8 13:54 /mnt/ost1/O/0/d1/1
      # ll_decode_filter_fid /mnt/ost1/O/0/d1/1
      /mnt/ost1/O/0/d1/1: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x0]
      # umount /mnt/ost1
      # mount /tmp/lustre-ost1  /mnt/ost1 -t lustre -o loop
      # lfs swap_layouts f0 f1
      # ls -lh
      total 2.0M
      -rw-r--r-- 1 root root    0 Apr  8 13:57 f0
      -rw-r--r-- 1 root root 2.0M Apr  8 13:57 f1
      # umount /mnt/ost1
      # mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
      # ls -lh /mnt/ost1/O/0/d1/1
      -rw-rw-rw- 1 root root 1.0M Apr  8 13:57 /mnt/ost1/O/0/d1/1
      # ll_decode_filter_fid /mnt/ost1/O/0/d1/1
      /mnt/ost1/O/0/d1/1: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x0]
      

      Attachments

        Issue Links

          Activity

            People

              tappro Mikhail Pershin
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: