[LU-15361] lfs df output is incorrect Created: 11/Dec/21  Updated: 11/Dec/21  Resolved: 11/Dec/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.4
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jiahao Li Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-13296 statfs isn't work properly with MDT s... Resolved
Epic/Theme: client
Severity: 3
Epic: client
Rank (Obsolete): 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)



 Comments   
Comment by Andreas Dilger [ 11/Dec/21 ]

This is fixed in the 2.12.5 client.

Generated at Sat Feb 10 03:17:39 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.