XK0-005 · Question #1790
XK0-005 Question #1790: Real Exam Question with Answer & Explanation
The correct answer is A: find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n. A lack of disk space despite low percentage usage usually indicates inode exhaustion, often caused by an excessive number of small files.
Question
An administrator has received multiple tickets relating to a lack of a disk space on a few servers, but the percentage of disk space usage is below the threshold. The following shows further analysis and findings: Which of the following commands should the administrator use to help identify the issue?
Options
- Afind . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
- Bfind . -xdev -type p | cut -d "/" -f 2 | sort | uniq -c | sort -n
- Cfind . -xdev -type s | cut -d "/" -f 2 | sort | uniq -c | sort -n
- Dfind . -xdev -type d | cut -d "/" -f 2 | sort | uniq -c | sort -n
Explanation
A lack of disk space despite low percentage usage usually indicates inode exhaustion, often caused by an excessive number of small files.
Common mistakes.
- B.
find . -xdev -type psearches for named pipes, which are special files and not the common cause of inode exhaustion issues related to general disk space. - C.
find . -xdev -type ssearches for sockets, another type of special file not commonly responsible for filling up inodes in the scenario described. - D.
find . -xdev -type dsearches for directories; while directories consume inodes, the problem typically lies with an abundance of regular files within them, not the directories themselves.
Concept tested. Linux file system troubleshooting, inode exhaustion
Reference. https://man7.org/linux/man-pages/man1/find.1.html
Topics
Community Discussion
No community discussion yet for this question.