nerdexam
CompTIA

XK0-004 · Question #242

A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate…

The correct answer is B. lsof -nP | grep deleted. Common Reasons for "No Space Left on Device" 1.Deleted File Reserved by Process 2. Not Enough Inodes Try to locate the process. sudo lsof / | grep deleted The problematic process should be listed. Just restart it. sudo systemctl restart service_name If it’s not immediately…

Troubleshooting and Diagnostics

Question

A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem. Which of the following commands is the BEST way to diagnose the issue?

Options

  • Acat /proc/meminfo
  • Blsof -nP | grep deleted
  • Cfind / -type f -size +50M
  • Ddu -a / | sort -n -r | head -n 30

How the community answered

(18 responses)
  • A
    28% (5)
  • B
    56% (10)
  • C
    11% (2)
  • D
    6% (1)

Explanation

Common Reasons for "No Space Left on Device" 1.Deleted File Reserved by Process 2. Not Enough Inodes Try to locate the process. sudo lsof / | grep deleted The problematic process should be listed. Just restart it. sudo systemctl restart service_name If it’s not immediately evident, do a full daemon reload. sudo systemctl daemon-reload

Topics

#lsof#deleted files#disk space#filesystem diagnostics

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice