nerdexam
CompTIA

XK0-004 · Question #393

A user submitted a ticket stating that the development environment is reporong the device does not have any space left. The user's application creates a lot of small files and does not remove these…

The correct answer is A. There are no free nodes. When an application creates many small files and the system reports no space remaining, inode exhaustion - not disk block depletion - is the most likely cause.

Troubleshooting and Diagnostics

Question

A user submitted a ticket stating that the development environment is reporong the device does not have any space left. The user's application creates a lot of small files and does not remove these files when the application crashes. Given the following output:

Which of the following is the MOST likely cause for the error message indicating a lack of space?

Options

  • AThere are no free nodes
  • BSELinux is running
  • CThe application output is too large
  • DDirectory permissions are too restrictive

How the community answered

(44 responses)
  • A
    75% (33)
  • B
    14% (6)
  • C
    2% (1)
  • D
    9% (4)

Why each option

When an application creates many small files and the system reports no space remaining, inode exhaustion - not disk block depletion - is the most likely cause.

AThere are no free nodesCorrect

Every file on a Linux filesystem consumes one inode regardless of its size. An application that creates many small files without cleanup can exhaust the fixed pool of inodes even when physical disk blocks are still available. Once all inodes are consumed, the kernel returns the same 'no space left on device' error as a full disk, because no new directory entries can be created.

BSELinux is running

SELinux policy enforcement produces 'Permission denied' or AVC denial errors, not 'no space left on device' messages.

CThe application output is too large

Large application output would exhaust disk blocks, but the scenario describes many small files, which specifically targets inode exhaustion rather than block exhaustion.

DDirectory permissions are too restrictive

Overly restrictive directory permissions cause 'Permission denied' errors on write attempts, not space-related errors.

Concept tested: Linux inode exhaustion from many small files

Source: https://man7.org/linux/man-pages/man1/df.1.html

Topics

#inode exhaustion#filesystem inodes#small files#disk space

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice