Troubleshooting

A web server's application fails to create session files in /var/lib/app and logs "No space left on device." Running df -h shows the filesystem mounted on /var at 42% used. Which command should the administrator run next to confirm the most likely cause?

Show the answer

Correct answerC. df -i /var

Free blocks with a "No space left on device" error points to inode exhaustion, and df -i shows inode usage per filesystem. du -sh reports block consumption, which df -h already shows is low, so it will not reveal a shortage of inodes.