[LU-13427] "lfs df -v" prints too many MDTs Created: 08/Apr/20  Updated: 26/May/20  Resolved: 20/May/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0, Lustre 2.12.5
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: LTS12

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Running "lfs df -v" prints too many MDTs, as it shows all MDTs that might be configured in the lmv_tgts array, rather than skipping ones that are not present:

# lfs df -v
UUID                   1K-blocks        Used   Available Use% Mounted on
testfs-MDT0000_UUID       125368       98940       15192  87% /mnt/testfs[MDT:0]
testfs-MDT0001_UUID       125368       44420       69712  39% /mnt/testfs[MDT:1]
MDT0002             : inactive device
MDT0003             : inactive device
:
:
MDT003e             : inactive device
MDT003f             : inactive device
testfs-OST0000_UUID       325368       14684      283524   5% /mnt/testfs[OST:0]
testfs-OST0001_UUID       325368       14676      283532   5% /mnt/testfs[OST:1]
testfs-OST0002_UUID       325368       16720      281488   6% /mnt/testfs[OST:2]
testfs-OST0003_UUID       325368       14684      283524   5% /mnt/testfs[OST:3]

filesystem_summary:      1301472       60764     1132068   6% /mnt/testfs


 Comments   
Comment by Gerrit Updater [ 08/Apr/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38165
Subject: LU-13427 lmv: do not print MDTs that are inactive
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c4d2bb3db69489f361980268b8da47e5c9ae6853

Comment by Gerrit Updater [ 20/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38165/
Subject: LU-13427 lmv: do not print MDTs that are inactive
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3728c2825aa277dbd2523fd240fb04b8699932f8

Comment by Peter Jones [ 20/May/20 ]

Landed for 2.14

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