Hi,
I've read a similar discussion (https://communities.netapp.com/thread/2564) although some of the aspects are not clear. I hope someone with more insight might be able to help.
Every once in a while our monitoring system alerts us of directories where the MaxDirSize limit is being reached, and we suggest the users the following solution (https://kb.netapp.com/support/index?page=content&id=3011562😞
- Copy the files into a temporary directory.
- Delete the original directory.
- Rename the temporary directory with the original directory name.
Or creating more directories and disperse the files among them also helps. Although, sometimes the situation is not so simple eg. it is a log or working directory of an application. In these case users only try do delete files as their understanding of the problem is that this is "only" a free space issue, but deletion won't solve the problem.
So my question would be, deleting files won't change number of inodes being used, that's why the original directory needs to be deleted? (Or is my understanding flawed regarding ONTAP).
I know this is too vague, but I found this for linux (http://www.thelinuxlink.net/lvlinux/resources/commands/ln.html)
By linux When a file name is deleted from the directory tree, the file name's connection to the inode number is severed. If the file name is the last "link" to the inode number, thereby reducing the number of inode (file content) "links" to file names to 0, then the inode is detatched from the actual data and returned to the pool of free inode numbers. The data remains on the disk, but unaccessable by traditional means now that it no longer has a corresponding inode number. The disk space is free to be overwritten. This process is called unlinking.
Thanks in advance for helping to untangle this mystery:)
Best regards
Attila Gulyas
ps.: ... and a Happy New Year:)