Friday, April 16, 2010

How to add a LUN withour rebooting in kernel 2.6

I have used this in Linux kernel 2.6. In 2.4 the steps are different, if you need that then mail me 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

The driver-name can be qla21XX/qla22XX etc

2. Perform scsi mid layer rescan :


Once that has been done, you can force the SCSI 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"

echo "scsi-qlascan" > /proc/scsi/qlaXX00/1

echo "scsi-qlascan" > /proc/scsi/qlaXX00/2

echo "scsi add-single-device 1 0 0 6" >/proc/scsi/scsi

No comments:

Post a Comment