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

Ignore sb_has_quota_active() in OFED's header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.1.4, Lustre 1.8.9
    • Lustre 2.1.4, Lustre 1.8.8
    • None
    • b1_8, out-of-kernel-tree OFED, RHEL5
    • 3
    • 6345

    Description

      On b1_8 + out-of-kerneltree OFED (e.g. Mellanox 1.5.3), the quota doesn't work well.

      1 x MDT, 1 x OST are mounted on a server and one client mounts that Lustre.

      1. lfs quotaon -ug /l-exofed/
      2. lfs quotacheck /l-exofed
      3. lfs setquota -B 0 -g group1 /l-exofed/
      4. lfs setquota -B 100000 -g group1 /l-exofed/
      5. lfs quota -g group1 -v /l-exofed/
        Disk quotas for group group1 (gid 1001):
        Filesystem kbytes quota limit grace files quota limit grace
        /l-exofed/ 0 0 100000 - 0 0 0 -
        lustre-MDT0000_UUID
        0 - 1 - 0 - 0 -
        lustre-OST0000_UUID
        0 - 1 - - - - -
      1. su - user1
        -bash-3.2$ cd /l-exofed/
        -bash-3.2$ mkdir a
        mkdir: cannot create directory `a': Disk quota exceeded

      The problem seems to be caused by two functions sb_has_quota_active() and sb_any_quota_active() defined in
      $BACKPORT_INCLUDES/include/linux/quotaops.h and use them, instead of lustre defined.
      1.8.8 was no problem with out-of-kerneltree OFED, so LU-1438 patches might be related.

      I created the patches and will post it soon.

      Attachments

        Issue Links

          Activity

            People

              niu Niu Yawei (Inactive)
              ihara Shuichi Ihara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: