系统中有一个目录写不进去新的文件,遇到的错误信息如下:
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
文章评论