Troubleshooting

A Linux logging service cannot create its next rotated log, reporting “No space left on device.” The log filesystem has free data blocks but no free inodes; what should the administrator do?

Show the answer

Correct answerC. Remove obsolete small files under the retention policy

AWhy not this: Directory permissions do not resolve the reported exhaustion of filesystem inodes.

BWhy not this: An open-file limit controls file descriptors, not the filesystem’s supply of inodes.

CWhy this is right: Deleting obsolete files releases inodes so the service can create new log files.

DWhy not this: Restarting the service does not release inodes occupied by existing files.

Creating a file requires a free inode as well as data space; deleting obsolete files releases inodes. Raising the open-file limit addresses descriptor exhaustion, not exhausted filesystem inodes.