[LU-8920] don't print permanently deactivated OSTs in lfs df output Created: 07/Dec/16  Updated: 01/Dec/17  Resolved: 17/Dec/16

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

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Duplicate
is duplicated by LU-6818 quiet permanently deactivated OSTs in... Resolved
Related
is related to LU-8152 show OST/MDT read-only status in "lct... Resolved
is related to LU-4315 split lfs.1 and lctl.8 man pages into... Reopened
is related to LU-7668 permanently remove deactivated OSTs f... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

If OSTs are permanently deactivated via lctl conf_param <fsname>.OSTnnnn.active=0 they still appear in the lfs df output, which can be annoying to users.

lfs df
UUID                   1K-blocks        Used   Available Use% Mounted on
myth-MDT0000_UUID        9174328     1213448     7436592  14% /myth[MDT:0]
myth-OST0000_UUID     3880285544  3528483608   157762960  96% /myth[OST:0]
myth-OST0001_UUID     3886052008  3412584200   279155192  92% /myth[OST:1]
myth-OST0002_UUID     3880285544  3555131444   208731780  94% /myth[OST:2]
myth-OST0003_UUID     5840741952  4523261952  1025405712  82% /myth[OST:3]
OST0004             : inactive device

filesystem summary:  17487365048 15019461204  1671055644  90% /myth

If the OST is permanently deactivated (as opposed to disconnected or otherwise unavailable due to error) don't list the OST in lfs df unless -v is also given. That will remove this annoying output from normal usage, but still allow the full OST listing to be generated if needed for some reason.



 Comments   
Comment by Gerrit Updater [ 08/Dec/16 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/24228
Subject: LU-8920 utils: don't print deactivated OSTs in "lfs df"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bbb0ab34978ac57341f2b670cc93eb1441afc460

Comment by Gerrit Updater [ 17/Dec/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/24228/
Subject: LU-8920 utils: don't print deactivated OSTs in "lfs df"
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4c76eb64a9ff80ece0984f0cc3bfd00d08977e9c

Comment by Peter Jones [ 17/Dec/16 ]

Landed for 2.10

Generated at Sat Feb 10 02:21:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.