Add SAN disks on RHEL without reboot
Add SAN disks(LUN) on Red Hat Enterprise Linux without reboot
On HP Proliant or HP blade server running Red Hat Enterprise Linux 4 (AS/ES) SAN disks or newly created LUN can be added on the fly without doing Linux reboot. Since HP proliant uses Qlogic HBA make sure you have latest Qlogic driver installed on your Red Hat enterprise Linux server. This method only works for Linux kernel 2.6 or higher. To add new SAN disk or newly created LUN in Red Hat Enterprise Linux run following commands:
1. Rescan your qlogic HBA’s:
|
#echo “scsi-qlascan” > /proc/scsi/<driver-name>/<adapter-id> |
(qlogic driver will re-scan)Where <driver-name> can be either one: qla2100/qla2200/qla2300 and <adapter-id>
is the instance number of the HBA.
2. Perform scsi mid layer rescan :
Once that has been done, user then can force the scsi mid layer to do its own scan and build the device table entry for the new device:
|
# echo “scsi add-single-device 0 1 2 3″ >/proc/scsi/scsi |
The scsi mid layer will perfume re-scan on “0 1 2 3″ .Replace these numbers depending upon your Linux server “Host Channel Id Lun“. The scanning has to be done inthe above mentioned order.
Check into “dmesg | less” and search for the information about “Host Channel Id Lun”.
|
echo “scsi-qlascan” > /proc/scsi/qla2200/1 echo “scsi-qlascan” > /proc/scsi/qla2200/2 echo “scsi add-single-device 1 0 0 6″ >/proc/scsi/scsi |