nerdexam
CompTIACompTIA

XK0-005 · Question #91

XK0-005 Question #91: Real Exam Question with Answer & Explanation

The correct answer is A: Run the df -i command and notice the inode exhaustion. When a 'No space left on device' error occurs despite free disk space shown by df -m, the next step is to check for inode exhaustion using df -i.

Troubleshooting

Question

While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df -m command, the administrator notes there is still 50% of usage left. Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?

Options

  • ARun the df -i command and notice the inode exhaustion
  • BRun the df -h command and notice the space exhaustion
  • CRun the df -B command and notice the block size
  • DRun the df -k command and notice the storage exhaustion

Explanation

When a 'No space left on device' error occurs despite free disk space shown by df -m, the next step is to check for inode exhaustion using df -i.

Common mistakes.

  • B. df -h shows disk space usage in human-readable format, similar to df -m (megabytes), so it would not reveal the cause if df -m already showed free space.
  • C. df -B displays disk usage in a specified block size, which is not relevant to diagnosing the 'no space' error when free space is already confirmed.
  • D. df -k shows disk space usage in kilobytes, which again is similar to df -m and would not explain the observed discrepancy.

Concept tested. Linux filesystem inode exhaustion troubleshooting

Reference. https://man7.org/linux/manpages/man1/df.1.html

Topics

#Linux Filesystems#Troubleshooting#df command#Inodes

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions