CompTIA Linux+ (XK0-004) — Question 189
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 fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?
Answer options
- A. echo "- - -" > /sys/class/scsi_host/host0/scan
- B. echo ' ' > /sys/class/scsi_host/host0/scan
- C. echo "- - -" > /sys/scsi/scsi_host/host0/scan
- D. echo "scan" > /sys/class/scsi_host/host0/scan
Correct answer: A
Explanation
The correct command is A, as it instructs the SCSI subsystem to rescan for new devices on the specified host. Option B does not provide the correct parameters for a rescan, while options C and D use incorrect paths or commands that do not perform the intended action of rescanning the SCSI bus.