Howto: Linux see new fiber channel attached disk LUNs without rebooting
Q. How do I force fdisk to see new fiber channel attached disk LUNs without rebooting my Linux server or system?
A. Hot swapping or hot plugging is the ability to remove and replace components of a machine, usually a computer, while it is operating. Once the appropriate software is installed on the computer, a user can plug and unplug the component without rebooting.
You can add new SCSI device to a Linux system through SCSI hotplug mechanism.
Type the following command as root user:
$ echo "scsi add-single-device 1 2 3 4">/proc/scsi/scsi
Where,
- 1 - HBA number
- 2 - channel id on the HBA
- 3 - SCSI ID of the new device
- 4 - LUN of the new device
You need to replace 1,2,3,4 with actual values or parameters as per above list.
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- FreeBSD Find Out all Installed Hard Disk Information
- How to Scan new LUNs on Linux with QLogic driver
- Linux SATA controllers not recognize my attached hard disk devices
- Linux Change The I/O Scheduler For A Hard Disk
- Linux Wireless card RT61 no scan results
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



September 4th, 2006 at 3:13 am
A cautionary note. I found that using the posted command to bring a Quantum SDLT scsi tape drive on line if it went off line for some reason, would cause it to negotiate at a lower than maximum trasfer speed. I don’t know if this happens with other devices or why it happens. The way I got around it was to reload the driver (asumming a klm).
av
October 24th, 2006 at 7:11 pm
A better alternative is to use the utility from q-logic “ql-dynamic-tgt-lun-disc-1.8.tgz”