WEB开发网
开发学院操作系统Linux/Unix 在 AIX 上的 NFS 中配置和使用 rquota 守护进程 阅读

在 AIX 上的 NFS 中配置和使用 rquota 守护进程

 2009-07-12 08:34:31 来源:WEB开发网   
核心提示: 列出文件系统的用户配额现在检查用户配额的设置是否符合预期,#j2edlimit-l-u/j2quota_testUserLimitsClassesforfilesystem/j2quota_testBlockLimitsunits:g=gigabyte,m=megabyte,oroptio

列出文件系统的用户配额

现在检查用户配额的设置是否符合预期。

# j2edlimit -l -u /j2quota_test                      
User Limits Classes for file system /j2quota_test             
Block Limits units: g=gigabyte, m=megabyte, or optional k=kilobyte    
Grace Period units: d=days, h=hours, m=minutes, or s=seconds       
Limits Class ID 0 is the default class.                  
                                     
    Block Limits        File Limits      Grace Period   
ID   soft     hard      soft   hard    block  file  
                                     
0   0      0       0     0      0    0    
1   1m      2m       0     0      0    0    
                                    

为文件系统设置组配额

使用相同的命令设置实际的组配额限制。在这里,添加一个 Quota Limit Class,它把 Block Soft Limit 和 Block Hard Limit 分别指定为 4m (4 MB) 和 5m (5 MB)。

# j2edlimit -e -g /j2quota_test                      
--------------------------------------------------- <-- File will be opened in editor. 
Group Limits Classes for file system /j2quota_test 
Block Limits units: g=gigabyte, m=megabyte, or optional k=kilobyte    
Grace Period units: d=days, h=hours, m=minutes, or s=seconds       
Limits Class ID 0 is the default class.                  
Prepend '-' to ID to delete Limits Class.                 
Use '+' for ID to add new Limits Class.                  
                                     
    Block Limits        File Limits      Grace Period   
ID   soft     hard      soft   hard    block  file  
                                     
0   0      0       0     0      0    0    
+ 4m 5m 0 0 0 0 <--*(Additional Setting for Group quota.)         
 
:wq <--*(Save edit) 
--------------------------------------------------            
Group Limits Classes for file system /j2quota_test            
Block Limits units: g=gigabyte, m=megabyte, or optional k=kilobyte    
Grace Period units: d=days, h=hours, m=minutes, or s=seconds       
Limits Class ID 0 is the default class.                  
                                     
    Block Limits        File Limits      Grace Period   
ID   soft     hard      soft   hard    block  file  
                                     
0   0      0       0     0      0    0    
1   4m      5m       0     0      0    0    

上一页  1 2 3 4 5 6 7 8  下一页

Tags:AIX NFS 配置

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接