XK0-005 · Question #671
XK0-005 Question #671: Real Exam Question with Answer & Explanation
The correct answer is B: The filesystem has depleted the available inodes.. From the provided output: - This command shows that the filesystem (/dev/vdb) has inodes in total, all of which are used (IUsed: 2048), with 0 inodes free (IFree: 0). - The IUse% is 100%, indicating that all available inodes have been used. - This command shows that the /app file
Question
A Linux engineer receives the following notification from a system: cp: cannot create regular file '/app/appdata.tar': No space left on device The engineer obtains the following output: Which of the following describes the state of the filesystem based on this output?
Options
- AThe filesystem was mounted in read-only mode.
- BThe filesystem has depleted the available inodes.
- CThe filesystem is not mounted in the correct location.
- DThe filesystem has consumed the available space.
Explanation
From the provided output: - This command shows that the filesystem (/dev/vdb) has inodes in total, all of which are used (IUsed: 2048), with 0 inodes free (IFree: 0). - The IUse% is 100%, indicating that all available inodes have been used. - This command shows that the /app filesystem has 2.0G total space, of which only 6.1M is used, leaving 1.9G available, meaning there is plenty of free disk space. The error message cp: cannot create regular file '/app/appdata.tar': No space left on device is misleading because it can also indicate that there are no inodes available, not just disk space. Since the inode count is exhausted (0 inodes free), the filesystem cannot create new files even though there is free disk space available.
Topics
Community Discussion
No community discussion yet for this question.