[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: |
|
||||||||||||||||||||||||
| 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 |
| Comment by Gerrit Updater [ 17/Dec/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/24228/ |
| Comment by Peter Jones [ 17/Dec/16 ] |
|
Landed for 2.10 |