Friday, January 4, 2013

Linux detecting SAN LUN without reboot

Detecting SAN LUN without rebooting the server in Linux


Rescan the bus by echoing the /sys filesystem (only for Linux 2.6 kernels)
For Linux 2.6 kernels only, a rescan can be triggered through the /sys interface without having to unload the host adapter driver or reboot the system. The following command will scan all channels, targets, and LUNs on host H.


echo "- - -" > /sys/class/scsi_host/host_H/scan
Example:
                echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/hos2/scan
echo "- - -" > /sys/class/scsi_host/hos4/scan
echo "- - -" > /sys/class/scsi_host/hos4/scan

No comments:

Post a Comment