nerdexam
CompTIA

XK0-005 · Question #1666

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…

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…

Troubleshooting

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?

Exhibit

XK0-005 question #1666 exhibit

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.

How the community answered

(66 responses)
  • A
    6% (4)
  • B
    80% (53)
  • C
    12% (8)
  • D
    2% (1)

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

#Filesystem management#Inodes#Error diagnosis#Disk space

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice