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

lfs quota option to print allocated blocks and inode inaddtion to used

Details

    • 10824

    Description

      We are finding that users are running into cases where their used space is less than their soft/hardlimit but what they have been allocated is more. This results in being over quota. But the lfs quota command doesn't print how much a user is allocated. We would like an option to print total allocated blocks and inodes.

      Attachments

        Activity

          [LU-4028] lfs quota option to print allocated blocks and inode inaddtion to used
          bogl Bob Glossman (Inactive) added a comment - backports to b2_5: http://review.whamcloud.com/10411 http://review.whamcloud.com/10412
          pjones Peter Jones added a comment -

          Landed for 2.6

          pjones Peter Jones added a comment - Landed for 2.6

          Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks!

          Sure, once it passed review and landed on master, I'll port it to b2_4 & b2_1.

          niu Niu Yawei (Inactive) added a comment - Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks! Sure, once it passed review and landed on master, I'll port it to b2_4 & b2_1.

          Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks!

          jaylan Jay Lan (Inactive) added a comment - Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks!
          niu Niu Yawei (Inactive) added a comment - http://review.whamcloud.com/8407

          indeed, I'll push a patch to fix it, thank you, Mahmoud.

          niu Niu Yawei (Inactive) added a comment - indeed, I'll push a patch to fix it, thank you, Mahmoud.

          I think there is a problem with the patch

          this
          kbytes2str(total_balloc, strbuf, human_readable);
          should be called after print_obd_quota.

          2211 +» » kbytes2str(total_balloc, strbuf, human_readable);
          2212 +» » rc2 = print_obd_quota(mnt, &qctl, 1, human_readable,
          2213 +» » » » &total_ialloc);
          2214 +» » rc3 = print_obd_quota(mnt, &qctl, 0, human_readable,
          2215 +» » » » &total_balloc);
          2216 +» » printf("Total allocated inode limit: "LPU64", total "
          2217 +» » "allocated block limit: %s\n", total_ialloc, strbuf);
          2218 +» }

          mhanafi Mahmoud Hanafi added a comment - I think there is a problem with the patch this kbytes2str(total_balloc, strbuf, human_readable); should be called after print_obd_quota. 2211 +» » kbytes2str(total_balloc, strbuf, human_readable); 2212 +» » rc2 = print_obd_quota(mnt, &qctl, 1, human_readable, 2213 +» » » » &total_ialloc); 2214 +» » rc3 = print_obd_quota(mnt, &qctl, 0, human_readable, 2215 +» » » » &total_balloc); 2216 +» » printf("Total allocated inode limit: "LPU64", total " 2217 +» » "allocated block limit: %s\n", total_ialloc, strbuf); 2218 +» }

          LUDOC-209 is created.

          niu Niu Yawei (Inactive) added a comment - LUDOC-209 is created.
          green Oleg Drokin added a comment -

          We need a documentation update to go along with this change, I think.
          Can somebody create an appropriate LUDOC ticket?

          green Oleg Drokin added a comment - We need a documentation update to go along with this change, I think. Can somebody create an appropriate LUDOC ticket?
          pjones Peter Jones added a comment - b2_1 http://review.whamcloud.com/#/c/8283/ b2_4 http://review.whamcloud.com/#/c/8282/

          People

            niu Niu Yawei (Inactive)
            mhanafi Mahmoud Hanafi
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: