The quota doesn't report a warning message even if a soft limit is exceeded.
Issue
- The quota doesn't report a warning message even if a soft limit is exceeded.
- We ran edquota so as to set both a soft limit and hard limit for an user. We logged-in to our own system as the user, and then used a limited disk until the soft limit is exceeded.
- Since the soft limit was exceeded, the quota should have reported a warning message, but didn't do that.
-
On RHEL5, the quota works correctly. When we did the same step as "Step to Reproduce" on RHEL5, the quota reported the following warning message.
<device-name>: warning, user block quota exceeded. -
The expected behavior is that the quota reports the above warning message on RHEL6 in the case. But it doesn't do that.
-
Step to Reproduce:
- Edit the file /etc/fstab as follows.
- /dev/sdb1 /quotatest ext2 defaults,grpquota,usrquota 1 2
- Create a mount point.
-
# mkdir /quotatest # chmod 777 /quotatest
-
- Run the mount command so as to enable the above Step 1.
-
# mount -a
-
- Enable the quota by using following commands.
-
# quotacheck -cugv /quotatest/ # quotaon -a
-
- Create a test user.
-
# useradd quotatest
-
- Set both a soft limit and a hard limit for the test user.
-
# repquota -v /quotatest *** Report for user quotas on device /dev/sdb1 Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 2880 0 0 3 0 0 quotatest -- 0 1024 2048 0 0 0 -
<We set 1024 Kbyte to a soft limit, and set 2048 Kbyte to a hard limit.>
-
- Login to the system as the test user.
#su quotatest - Use the limited disk until a soft limit is exceeded.
$ dd if=/dev/zero of=/quotatest/test bs=1024 count=512
<shouldn't report a warning message>
$ dd if=/dev/zero of=/quotatest/test2 bs=1024 count=512
<should report a warning message>
- Actual Results:
- The quota doesn't report a warning message even if a soft limit is exceeded.
- Expected Results:
- The quota reports a warning message if a soft limit is exceeded.
Environment
- Red Hat Enterprise Linux Version 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
