How do I handle a maxdir-size event
Applies to
- ONTAP 9
- Cloud Volumes ONTAP
- Data ONTAP 8
- Directory size
Answer
There are several ways you can address a maxdir-size event:
- Create a new directory and place the new files in the new directory where possible
- Increase the maxdir-size- How to modify the maxdir-size in ONTAP 9?
Note: Regarding file deletion
- If a large number of files have been deleted from a directory, you can reduce the directory space by completing the following steps:
- Copy the files into a temporary directory
- Delete the original directory
- Rename the temporary directory with the original directory name
Note: Only entries for the reduced number of files are created in the directory file, so the directory size becomes smaller.
- If only a few files were deleted or the procedure did not help to decrease the directory file size, increase maxdirsize. How to modify the maxdir-size in ONTAP 9?
