Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91247
  • 博文数量: 26
  • 博客积分: 1050
  • 博客等级: 少尉
  • 技术积分: 276
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-05 20:44
文章分类

全部博文(26)

文章存档

2010年(26)

我的朋友

分类: 服务器与存储

2010-09-03 13:07:35

系统中有一个目录写不进去新的文件,遇到的错误信息如下:

          touch spimetricsData_qa-sobeuser-a01_2010090205.txt
touch: cannot touch `spimetricsData_qa-sobeuser-a01_2010090205.txt': File too large


查了一下,磁盘空间还很充裕,inode也没有被消耗完。
整个目录有18万多个文件,而整个目录占用空间21M。

    ls | wc -l
186721

    ls -lh
total 23M
drwxrwxrwx  2 opscoder ops 2.0M Sep  2 19:10 itm/
drwxrwxrwx  2 opscoder ops  21M Sep  2 19:24 was/


这个目录是从netapp filer 上通过NFS mount 上来的。
通过查看netapp filer 上的设置,发现有一个告警

[filer01b: wafl.dir.size.max:warning]: Directory /vol /tooldata01/qt01/queue/was/ reached the maxdirsize limit. Reduce the number of files or use the vol options command to increase this limit.


通过重设置下面的参数解决:

vol options /vol/tooldata01   #check the current value

vol options /vol/tooldata01 maxdirsize 167608   #set the maxdirsize

vol options /vol/tooldata01   #check the set have successful


阅读(2270) | 评论(1) | 转发(1) |
0

上一篇:VI tips

下一篇:Perl: one line

给主人留下些什么吧!~~

chinaunix网友2010-09-05 14:55:09

Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com