- 论坛徽章:
- 0
|
请教各位,在vbox上学习quota,但是quota不起作用,建立超过soft的限制都没有警告,请大家帮忙看一下是哪里出错了。
/etc/fstab的配置:
/dev/sda9 /test ext4 defaults,usrquota,grpquota 1 2
$ df -h /test
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 7.1G 234M 6.5G 4% /test
$ mount | grep test
/dev/sda9 on /test type ext4 (rw,usrquota,grpquota)
root@ubuntu:~# ll /test/a*
-rw------- 1 root root 7168 Jul 10 17:11 /test/aquota.user
root@ubuntu:~# quotaon -auv
/dev/sda9 [/test]: user quotas turned on
root@ubuntu:~# quota -uvs myquota
Disk quotas for user myquota (uid 1001):
Filesystem space quota limit grace files quota limit grace
/dev/sda9 0K 245M 293M 0 0 0
明明超过了soft限制却没有警告信息
myquota@ubuntu:~$ dd if=/dev/zero of=bigfile bs=1M count=270
270+0 records in
270+0 records out
283115520 bytes (283 MB) copied, 1.70838 s, 166 MB/s
查看报告,倒数时间没有出现
root@ubuntu:~# repquota -avus
*** Report for user quotas on device /dev/sda9
Block grace time: 14days; Inode grace time: 7days
Space limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 20K 0K 0K 2 0 0
myquota -- 0K 245M 293M 0 0 0
Statistics:
Total blocks: 7
Data blocks: 1
Entries: 2
Used average: 2.000000 |
|