10、查看某个文件系统的磁盘限额(包括用户和组限额)
SUSE10:/ # repquota -ugv /home *** Report for user quotas on device /dev/mapper/system_vg-home_lv Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 1027760 0 0 2444 0 0 metal -- 3068 0 0 656 0 0 informix -- 599128 0 0 2076 0 0 Oracle -- 701152 0 0 2437 0 0 oinstall -- 116 0 0 25 0 0 oracle1 -- 1886624 4194304 4200000 3880 10000 11000 Statistics: Total blocks: 8 Data blocks: 1 Entries: 6 Used average: 6.000000 *** Report for group quotas on device /dev/mapper/system_vg-home_lv Block grace time: 7days; Inode grace time: 7days Block limits File limits Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 1003900 0 0 2449 0 0 users -- 3068 0 0 656 0 0 informix -- 623104 0 0 2096 0 0 oinstall -- 2587776 0 0 6317 0 0 Statistics: Total blocks: 8 Data blocks: 1 Entries: 4 Used average: 4.00000011、编辑宽限时间
suse10:/ #edquota -t Grace period before enforcing soft limits for users: Time units may be: days, hours, minutes, or seconds Filesystem ock grace period Inode grace period /dev/mapper/system_vg-home_lv 7days 7days系统缺省是7天,可改成你实际需要的值保存后退出即可。
特别要说明的是,当实际使用的空间未超过软(soft)限制,宽限(grace)时间是不会出现在quota -u username输出中的。
看完本文你肯定有不少收获,希望本文能教会你更多东西。也许看完本文你就能了解服务器配置了。