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.
댓글 없음:
댓글 쓰기