AIX 下 JFS2 文件系统的配额管理介绍
2010-03-11 00:00:00 来源:WEB开发网清单 6. 指定用户配额命令输出
[root /]# j2edlimit -a 1 -u usera /test
User Limits Classes for file system /test
Block Limits units: g=gigabyte, m=megabyte, or optional k=kilobyte
Grace Period units: d=days, h=hours, m=minutes, or s=seconds
Block Limits File Limits Grace Period
ID soft hard soft hard block file
1 1g 2g 10 15 1m 1m
[root /]# j2edlimit -a 2 -u userb /test
User Limits Classes for file system /test
Block Limits units: g=gigabyte, m=megabyte, or optional k=kilobyte
Grace Period units: d=days, h=hours, m=minutes, or s=seconds
Block Limits File Limits Grace Period
ID soft hard soft hard block file
2 2g 3g 15 20 10s 10s
[root /]#
在进行了如上设置后,我们可以使用 repquota 命令来显示配额使用的情况:
清单 7. repquota 命令输出
[root /test]# repquota /test
Block limits File limits
Group used soft hard grace used soft hard grace
system -- 68 0 0 4 0 0
Block limits File limits
User used soft hard grace used soft hard grace
root -- 68 0 0 4 0 0
usera -- 0 1048576 2097152 0 10 15
userb -- 0 2097152 3145728 0 15 20
更多精彩
赞助商链接