nerdexam
CompTIA

XK0-005 · 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

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

(31 responses)
  • A
    3% (1)
  • B
    84% (26)
  • C
    10% (3)
  • D
    3% (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

#Linux Troubleshooting#Disk Space Management#lsof command#Filesystem

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice