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

don't print permanently deactivated OSTs in lfs df output

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            [LU-8920] don't print permanently deactivated OSTs in lfs df output
            pjones Peter Jones added a comment -

            Landed for 2.10

            pjones Peter Jones added a comment - Landed for 2.10

            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

            gerrit Gerrit Updater added a comment - 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

            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

            gerrit Gerrit Updater added a comment - 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

            People

              adilger Andreas Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: