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

lfs df output is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.12.4
    • None
    • 3
    • 9223372036854775807

    Description

      When multiple threads use lfs df concurrently, some commands return incorrect results

      cat df_test.sh 
      #!/bin/bashfor i in {1..3}; do
          lfs df /mnt/lustre >> /tmp/lfsdf/lfs_df${i} &
      done 

       

      cat /tmp/lfsdf/lfs_df2
      UUID                   1K-blocks        Used   Available Use% Mounted on
      jiahtest-MDT0000_UUID           0           0           0   0% /mnt/lustre[MDT:0]
      jiahtest-MDT0001_UUID           0           0           0   0% /mnt/lustre[MDT:1]
      jiahtest-MDT0002_UUID           0           0           0   0% /mnt/lustre[MDT:2]
      jiahtest-MDT0003_UUID           0           0           0   0% /mnt/lustre[MDT:3]
      jiahtest-MDT0004_UUID           0           0           0   0% /mnt/lustre[MDT:4]
      jiahtest-MDT0005_UUID           0           0           0   0% /mnt/lustre[MDT:5]
      jiahtest-MDT0006_UUID           0           0           0   0% /mnt/lustre[MDT:6]
      jiahtest-MDT0007_UUID           0           0           0   0% /mnt/lustre[MDT:7]
      jiahtest-OST0005_UUID           0           0           0   0% /mnt/lustre[OST:5]
      jiahtest-OST0007_UUID           0           0           0   0% /mnt/lustre[OST:7]
      jiahtest-OST0018_UUID           0           0           0   0% /mnt/lustre[OST:24]
      jiahtest-OST001a_UUID           0           0           0   0% /mnt/lustre[OST:26]
      jiahtest-OST0021_UUID           0           0           0   0% /mnt/lustre[OST:33]
      jiahtest-OST0025_UUID           0           0           0   0% /mnt/lustre[OST:37]
      jiahtest-OST0027_UUID           0           0           0   0% /mnt/lustre[OST:39]
      jiahtest-OST0030_UUID           0           0           0   0% /mnt/lustre[OST:48]
      jiahtest-OST0105_UUID  1453120284   593239236   786464344  43% /mnt/lustre[OST:261]
      jiahtest-OST0107_UUID  1453120284   600055700   779647880  44% /mnt/lustre[OST:263]
      jiahtest-OST0118_UUID  1453120284   600927244   778776336  44% /mnt/lustre[OST:280]
      jiahtest-OST011a_UUID  1453120284   565686476   814017104  42% /mnt/lustre[OST:282]
      jiahtest-OST0121_UUID  1453120284   565681484   814022096  42% /mnt/lustre[OST:289]
      jiahtest-OST0125_UUID  1453120284   565690748   814012832  42% /mnt/lustre[OST:293]
      jiahtest-OST0127_UUID  1453120284   565681788   814021792  42% /mnt/lustre[OST:295]
      jiahtest-OST0130_UUID  1453120284   565919992   813783588  42% /mnt/lustre[OST:304]filesystem_summary:  11624962272  4622882668  6414745972  42% /mnt/lustre

      Use wireshark to analyze the data packet and found that there is no 0 value in the statfs returned by mds. It is estimated that there is a problem with the client

       
      有道词典
      muzitest-MDT000 ...详细X
        muzitest-MDT0004_UUID 0 0 0 0% / mnt /光泽(联合化疗:4)   muzitest-MDT0005_UUID 0 0 0 0% / mnt /光泽(联合化疗:5)   muzitest-MDT0006_UUID 0 0 0 0% / mnt /光泽(联合化疗:6)   muzitest-MDT0007_UUID 0 0 0 0% / mnt /光泽(联合化疗:7)

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jiahaoli Jiahao Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: