XK0-005 · Question #1144
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…
The correct answer is A. echo "- - -" > /sys/class/scsi_host/host0/scan. 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…
Question
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
How the community answered
(51 responses)- A71% (36)
- B8% (4)
- C18% (9)
- D4% (2)
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.
Topics
Community Discussion
No community discussion yet for this question.