• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

sgi quotas limit disk !!!

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 21次 | 进入软件测试论坛讨论

领测软件测试网
                   Quota  Applications
                      
                          Author:sgiman@sohu.com 

1. How to use Quotas Subsystem For every user disk space ?

Notes:quota just use in localdisk,except sysdisk and remote disk can't use.

a.setup  quotas subsystem of IRIX6.x
  
b.# chkconfig  quotacheck   on
 
  # chkconfig  quotas       on
  
  /etc/init.d

  # quotas  stop
  # quotas  start 
 
c. at /etc/mtab and fstab
 
add "/dev/dsk/dks1d6s7   /disk1 xfs rw,quota 0 0"


d.Add a user e.g  jaleo use disk space just 25m 
  at /disk1/jaleo(/dev/dsk/dks1d6s7)


e.at /disk1/quotas (under every filesystem root must be creat a quotas file 
   
   # touch  /disk1/quotas  

 add " fs /disk1 kbytes (soft = 25000, hard = 25000) inodes (soft = 25000, hard = 25000)"


f. Limit User 
  #edquota   jaleo 

  add "fs /disk1 kbytes (soft = 25000, hard = 25000) inodes (soft = 25000, hard = 25000)"

2.Notes: How to copy jaleo user limit to share jack  user limit ?
   
   #edquota -p  jaleo  share  jack  
 
g.start quota 

  # quotaon -v -a 
  # reboot

h.How to test quota succeed ?
 
  # quota -v jaleo 
  Disk quotas for jaleo (uid 64684):
  Filesystem    usage   quota   limit    timeleft  files   quota   limit    timeleft
  /disk1           96   25000   25000                 49   25000   25000            

  #repquota -v -a 
  /dev/dsk/dks1d6s7 (/disk1):
  ---------------------------
                         Disk limits                       File limits
  User           used    soft    hard    timeleft   used    soft    hard    timeleft
  root      --4099488       0       0                 75       0       0             
  jaleo     --     96   25000   25000                 49   25000   25000             
  
i.If user disk space over mix 25m will be list Quota Message:" Disk quota exceeded  "


延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网