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

add 'lfs df --mdt' and 'lfs df --ost' options

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • 3
    • 9223372036854775807

    Description

      When a filesystem might have hundreds of OSTs, it is useful to be able to show only the MDT stats summary without it scrolling off the screen or having to pipe it through "|grep MDT" each time.

      It would be useful to add options like "lfs df --mdt" and "lfs df --ost" in lfs_df() to print only the usage on the respective MDT or OST devices in mntdf(). This should work together with existing options like "-i" to show the inode stats, or without to show the block stats, and "--pool" to print only MDTs/OSTs in that pool.

      The "--ost" option is included for completeness. If both "--mdt" and "--ost" are specified then it would show both types of devices, as it does today with neither option.

      Attachments

        Issue Links

          Activity

            [LU-17516] add 'lfs df --mdt' and 'lfs df --ost' options
            pjones Peter Jones added a comment -

            Merged for 2.16

            pjones Peter Jones added a comment - Merged for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55156/
            Subject: LU-17516 utils: new --mdt and --ost options for lfs df
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 1631c5728b76fc514f64621e664d92fb75686978

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55156/ Subject: LU-17516 utils: new --mdt and --ost options for lfs df Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1631c5728b76fc514f64621e664d92fb75686978

            "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55156
            Subject: LU-17516 utils: new --mst and --ost options for lfs df
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: dea9b8f3333798e60f0bc67f7551c6bcf6b47c18

            gerrit Gerrit Updater added a comment - "Frederick Dilger <fdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55156 Subject: LU-17516 utils: new --mst and --ost options for lfs df Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: dea9b8f3333798e60f0bc67f7551c6bcf6b47c18

            People

              fdilger Fred Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: