Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.5.0
    • Lustre 2.4.0
    • 3
    • 7862

    Description

      Here are the test steps:
      1. setup the system with 2 MDTs and quota enabled.
      2. setup inode quota for user/group quota_usr

      /usr/bin/lfs setquota -u quota_usr -b 0 -B 10M -i 0 -I 5 /mnt/lustre
      /usr/bin/lfs setquota -g quota_usr -b 0 -B 10M -i 0 -I 5 /mnt/lustre
      

      3. check user quota shows that MDT0 has limit 5 while MD1 has limit 0

      [root@client-5 tests]# lfs quota -v -u quota_usr /mnt/lustre
      Disk quotas for user quota_usr (uid 60000):
           Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
          /mnt/lustre       4       0   10240       -       1       0       5       -
      lustre-MDT0000_UUID
                            4       -       0       -       1       -       5       -
      lustre-MDT0001_UUID
                            0       -       0       -       0       -       0       -
      lustre-OST0000_UUID
                            0       -       0       -       -       -       -       -
      

      4. create 2 dirs "test" and "test2", "test" is on the default MDT, "test2" is on the second MDT with "lfs mkdir -i 1 ..."
      5. chown to quota_usr for these 2 dirs
      6. I can only touch file under dir "test" while got "Disk quota exceede" in "test2"

      [root@client-5 tests]# chown quota_usr.quota_usr /mnt/lustre/test
      [root@client-5 tests]# chown quota_usr.quota_usr /mnt/lustre/test2/
      [root@client-5 tests]# lfs quota -v -u quota_usr /mnt/lustre
      Disk quotas for user quota_usr (uid 60000):
           Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
          /mnt/lustre       8       0   10240       -       2       0       5       -
      lustre-MDT0000_UUID
                            4       -       0       -       1       -       5       -
      lustre-MDT0001_UUID
                            4       -       0       -       1*      -       1       -
      lustre-OST0000_UUID
                            0       -       0       -       -       -       -       -
      [root@client-5 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test2/a1
      running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
       [touch] [/mnt/lustre/test2/a1]
      touch: cannot touch `/mnt/lustre/test2/a1': Disk quota exceeded
      [root@client-5 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test/a1
      running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
       [touch] [/mnt/lustre/test/a1]
      [root@client-5 tests]# 
      

      Attachments

        Activity

          People

            niu Niu Yawei (Inactive)
            sarah Sarah Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: