nerdexam
CompTIACompTIA

XK0-005 · Question #1144

XK0-005 Question #1144: Real Exam Question with Answer & Explanation

The correct answer is A: echo "- - -" > /sys/class/scsi_host/host0/scan. {"question_number": 9, "question": "A newly added SCSI device is not visible to the Linux kernel. Which command rescans the entire SCSI bus without rebooting?", "correct_answer": "A", "explanation": "The correct command is 'echo \"- - -\" > /sys/class/scsi_host/host0/scan'. The t

Troubleshooting

Question

A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in output. Which of the following commands should be used to rescan the entire SCSI bus? fdisk -l

Options

  • Aecho "- - -" > /sys/class/scsi_host/host0/scan
  • Becho ' ' > /sys/class/scsi_host/host0/scan
  • Cecho "- - -" > /sys/scsi/scsi_host/host0/scan
  • Decho "scan" > /sys/class/scsi_host/host0/scan

Explanation

{"question_number": 9, "question": "A newly added SCSI device is not visible to the Linux kernel. Which command rescans the entire SCSI bus without rebooting?", "correct_answer": "A", "explanation": "The correct command is 'echo "- - -" > /sys/class/scsi_host/host0/scan'. The three dashes represent wildcard values for channel, target ID, and LUN respectively, instructing the SCSI subsystem to scan all possible combinations on host0 - effectively a full bus rescan. The correct sysfs path is /sys/class/scsi_host/ (not /sys/scsi/scsi_host/ as in option C, which is an invalid path). Option B uses a space character instead of '- - -', which is not the correct syntax and will not trigger a valid rescan. Option D echoes the word 'scan' which is also invalid - the kernel expects the '- - -' wildcard format. This is a standard Linux procedure for making hot-added SCSI/SAS/iSCSI devices visible without a reboot.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Linux Storage#SCSI Device Management#sysfs#Online Rescan

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions