재부팅없이 SCSI를 인식시키는 방법
리눅스 운영체제에서 재부팅 없이 SCSI 디스크를 인식 시키기 위해서는 아래와 같은 절차를 통해서
진행한다. 운영하고 있는 시스템을 재부팅 하면서 까지 그럴필요는 없쥐.. 암암..
It is possible to add or remove a SCSI device explicitly, or to re-scan an entire SCSI bus without rebooting a running system. Please see the Online Storage Reconfiguration Guide for a complete overview of this topic on Red Hat Enterprise Linux 5.
For Red Hat Enterprise Linux 5
With fibre attached storage, it is possible to issue a LIP (loop initialization primitive) on the fabric:
echo "1" > /sys/class/fc_host/host#/issue_lip
Issuing a LIP (above) on Red Hat Enterprise Linux 5 is all that is needed to rescan fibre
attached storage. Once the LIP is issued, the bus scan may take a few seconds to complete.
Although present on previous releases, this feature is only fully supported in Red Hat Enterprise Linux 5.
For Red Hat Enterprise Linux 4 and 5
With other SCSI attached storage, a rescan can be issued:
echo "- - -" > /sys/class/scsi_host/host#/scan
Replace the # with the number of the SCSI bus to be rescanned.
In addition to re-scanning the entire bus, a specific device can be added or deleted for some
versions or Red Hat Enterprise Linux as specified below.
For Red Hat Enterprise Linux 4 or 5
To remove a single existing device explicitly
# echo 1 > /sys/block//device/delete
For Red Hat Enterprise Linux 3, 4, or 5
To add a single device explicitly:
# echo "scsi add-single-device " > /proc/scsi/scsi
To remove a device explicitly:
# echo "scsi remove-single-device " > /proc/scsi/scsi
Where are the host, bus, target, and LUN numbers for the device,as reported in /sys (2.6 kernels only) or /proc/scsi/scsi or dmesg.
These numbers are sometimes refered to as "Host", "Channel", "Id", and "Lun" in Linux tool output and documentation.