AIX 下 JFS2 文件系统的配额管理介绍
2010-03-11 00:00:00 来源:WEB开发网 闂傚倸鍊搁崐鎼佸磹閹间礁纾归柟闂寸绾剧懓顪冪€n亜顒㈡い鎰Г閹便劌顫滈崱妤€骞婄紓鍌氬€瑰銊╁箟缁嬫鍚嬮柛顐線缂冩洟姊婚崒娆戭槮婵犫偓闁秵鎯為幖娣妼缁愭鏌″搴′簽濞戞挸绉甸妵鍕冀椤愵澀娌梺缁樻尪閸庣敻寮婚敐澶婂嵆闁绘劖绁撮崑鎾诲捶椤撴稑浜炬慨妯煎亾鐎氾拷

清单 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
更多精彩
赞助商链接